Repository navigation
Release notes: 2.26.0
Caligrafy Quill 2.26.0 makes every project about twice as fast, a quarter of the size, and safer by default, with no change to your code. On the same benchmark machine (Docker, 2 CPUs), it is faster than Next.js on every test, faster than Nuxt on HTML pages, and its experimental async server answers capability calls faster than Nuxt answers its own routes.
-
A production image sized to its container. The
Dockerfilenow starts withdocker/production/start.sh: Apache runs a number of PHP processes that follows your app (2 per CPU, or 6 per CPU when an AI key is set, because a request waiting on an AI answer holds its process), keep-alive off, OPcache tuned for code that never changes, the framework preloaded, every view compiled before the first visitor.PHP_PROCESSESsets your own number. -
Persistent database connections (
DB_PERSISTENT, on by default for MySQL and PostgreSQL): each process keeps its connection, reset between requests. Controllers no longer open a second one. -
A response cache. A public read-only capability with
cache: 30, or a page with['cache' => 30], is answered from memory to the next visitors, without PHP. Never an answer to a signed-in person or a token, never one that sets a cookie (a form), never an error. -
The async server (experimental,
ASYNC=onafterphp caligrafer.php add async): processes that keep the application in memory answer the capabilities channel for tokens and visitors; pages, forms and sign-in stay on Apache. Only capabilities that keep no state between callers run there (php caligrafer.php async check). -
A 15 MB install. Stripe, Groq, web push, passkeys, the Anthropic SDK and the FaceDetect models are added when an
app uses them:
php caligrafer.php add <payments | ai | push | passkeys | snap | async | facedetect>. A new project installs 13 packages instead of 44; an updated project keeps what it has. -
Safer by default. N+1 queries throw in development with the
with()fix (production logs them), and a write capability without ascopeneeds a token with the scope named after it. The secure-by-default checklist of the benchmark goes from 5 to 7 of 8. -
Docs for people and agents. 80 new wiki pages, among them a generated API reference of every
class and method, performance and deployment and
security defaults;
llms.txt,llms-full.txt,AGENTS.mdandcontext7.jsonfor coding agents. The Claude Code plugin is 1.38.0.
Docker on one computer, 2 CPUs and 1 GB per app, 32 connections, 3 runs of 15 s each; requests per second.
| Plain text | JSON | Database | HTML page | |
|---|---|---|---|---|
| Caligrafy 2.25 | 3,990 | 3,571 | 2,060 | 2,281 |
| Caligrafy 2.26 (an app without AI keys: 4 processes) | 9,995 | 10,013 | 5,621 | 7,998 |
| Next.js 16.4 | 6,101 | 5,948 | 4,077 | 1,135 |
| Nuxt 4.6 | 53,842 | 39,975 | 12,477 | 4,182 |
| Symfony 8.1 | 2,139 | 2,141 | 1,036 | 1,830 |
| Laravel 13.42 | 267 | 850 | 457 | 266 |
The same capability call (20 items; 20 database rows), through Apache and through the async server:
| 20 items | 20 database rows | |
|---|---|---|
| Apache | 2,300 | 2,200 |
| Async server, 2 processes | 113,700 | 12,300 |
| Async server, 4 processes | 111,000 | 22,100 |
A capability call answers {"data": [...]} after checking its inputs and its caller; Nuxt's routes return the list.
First request of a new container: 37 to 42 ms (2.25: 51 to 101 ms). Container memory: 31 to 37 MB (2.25: 157 to 169 MB). Install: 13 packages, 16.6 MB (2.25: 44 packages, 72 MB).
php caligrafer.php update
php caligrafer.php doctorThen:
-
Tokens:
doctorlists the write capabilities without ascope: declare one on each (scope: 'books:write'), or give the tokens that call them the scope named after the capability.TOKEN_DEFAULT_SCOPES=false(deprecated) keeps the old rule meanwhile. -
N+1: a development page that calls a relation method in a loop over query results now shows
[ERROR 2004] Lazy loading prevented: load the relation withwith()(or allow it with->lazy()). -
Optional SDKs: your project keeps the packages it uses; a new project adds them with
php caligrafer.php add. -
Production: nothing to do; to change the defaults, see performance and deployment.
An app that calls a slow outside service other than AI from its pages (a payment API, an SMTP server) sets
PHP_PROCESSESabove the requests that can wait at the same time.
See the changelog.
Caligrafy: Describe it. Approve it. Ship it. Your idea turned into a complete app: every feature built once, for web pages, Vue apps, a REST API and AI agents, and online.
Why Caligrafy: the benefits, the measurements, and what it is not yet
-
Quickstart with Claude: describe it, approve it, ship it
or the Quickstart: the same three steps by hand, in 5 minutes
- How Caligrafy works: the ideas in 5 minutes
- Your first capability: build a feature, page included
-
Capabilities in depth
-
#[Capability]: every option - Scheduled jobs: capabilities on a timer
- Notifications: web push and email
- Background jobs: capabilities run later
- Migrations: database changes, in order
- The cache
-
Testing your app
- Dependency injection
- Validation rules
-
Web pages
- Views and page components
- Design styles: another look, one setting
- Declarative routes: every request, in one line
-
Route::page·Route::form·Route::auth·Route::webhook·Route::download·Route::redirect·Route::action·Route::snap· capability routes - How to export a list as CSV
- Controllers: moving one to a declared route · how to, step by step
- Forms and helpers
-
Vue apps
-
Mobile and tablet
-
REST API
-
AI agents
-
Snap Cards and the assistant
- Payments: Stripe and crypto
- Face detection and face login
- OpenAI: chat and images · Assistants
- Open models: Llama, Mistral...
- Chatbots with Watson
- Machine learning in the browser
- Phone and tablet apps: iOS and Android
- Languages: translations, right to left
- Metadata and social cards · search and analytics
-
Putting it online: the production image, the database at every start
-
API reference: every class and method
-
Routing ·
Route·AuthRoutes· pages ·Controller· capabilities -
Data ·
Model·Query· sign-in · jobs ·Notify· payments · AI -
Interfaces · Snap ·
Snap\Cards·Snap\Conversation· testing · tooling · helper functions
-
Routing ·
-
Caligrafer: every command
- Project · build · data · agents · jobs and tests · maintenance · deploy
- Installation, configuration and Caligrafer
- Routing · Request · Controllers · Views
- Vue: flow of information · routes · validations
- Security and upgrading
- Release notes: 2.34 · 2.33 · 2.32 · 2.31 · 2.30 · 2.29 · 2.28 · 2.27 · 2.26 · 2.25 · 2.24 · 2.23 · 2.22 · 2.21 · 2.20 · 2.19 · 2.18 · 2.17 · 2.16 · 2.15 · 2.14 · 2.13 · 2.12 · 2.11 · 2.10 · 2.9 · 2.8 · 2.7 · 2.6 · 2.5 · 2.4 · 2.3 · 2.1 · October 2026 · changelog
- Testing Caligrafy (contributors)