Sane

Open source · Apache-2.0

A sound base for small web apps.

Sane gives every app the same tested plumbing: sign-in, groups and roles, plugins, a public demo mode and security checks. Each app writes only what makes it different.

Early release: sane-core 1.1 is in alpha. The pieces below work today, and two apps already run on it.

Why "Sane"

Sane (核) is Japanese for the pit or kernel of a fruit, the seed that new growth comes from. Read it as the English word, sound and considered, and that works too. Both are the promise: a steady base, not a framework of the month.

What every Sane app gets

  • Sign-in

    Email and password, Google, Microsoft and magic links. Server-side sessions, and two-step sign-in for admins.

  • Groups and roles

    Every record belongs to a group, and every read goes through one scoped query. Admin, member and viewer roles, plus your own.

  • Plugins

    Optional features, each switched on per app. Turn one off and its routes, jobs and screens stop; its data stays.

  • Demo mode

    One setting turns a copy of your app into a public demo, with a "Try the demo" button and fake data that resets every six hours.

  • Security checks

    Secret scanning, Semgrep, dependency audits, container scans and tenant-isolation tests run in CI. High findings block a release.

  • Accessible screens

    Shared screens and design tokens checked against WCAG 2.1 AA, with light and dark themes.

  • Connections

    Keys and tokens for outside services are stored encrypted, one place for every app to use them.

  • Translations

    English, Spanish and French ship in the box. An admin can reword any string without a release.

How it fits together

  • Python owns the logic. A FastAPI and SQLAlchemy backend on Postgres serves the API.
  • Next.js draws the screens. The frontend holds no business logic and no database access.
  • Apps pin Sane like any dependency. An app never copies Sane's code; it lists sane-core at a fixed version.
  • Upgrades are deliberate. Flag, verify, fix, adopt. The sane upgrade command checks a new version before you move to it.

Built on Sane

  • Bugout

    A wildfire and evacuation-zone map for the Spokane area. Drop your places and see which zone each one sits in. A planning aid, not an official alert tool.

    Source on GitHub

  • Stax

    A household work app: assign jobs with a dollar value to family and hired crew, run chores and allowance, and see what each person has earned. Coming soon.

    Source on GitHub

Get started

Install the sane command with uv, then make an app:

uv tool install "git+https://github.com/tortu-ai/sane#subdirectory=cli"
sane init my-app

sane init lays down the backend, the screens, the deploy files and the CI, then sane doctor checks the result. Read Building on Sane for the full walk-through.