Write the app. Alpyne runs it.
Declare your data, logic and permissions in TypeScript and skip the backend plumbing. Compose Apps into bigger applications. Open source.
This is a whole App:
import type { AppSpec } from '@alpynehq/alpyne-types/builder';
interface ApproveInput { readonly id: string;}
export const leaveApp: AppSpec = (app) => { app.configure('leave');
const leaveRequest = app.addTemplate('leaveRequest'); leaveRequest.addProperty('reason', 'string');
const pending = leaveRequest.addState('pending').setDefault(); const approved = leaveRequest.addState('approved'); pending.addTransition('approve', approved);
const approve = app.addMutation('approve', async (input: ApproveInput, current, ctx) => { const item = await current.templates.leaveRequest.getItem(input.id); if (item === undefined || item.state?.value !== 'pending') throw new Error('Leave request is not pending'); const updated = await item.state.transitions.approve.execute({}); ctx.log(`${updated.id} is now ${updated.state?.value}`); // => "<id> is now approved" }); approve.input.addProperty('id', 'id').mandatory(); approve.output.void();};One DefinitionTemplates, Relations, Events, operations, Grants and Metrics, declared together and composed from Apps.
Typed ItemsTyped Properties, a parent-child hierarchy and Relations of declared cardinality.
Executions and EventsQueries read, Mutations write, and Events append a durable history that Listeners and Metrics consume.
Workspace isolationEvery execution runs as one principal inside one Workspace; Roles and Grants decide access.
Next steps
Section titled “Next steps”TutorialBuild on the Quickstart's leave App in four chapters: lifecycle, who can do what, what happens next, compose and measure.
ExamplesComplete small Apps to copy and run, for support tickets, onboarding checklists and a sales pipeline, plus short recipes.
Run your AppKeep your data in a file, change a live App, serve it over HTTP and give each customer a Workspace.
Why AlpyneEvery business app rebuilds the same backend: see what you stop writing and what you declare in its place.
SpecificationThe contract every conforming Runtime meets.
GlossaryOne name for each idea, with its concept page and API type.

