examples/bin
projectThe wire types: the validated records and scalars that cross the RPC boundary and define the persisted-file shape.
bin
A paste bin: write a paste, get a link, read it back as a page or as raw text.
cd examples/bin vyrn dev
Layout
- server.vyrn is the native artifact. It composes the RPC handler, the OpenAPI document, both page trees and the theme stylesheet.
- server/api/pastes.vyrn is the whole RPC surface.
rpc("./server/api")mounts each export at/_/pastes/<name>; no file declares a route. - app/routes holds universal pages: rendered on the server and compiled into the browser bundle, so a soft navigation paints the next page itself.
- server/routes holds the raw endpoint, which is server-only and never bundled.
- client/boot.vyrn is the browser artifact: the create form, validated with
fromJsonbefore the typed stub fires.
The manifest's audience key decides which tree may reach which artifact, so a page under app/ cannot read the store.