The Web Framework
for the Everyman.

Python web apps, without the ceremony. Co-locate your logic and your output. Ship a functional tool before the shift ends.

You write — app.stpl
@route('/orders/overdue')
{$
# Python logic lives right here, no controller file
orders = db['default'].query(
    "SELECT client, days_open, total "
    "FROM orders WHERE closed = 0 "
    "ORDER BY days_open DESC"
)
$}

<h1>Overdue Orders</h1>
{% for o in orders %}
<div class="row">
  <span>{{ o.client }}</span>
  <span class="days">{{ o.days_open }}d</span>
  <span>${{ "{:,.0f}".format(o.total) }}</span>
</div>
{% endfor %}
You get — localhost:5000/orders/overdue
Overdue Orders
ACME Manufacturing
62d $24,500
Stringer Industrial
31d $8,750
TechFlow Solutions
7d $3,200

Zero-Ceremony Routing

Write your logic exactly where it renders. A decorator, a Python block, and HTML. No jumping between controller files and view templates. If it's a .stpl file, it works.

Built for the Database

Parameterized queries out of the box. SQLite for development, one config change to switch to PostgreSQL, MySQL, or MSSQL. Describe tables in a Python schema file and Scribe writes the SQL migration. No ORM between you and your data.

HTMX-Ready

@no_layout returns bare HTML fragments for HTMX partials. @sse enables Server-Sent Events with yield. Reactive UIs without a JavaScript framework or build step.

New in v2.2

Release notes →

Schema files

Describe tables in schemas/schema_default.py. scribe schema diff compares them with the live database, and scribe schema apply writes and runs the migration. Changes that could lose data are flagged for review.

Schema Files guide →

Standalone executables

scribe-build compiles a project into one binary with precompiled routes and secrets stripped out. Hand someone a tool without shipping your source or a Python install.

Deployment guide →

Per-connection migrations

Each database in scribe.json decides whether Scribe may change it, with migrations and auto_migrate. scribe db status shows what's pending.

Database guide →

Cleaner new projects

scribe new now creates a minimal project with nothing to delete. scribe new --demo gives you the starter app with tasks, login, and registration. New @csrf_exempt decorator for API endpoints.

Getting Started →
01

Download

Get the latest release from GitHub.

Releases →
02

Install

tar -xzf scribe-*.tar.gz
./install.sh
03

Create & run

scribe new myapp
cd myapp
scribe dev

Add --demo for a starter app with tasks, login, and registration.

> scribe ide localhost:5001

A browser IDE. Built in.

Run scribe ide alongside your dev server to get a Monaco-powered editor, live app preview, a database browser, and a schema panel — all at localhost:5001. No extension, no separate tool.

Monaco editor (VS Code editor component)
Live app preview
Database browser + query runner
Schema tab: diff, generate, and apply migrations
Migration manager
Route explorer

Prefabs

View all →

Drop-in feature packages and UI components. Copy the files listed, follow the README, and ship a working feature without starting from scratch.

Modules

Full-feature packages — Python helpers, route snippets, migrations, and CSS. No dependencies beyond what each README lists.

Admin Settings  ·  LDAP Auth

Browse Modules →

Templates

Copy-paste UI components with live demos and source viewers. Vanilla JS, no build step, no framework lock-in.

Modal Dialog  ·  Sortable Table  ·  Rich Form

Browse Templates →