Leaf is a lightweight web framework. Start a project in one command, add sign-in, payments and more as you need them, and keep code that stays clean whether you write it or your coding agent does.
The files land where they belong and still read cleanly next month.
Every module has the same shape, so the whole app stays small enough to hold in your head, and in a context window.
Login, sign-up, roles and permissions. Pick sessions or tokens and the code barely changes.
Fluent queries that read like sentences. MySQL, Postgres, SQLite and more.
One-off charges and subscriptions, with the checkout wired up for you.
Send receipts, resize images or sync data without making anyone wait.
Check what comes in with rules that read like plain English, and send back errors people can act on.
Every project keeps a short map your agent reads first, so its code lands where you'd have put it.
25+ first-party modules plug in the day your product asks for them.
All 25+ modulesWhat the agent touches
Sign-in, a database and CORS are set up before you open your editor. No config files to learn first.
React, Vue, Svelte or Blade. Your agent reads the same map either way.
Leaf stays small, so it never pushes you toward the same app twice. Here are some of the products people run on it, plus templates you can start from today.
Releases drop in the Discord first. Come show what you're shipping.
“This is my first experience with PHP, I tried Leaf 5 out in the alpha with Claude code, and was genuinely impressed. I got my entire school project complete in a matter of minutes, especially the billing part.”
Selasi Bansa@sdotb · Leaf 5 alpha“Building with Leaf has been the most simple and straightforward approach to getting an app production ready”
“Leaf has been a great choice for us as it allows us to build our APIs really fast, giving us time to focus on what we want: the design and experience of our projects.”
Rare Goods Only@raregoodsonly“It gives the essentials to start building right away, with the flexibility to add exactly the features you need, precisely when you need them.”
“I just don't "get" the major frameworks and to me I want something simple which I can add to if needed and now I come across Leaf. Wow.”
“Clean, well organized and the MVC versión is just great!!!”
The toolchain
Run one command to start a project, then build it by hand, with your agent, or both.