Search by

caligrafy / caligrafy-quill

doryazar

Describe it. Approve it. Ship it. Your idea turned into a complete app: a PHP MVC framework, made for Claude Code, that serves one capability to web pages, Vue apps, REST APIs and AI agents (MCP)

Package info

github.com/caligrafy/caligrafy-quill

Type:framework

pkg:composer/caligrafy/caligrafy-quill

Fund package maintenance!

DoryAzar

Statistics

Installs: 229

Dependents: 0

Suggesters: 0

Stars: 10

Open Issues: 0

v2.34.2 2026-12-04 06:23 UTC

README

Caligrafy: Describe it. Approve it. Ship it.

Describe it. Approve it. Ship it. Caligrafy Quill is an open-source framework for building complete applications for the web and for phones. You can build with it by hand, or describe your idea to Claude Code and let Claude build it with Caligrafy. Either way, the result is the same plain Caligrafy code, kept in your own GitHub repository.


A framework that bridges the server and the client

Most applications are written in several languages. The server is written in one language and talks to the database. The pages, the browser code and the phone apps are written in others, and a great deal of work goes into keeping them in step. Caligrafy bridges these languages so that you write each part of your application once.

You write the server side in PHP. It holds your tables, your models and every feature of your application, and each feature is a small class called a capability. A capability states what it does, which inputs it accepts with their rules, and who may use it.

Caligrafy then carries each capability to the client side for you. A web page written in Pug receives its data on the server. JavaScript and Vue code in the browser calls it through a client that Caligrafy generates from your PHP, so a capability named create_task becomes the function createTask(). When an input is refused, the message written in PHP appears under the right field in the browser. Phone apps for iOS and Android, a REST API and AI agents such as Claude call the same capability, under the same rules and the same permissions, and every call is written to the same audit log.

The framework also gives you what every application needs around its features. It includes routes, sign-in and passkeys, forms, a query builder, migrations, payments, notifications, scheduled and background jobs, translations, tests and a production Docker image. The caligrafer command creates and checks each part, and the Caligrafy course teaches the framework step by step.

Why developers choose it. You write less code, and the code you write is safe by default. The same application takes 471 lines in Caligrafy, 708 in Laravel and 1,076 in Symfony. Seven of eight security defaults need no code at all, and a new project installs only 16.6 MB. Why Caligrafy explains the benefits and the measurements, and it also says what Caligrafy does not do yet.

Where it runs. Caligrafy runs on your own server, or on Caligrafy Cloud, which puts an application online at https://<name>.caligrafy.com with one command. Caligrafy Cloud is a hosting service for applications built with the framework. It is not the framework itself, and you never need it to use Caligrafy.


With Claude

Claude Code is one way to build with the framework. Clone the repository, start Claude Code in it and describe your idea with /caligrafy-quill:idea:

git clone https://github.com/caligrafy/caligrafy-quill.git myapp
cd myapp
claude
/caligrafy-quill:idea A reading list: I add books I want to read, mark them as read, and rate them from 1 to 5.

Claude then works in three steps, and you take part in each one:

You Claude and Caligrafy
1. Describe it your idea, in a sentence a plan with the tables, every feature, who may do what and the pages
2. Approve it read the plan, change it and say OK every feature built once and checked
3. Ship it approve the sign-ins in your browser your GitHub repository, and the app online at https://<name>.caligrafy.com

Claude never asks for a password or a key, and it asks before spending credits. Quickstart with Claude has the details.

Start from a proven prompt. The marketplace has prompts you can start from. Once your own app is online, you can sell it there with /caligrafy-quill:marketplace and earn 25% of every sale.


By hand

You can also build without Claude. You need Git and Docker Desktop, and Docker Desktop must be running:

git clone https://github.com/caligrafy/caligrafy-quill.git myapp
cd myapp
.bin/caligrafer quickstart --docker --example

Open http://localhost:8080/tasks to see the example app. The Quickstart then takes you through the same app over REST and from an AI agent, and it puts the app online with php caligrafer.php cloud deploy.

By hand, a feature is made of four small pieces:

Piece File Example
A table application/models/Bookshelf/create_db.sql CREATE TABLE IF NOT EXISTS books (...), run with php caligrafer.php sql application/models/Bookshelf/create_db.sql (a later change is a migration, php caligrafer.php migrate make <name>)
A model application/models/Bookshelf/Book.php class Book extends Model { public $id; public $title; ... }, one property per column
A capability application/services/ #[Capability(name: 'list_books', readOnly: true)] with Book::with('author')->paginate(20)
Its routes application/config/routing/web.php Route::page('/books', 'Books/index', ['data' => ['books' => 'list_books']])

