A regular Perry executable
The application, runtime, garbage collector, and selected standard-library features are linked into one target-specific executable.
app + runtime + stdlib → executablePerry-adjacent project · Pre-1.0
Coop turns a directory of Perry-compatible JavaScript/
Experimental infrastructure for code you own
The distinction is where the language runtime lives. Coop keeps the application image small and supplies the compatible Perry runtime and standard library at the host level.
The application, runtime, garbage collector, and selected standard-library features are linked into one target-specific executable.
app + runtime + stdlib → executableThe application is compiled as an app-only shared library. Compatible runtime providers are built once per machine, and their identity is verified before the app is mapped.
apps → shared runtime + stdlibThe box, each deployment, and each request have separate responsibilities. Application code never runs in the box daemon.
Terminates TLS, routes by host and path, owns deployments, artifacts, the admin API, and metrics.
Loads the application library, owns Perry runtime state, and runs cron and durable queue work.
Runs as a task inside the deployment worker, sharing its address space without spawning a process per request.
Coop is tested infrastructure, but it is not yet a finished hosting product. The current implementation includes:
A deployment is a directory with a coop.toml file and one or more handlers. Coop compiles it, caches the result, and starts a local worker.
name = "hello" version = "0.1.0" [hosts] domains = ["hello.test"] [[handlers]] file = "handlers/hello.ts" path = "/hello" method = "GET"
import { CoopRequest, respond } from "@coop/runtime"; export function handle(reqJson: string): string { const req = new CoopRequest(reqJson); return respond(200, {}, `hello from ${req.path}`); }
$ coop-cli dev ./hello
Current measurements point in different directions on different workloads. Coop has shown promising density on small Linux applications, while a full Next.js route has cost more CPU than Node.js in another test. Read the methodology before quoting either result.
Explore the source, run the example deployment, and help turn the shared-runtime model into dependable infrastructure.