Skip to main content
NetScriptdocs Search docs ⌘K v0.0.9
Browse documentation
View as Markdown

Data & persistence

This section covers where a NetScript app keeps its state and how a schema change ships.

Records (durable, relational, queried with a typed client) live in the database layer, where every plugin contributes its models to the same datasource. Execution state (caches, sessions, work queues, scheduled ticks) lives in KV, queues & cron, provider-agnostic packages that run on zero-config local backends until Aspire provisions the production ones. One .prisma edit and one netscript db generate regenerate the typed client and the matching zod schemas, and the same netscript db workflow creates the migration, so a model change is one cycle rather than three separate updates that an agent or a person can miss.

Search all documentation

Type a term to search the documentation.