The same capability then becomes a REST endpoint (Route::capabilities()), a tool for AI agents (Route::mcp()) and a function of the generated JavaScript client. Forms, sign-in, webhooks and downloads (CSV, JSON or many files as one ZIP) take one route each (Route::form, Route::auth, Route::webhook, Route::download), and Route::action answers whatever a page or a form cannot say. Because every request is declared, an application needs no controller. Your first capability builds one, page included.


A complete app

Every feature is written once, as a capability that holds its inputs, its rules and its permissions. Caligrafy serves it everywhere:

  • Web pages, and Vue apps on desktop, tablet and phone.
  • iOS and Android apps for the App Store and Google Play, created with php caligrafer.php mobile and signed in through your site (phone and tablet apps).
  • A REST API.
  • AI agents such as Claude or Cursor, over MCP.
  • Snap Cards with an assistant. Route::snap(); turns every capability into a card a person can use, shown with card views in your app's own look, which Claude writes from your pages. It also gives people a Home that shows what needs them, and an assistant that answers with those cards (Snap Cards and the assistant).

Whichever way a capability is called, it follows the same rules and the same permissions, and it writes to the same audit log. A capability can also run on a timer (scheduled jobs). It can reach your users while the app is closed, through web push, phones, email and an inbox inside the app (notifications). It can also run later, outside the request, with retries (background jobs).

Around the capabilities, the framework covers the rest of an application:

Data models, queries (filters, paging, related rows, every value bound), migrations, the cache
Pages Pug views and page components, declarative routes, design styles, install to home screen
Assistant Snap Cards show every capability as a card (Ask, Show, Go, Track, Offer) in your app's own look, with card views written from your pages. A Home orchestrates what needs you, and an assistant (Claude) keeps the conversation's context. A change runs only from a Confirm
Phone apps iOS and Android apps signed in through your site, with push notifications, built for TestFlight and Google Play
Languages pages in each visitor's language, right to left for Arabic and Hebrew, form messages, money and dates in each language's way
People sign-in with a username or an email, passkeys, permissions and tokens
In the box payments, AI (OpenAI, open models, Watson), face detection, machine learning, social cards, a production Dockerfile
Production a production image that sizes itself to its container, keeps database connections, preloads the framework and keeps public answers in memory. An experimental async server serves the API and AI agents. A 15 MB install, with each optional SDK added by php caligrafer.php add <feature>
Security by default CSRF, bound queries, inputs, passwords, sessions, token scopes and N+1 prevention with no code
Quality tests that call capabilities the way every channel does, and php caligrafer.php doctor

How Caligrafy works explains how these pieces fit together.

Fast and small. On the same benchmark machine (2 CPUs), Caligrafy 2.26 answers 7,998 HTML pages a second, against 4,182 for Nuxt, 1,135 for Next.js, 1,830 for Symfony and 266 for Laravel. It is faster than Next.js on every test, and its experimental async server answers capability calls at 113,700 a second. A new project installs 13 packages and 16.6 MB, and a container uses about 35 MB (release notes).


Phone and tablet apps

Your project can have its own iOS and Android app for the App Store and Google Play. The app uses the same capabilities, accounts and notifications as your web pages, and one command creates it:

php caligrafer.php mobile books --id com.example.books
  • One command creates public/books. It is a Vue app in your app's look, and Capacitor turns it into an Xcode project and an Android Studio project. npm run ios and npm run android run it on a simulator.
  • One line of web.php, Route::mobile(['scheme' => 'com.example.books']), lets people sign in to the app through your site's own sign-in page. A consent page follows, and it can wear your site's look ('view' => 'Auth/mobile'). The app then gets a token for that person and calls your capabilities with it, so there is never a password in the app and never a second backend.
  • Notifications reach phones too. The Notify::user() you already send arrives on their iPhones and Android phones.
  • Publishing goes through fastlane and a GitHub workflow, which send each version to TestFlight and Google Play. With Claude, /caligrafy-quill:mobile walks you through the Apple and Google accounts.

The apps were tested on an iPhone simulator (iOS 27.2) and an Android emulator (Android 16). Read Phone and tablet apps, or build one step by step in the course with Lesson 18, Bookshelf in the stores.


Learn

The wiki documents the whole framework. Start with the page that fits what you want to do:

If you want to Read
Know why to choose it Why Caligrafy, with its benefits, its measurements and what it is not yet
See everything Caligrafy does The documentation
Learn step by step, with Claude or by hand The Caligrafy course
Build a feature Your first capability
Every command Caligrafer
Put it online Putting it online, on Caligrafy Cloud or your own server
Give the docs to a coding agent (Cursor, Codex, Copilot, Gemini) AGENTS.md, llms.txt and llms-full.txt, which holds every wiki page in one file
See what changed Changelog
Contribute Contributing and how the framework is built

Community and support

If Caligrafy helps you, sponsor it on GitHub or share caligrafy.com.


Caligrafy is released under the MIT License.