curl to see it work end-to-end. Once you want a realtime UI on top, point the React SDK at the running server or clone one of the example apps.
1. Install the CLI
Pylon is currently installed from source. Acurl install script and Homebrew tap are on the roadmap.
2. Scaffold a new app
functions/ directory by hand in step 4.
3. Define the schema
Replaceapp.ts with:
console.log is required — pylon dev captures stdout as the manifest.
4. Add a server function
Createfunctions/createNote.ts:
POST /api/fn/createNote.
Install @pylonsync/functions and @pylonsync/sdk so bun can resolve the imports at runtime:
5. Run the server
app.ts and functions/*.ts, auto-migrates the database (SQLite at .pylon/dev.db by default, Postgres if DATABASE_URL is set), and serves the API on http://localhost:4321.
Expected output:
6. Hit the API
Create a guest session:TOKEN + USER_ID with the values from above):
Next steps
Entities
All the field types and index options.
Policies
How row-level access rules work.
Functions
Queries, mutations, actions, validators.
Live queries
How
db.useQuery stays in sync.