Plain (@plainframework) profile picture

The full-stack Python framework designed for humans and agents. Follow for development updates. Follow @davegaeddert for more background.

Kansas
Joined July 2024
Photo by Plain (@plainframework)Photo by Plain (@plainframework)Photo by Plain (@plainframework)Photo by Plain (@plainframework)Photo by Plain (@plainframework)Photo by Plain (@plainframework)Photo by Plain (@plainframework)Photo by Plain (@plainframework)Photo by Plain (@plainframework)Photo by Plain (@plainframework)
What’s the markdown version of your homepage? I did this for plainframework.com last week — don’t limit your thinking to docs pages at this point
2
2
1,843
Plain dev used to modify your etc/hosts so you could use myapp.localhost for local dev... turns out this isn't always necessary anymore?! Importantly, this gets rid of a sudo prompt which agents can get hung up on...
1
1
100
I ripped async out of Plain very early on. I'm finally starting to consider how to bring it back... How about, purely for SSE and websockets? The plain server is completely vertically integrated now, and you can opt-in to async python *just* for these specific kinds of views 🤔
1
115
New homepage, including a markdown version for agents 🦾
1
2
105
Plain is going postgres-only! I've debated this for a while and, frankly, the only way to really find out is to try it. I think there's a lot to gain. If I change my mind, it's probably one prompt to successfully bring back mysql and sqlite
1
1
173
The plain docs CLI has some new agent tools. `plain docs --search <term>` finds which module has what you need. `plain docs <module> --outline` shows all sections. `plain docs <module> --section <name>` loads just that section. `plain docs <module> --api` shows the public API surface. AI agents can discover and read exactly the docs they need, on demand.
1
63
New healthcheck view built in to Plain! In settings py: HEALTHCHECK_PATH = "/up/" This is mostly intended for deploy tooling, so it skips host validation and most middleware (which can get in the way with internal hostnames etc.)
1
48
`plain fix` runs linters and formatters for JS in addition to Python I was using biome, but honestly the ux wasn't feeling quite right for the no-config experience I want... Just switched it to oxc! Both have a binary version so you don't need node deps xitter.gq/OxcProject/status/2026…
Announcing Oxfmt Beta * 100% Prettier Compatibility * Additional File Formats * Tailwind CSS Integration * Import Sorting * package.json Sorting * Embedded Language Formatting * Node.js API * `--migrate prettier` * config overrides * Full IDE support oxc.rs/blog/2026-02-24-oxfmt…
1
94
Removed backwards migrations in @plainframework a while ago and haven't looked back
I never write down migrations. Down migrations are the least tested code in any Laravel app. They're written once and never run. And when you do need to roll back, you don't know beforehand what you need to do with the data would already be stored in the updated schema.
1
137
Starting to clarify the three tiers of agent & human docs for plain: 1) RULES - applied automatically 2) DOCS - read selectively 3) SKILLS - multi-step agentic workflows Here's how each works...
1
1
77
Been meaning to do this for a while... coming to a @plainframework admin near you xitter.gq/RhysSullivan/status/20…
this is the gold standard for displaying times in apps, if your app doesn't do this i don't want to use it
1
128
Trying a new `plain code annotations` check (included in `plain pre-commit`) that enforces type annotations on all function signatures — return types and params, nothing else. I think this is the 80/20 of missing type coverage and IMO makes for a better IDE/dev experience also. Claude is more than happy to do this work for you, and then type checking with ty is that much better!
1
51
Added TimeZoneField to Plain Models and the app starter kit. Stores timezone strings in the DB but gives you ZoneInfo objects in Python. Automatically normalizes legacy names (US/Central → America/Chicago) and includes built-in form choices.
1
39
Trying to hone in on the Plain brand a bit more. I'm no designer, but I can tell Claude what I like if it gives me some options...
1
42
Reverse db migrations were removed in @plainframework, so we rely on dev db backup/restore instead. Those backups now track which git branch you were on so it's easier to roll back to specific points in time, like the first backup created on your feature branch.
1
1
125
In plain-htmx we now enable @htmx_org reportValidityOfForms by default. Honestly I was reading the docs for something else when it caught my eye, and it basically says you should always use it!
1
1
5
1,031
I added @mermaidjs_ to the @plainframework docs recently for this reason. Helpful for people and I've found the agent referring to it sometimes which seems like a quick way to refresh its own memory of how things work. Custom styles help a lot with the end product!
Have you asked your friendly neighborhood agent to draw you an ASCII diagram? What about a Mermaid diagram? It's incredibly helpful for getting a visualization of a somewhat big system!
1
2
297
As this React2Shell thing is going around, I was a little surprised to get some Sentry errors for FormFieldMissingError in @plainframework. I think we're going to start catching FormFieldMissingError and return an HTTP 400 (and a warning log) instead of an uncaught exception 500
1
147
I've spent quite a bit of time making things more type-friendly. The ORM has the most questions remaining (as you'd expect), but in general I think this has led to better APIs in many places. Ty is still pre-release but I added it to plain-code anyway so apps can get some of the downstream benefits of a more typed framework (catching mistakes!)
1
176
The exception toolbar is getting a little more useful... - source code context - your code vs package code - variable values (when in dev)
1
1
109