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

Deno meta-framework · v0.0.9

For teams whose TypeScript app has become a system.

NetScript is a meta-framework: it coordinates the web layer, services, durable runtimes, and operations you would otherwise integrate by hand. The trade is explicit: you give up pick-any-library freedom for a coordinated Deno workspace.

This page sets out the problem NetScript solves, what it changes, and what it costs, so you can decide whether it fits. If the product is a static site, a short-lived prototype, or one request/response process, start with Fresh or Hono. NetScript starts to pay for itself when the boundaries between processes, background work, and the browser have become part of the product.

The integration tax

Assembling a backend from libraries that were never designed together has a standing cost. Choosing them happens once; maintaining the seams between them never stops:

  • The service and the browser disagree. Request and response shapes drift until a production call finds the mismatch.
  • A retry loop stands in for durable state. Multi-step workflows have no recorded checkpoints or explicit rollbacks, so a process that dies leaves the system half-executed.
  • Resources and telemetry are assembled separately. Queue, service, database, health, and trace configuration drift, so an incident crosses several tools before anyone can explain it.

That standing maintenance is the integration tax: the cost of making unrelated tools behave as one system.

What a meta-framework changes

NetScript does not replace the underlying primitives: Fresh renders, Hono serves, and Postgres stores as they would without it. It standardizes the boundaries that become expensive once they spread through an application:

  • Shared contracts keep handlers and callers aligned, and services serve the contract at request time.
  • Durable runtimes in plugins make work that outlives a request explicit.
  • Generated resource wiring keeps processes, dependencies, and telemetry in one operational model, and Aspire starts the resources with their telemetry connected.

These constraints cost flexibility. In return, a team doesn't redesign the same seams in every service. Concepts covers how each layer works.

How it compares

No option wins everywhere. How NetScript compares sets NetScript beside the frontend and backend frameworks you may be weighing, with side-by-side code, so you can choose the one whose main constraint matches yours.

Trade-offs

  • The package family is pre-1.0. APIs move, so scaffolded imports use exact @0.0.9 pins. If you need a frozen surface today, NetScript is not ready for you.
  • The Aspire CLI is the default orchestration path. Scaffold with --no-aspire to opt out; resource wiring and local telemetry then belong to you. See the Aspire boundary.
  • The web layer is Fresh and Preact. That is a deliberate fit, not compatibility with the React/Next ecosystem. See the web layer.
  • A coordinated workspace adds structure that a one-process app may never use. Durability, plugin runtimes, and multi-resource operations justify that cost only when the product needs them.
  • NetScript is not a hosted platform. You own the workspace and the deployment decisions.

Next: start a workspace.

Search all documentation

Type a term to search the documentation.