Skip to main content

A web framework for code that agents maintain. The right path is free fall.

Project description

Curvature

The right path is free fall.

A web framework for code that agents maintain. Server-rendered Python, components as typed functions, real links and real forms, one small boost script for the single-page feel — and a gate that makes the maintainable path the only path that builds.

Curvature's design center is the maintainer nobody watches: the coding agent in its forty-third session, at 2 a.m., doing whatever the shape of the code suggests. Frameworks built for humans enforce their discipline through culture. Curvature's discipline is machine-checked — every invariant in SPEC.md names the check that enforces it, and violations are reported by curvature check as anomalies — regions where the geometry failed to steer. The canonical documentation is AGENTS.md; this README is the courtesy translation. The argument for all of it is the MANIFESTO.

The shape of it

from curvature import Element, Props, redirect, respond
from curvature import html as h


class LapProps(Props):
    title: str
    done: bool


def lap(props: LapProps) -> Element:
    return h.li(props.title, class_="lap done" if props.done else "lap", id="lap")
  • Components are functions of frozen, closed pydantic props. The UI is just Python: typed by pyright, measured by coverage, tested by pytest without a browser in sight.
  • The app works with JavaScript off. Reads render full pages; writes are POST → redirect → GET through real forms. Your test suite drives it with httpx — which executes no JS — so the degraded path is the tested path, permanently.
  • curvature.js (the only script, held under a 150-line ratcheted ceiling) boosts working links and forms into fragment swaps. Same route, same render, one header of difference. Every failure path is real navigation.
  • The ratchet only tightens. File ceilings fall, the coverage floor rises, and curvature ratchet is the only hand on the mechanism. The 10,000-line file is never written because week two's gate refuses the sediment while the split is still cheap.

Start from nothing

uvx curvature new app pitstop     # no install, no venv, no Python even — uv brings it
cd pitstop
./gate.sh                      # green before you write a line
./run.sh                       # http://127.0.0.1:8000

Only have pip? pip install curvature && python -m curvature new app pitstop — the python -m form dodges PATH entirely; the poured README carries the rest of the old ritual.

Onboarding an agent takes zero steps: the scaffold poured AGENTS.md, the gate, and one example component as the pattern. Point your agent at the directory and ask for a feature — the repo is the prompt.

The demo

PyPI ships the framework; the repo ships Pit Board, the demo:

git clone https://github.com/siliconsociety/Curvature && cd Curvature
uv sync && ./gate.sh
uv run uvicorn demo.app:app --reload   # Pit Board

Then turn JavaScript off and use it again. Nothing changes. That is the whole point.

Status

Day one (2026-07-11). The contract, runtime, gate, and demo are real and self-hosting — this repo passes its own gate. The spec is versioned and arguable; argue by issue.

MIT. Built by Robert Sharp, with Claude Fable 5 on its last day on the subscription — read the manifesto and you'll see why that detail belongs in a README.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

curvature-0.1.0.tar.gz (18.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

curvature-0.1.0-py3-none-any.whl (27.3 kB view details)

Uploaded Python 3

File details

Details for the file curvature-0.1.0.tar.gz.

File metadata

  • Download URL: curvature-0.1.0.tar.gz
  • Upload date:
  • Size: 18.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for curvature-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ab86c3292ddd5caab8ed1c3ab72da9c83016a876694eac977a1578f08866c95f
MD5 c29b760641be2956beca51d7ed738936
BLAKE2b-256 e7029fb7ff526d69134a6155337c22f53d0f25fdc23c58e1d3853b82b7f8cd69

See more details on using hashes here.

File details

Details for the file curvature-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: curvature-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 27.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for curvature-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d200106f6b90e4f16cf67976c315f0ee2b23b84fa9de21f59cbb91bcd4d586d0
MD5 74229e8b9c7bde3e3722a89f814c8907
BLAKE2b-256 a0bff2cb402536bbe4fcdef67a94753ec5aa246087b5825537c46235e48e744f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page