Contents
Part I · Seed
Start here
- 01Meet PipalRead
What Pipal is, what it is not, and the one promise it makes: your conversation outlives the tab and the process.
- 02The castRead
Pi, Hono, Svelte, SQLite and Docker. Who does which job, and why each one is here.
- 03A tour of the repositoryRead
Three packages, two seams between them, and how to find the file that does a thing.
- 04Where everything lives and runsRead
Your machine, one Node.js process, a private data folder, a model in the cloud, and the places an agent is allowed to touch.
Part II · Roots
Built on Pi
- 05What Pi gives youRead
The harness underneath: conversations, tasks, tools, and a common API for chat models.
- 06Durable by defaultRead
Commit first, then act. How a reply survives a closed tab, a restart, and a crash in the middle of a sentence.
- 07What Pipal adds to PiRead
The distance between a library and a product, feature by feature.
Part III · Trunk
The life of a message
- 08Follow one messageRead
Press Send and watch every hop, from the keypress to the last streamed word.
- 09The Hono serverRead
Startup, the middleware chain, the routes, and two ways to sign in.
- 10The core runtimeRead
Admission, limits and deadlines: the rules that keep runs orderly.
- 11Live streamsRead
Snapshots over server-sent events, deltas, and why reconnecting needs no cursor.
- 12The data modelRead
What is inside durable.sqlite, which records are Pi’s and which are Pipal’s, and the IDs that tie them together.
Part IV · Leaves
The Svelte workspace
- 13The Svelte workspaceRead
How Svelte renders the main chat and specialist transcripts with shared components, groups adjacent tool calls, and merges older pages.
- 14Extending the UIRead
Slots, commands and themes, and how a reviewed Git commit becomes part of the build.
Part V · Branches
What the assistant can do
- 15Profiles and modelsRead
An agent is a Markdown file. Choosing a model, signing in to ChatGPT, and thinking levels.
- 16Tools and extensionsRead
How tools reach the model, who may call them, how to write your own, and how hosted search and public-web tools work.
- 17DelegationRead
How Chat hands a job to Sysadmin, Developer or Code reviewer, goes to sleep, and wakes with the answer.
- 18Files in, artifacts outRead
Send images, PDFs and text files, then download published project files or open sandboxed HTML previews.
- 19RoutinesRead
Prompts on a schedule, delivered while the browser is closed.
- 20Search, context and costRead
Finding an old chat, measuring the context window, and adding up what a session cost.
Part VI · Ground
Where the agent works
- 21Three ways to touch a projectRead
Read-only on the host, a sealed Docker room, or a permanent bench on this machine or another.
- 22The Docker projectRead
Offline Bash and file calls in fresh containers, a persistent volume, and optional web lookups outside the container.
- 23The development workspaceRead
A persistent project folder on this machine or over SSH, projects with names, and where Docker fits when you want to run an app.
- 24Approvals and YOLORead
Project edits, commands and file publication wait for durable approval unless a matching YOLO grant applies.
- 25WorkersRead
Long builds that outlive a reply: a second conversation with its own budget.
Part VII · Tending
Running Pipal
- 26Configuration, annotatedRead
Every key in config.toml, what it switches on, and the one choice that moved to Settings.
- 27Deploying PipalRead
From pnpm dev on a laptop to systemd and Caddy on a server.
- 28The security modelRead
Each trust boundary, what it checks, and what it does not promise.
- 29When things go wrongRead
Reading an error, surviving a crash, and restoring a backup.
- 30Changing PipalRead
The checks to run, and a map of where to change what.
Appendix
Reference
- ·The HTTP API at a glanceRead
Every route under /api/v1, what it takes and what it returns.
- ·Decisions and trade-offsRead
The choices that shaped Pipal, why each was made, and what each one costs.