Contributing
Design notes
The numbered engineering notes in the repository, what each holds, and where to read them.
The numbered files under docs/ and docs/adr/ are Potyro's engineering record: design decisions,
measurements, prototypes and the reasoning behind the code. They are kept for people changing
Potyro. They are not maintained as user documentation and are not on this site. A note marked
historical describes a design that was later replaced, and says so at the top. When a note and the
code disagree, the code wins.
Read them on GitHub, under https://github.com/potyro-app/potyro/blob/main/docs/.
The notes
- 00 How Potyro works: the architecture, layer by layer.
- 01 Vision and scope: the problem, the insight, goals and non-goals.
- 02 Architecture: the design before the browser realm; historical.
- 03 Definition model: entities, fields, pages and views as first designed.
- 04 App module API:
defineAppand everyctxmember, with examples. - 05 Runtime interfaces: the contracts at the seams:
Store,Capabilities, the host, the view contract. - 06 Persistence and migrations: the storage model, media, schema evolution, migration steps.
- 07 Execution and targets: provenance, the realm, libraries and modules, the two build targets.
- 09 Testing strategy: the test layers and the must-pass invariants.
- 12 Testing guide: a hands-on walk through every feature.
- 13 Native Android: the Capacitor build and the device checklist.
- 16 Deployment: what runs on potyro.app: the shell, the relay, the services, Caddy.
- 17 Concurrency hazards: the bugs that appear when an app is shared; historical.
- 20 Multi-language apps: the first design for an app's translations; historical.
- 21 Glossary: Potyro's own words in six languages, for translators.
- 22 Browser realm: the sealed realm's prototype, its measurements, what shipped.
- 23 AI in apps:
ctx.caps.ai, the permission, who pays. - 24 Share links: links as working demos, the share service, page and record links, the gallery.
- 25 Live camera:
ctx.caps.camera.live()and faces. - 26 Rooms relay: the relay for multiplayer apps, its protocol and limits.
- 28 Live connections:
ctx.caps.network.socketand.room. - 29 Voice input: the Studio's microphone and
ctx.caps.speech. - 30 App translations: one language in the source, catalogs beside it.
- 31 Security model: what keeps a shared app in its box, what the servers see, how to report a hole.
- 32 Code map: the source of this site's Code map.
- ADR 0001 Sync engine and identity: why cojson, the identity model, spaces, the relay, the alternatives measured.
The notes refer to one another by the two digits at the start of a file name.
Next
- Code map: where each concern lives in the source.
- Running the repository: getting the source running.