# Isoloop > Event-loop isolation for JavaScript apps. An open-source TypeScript library: each part of your app runs on its own worker or in a shared pool, talks over a message bus, and is restarted when it fails, while the rest keeps running. ## Start - [Getting started](https://isoloop.dev/docs/getting-started.md): This page takes you from an empty Vite app to one isolate running in its own worker, talking through the bus, and restarted when it crashes. - [What Isoloop can't hide](https://isoloop.dev/docs/limits.md): What changes for code that runs in an isolate, what Isoloop costs, and what it doesn't protect against, so you can judge whether it fits before you adopt it. ## Build - [Writing isolates](https://isoloop.dev/docs/isolates.md): How to write an isolate's module in plain DOM, Preact or React, and what it can use inside its worker. - [Contracts and grants](https://isoloop.dev/docs/contracts.md): How to define the topics your isolates share, with schemas the bus checks on every publish, and the grants that decide which isolate may use each topic. - [The bus](https://isoloop.dev/docs/bus.md): The bus is a log of records per topic, in its own worker, with retention, replay, consumer groups, request and reply, and an optional durable copy on disk. - [Supervision and restarts](https://isoloop.dev/docs/supervision.md): The kernel watches every isolate's heartbeat, restarts one that blocks or crashes, gives up after too many restarts, and tells the page what happened through events and a fallback. - [Worker pools](https://isoloop.dev/docs/pools.md): A pool puts several isolates, headless or visual, in one worker, which saves memory and start-up time and gives up isolation between its members. - [Automatic placement: the balancer](https://isoloop.dev/docs/balancer.md): @isoloop/balancer (experimental) decides where isolates run: you spawn through it instead of naming a pool. - [Hosting](https://isoloop.dev/docs/hosting.md): This page covers what the page that runs Isoloop, and the servers that serve its isolates, need to send: worker URLs, headers, the CSP and CORS. - [Bundle size](https://isoloop.dev/docs/bundle-size.md): What each Isoloop import adds to your app's JavaScript, and what tree-shaking removes. - [Testing isolates and contracts](https://isoloop.dev/docs/testing.md): Test an isolate's logic and your contracts module in plain unit tests, with @isoloop/runtime/testing and @isoloop/bus/testing, and leave rendering and real workers to browser tests. ## Agents and tooling - [Tools for agents](https://isoloop.dev/docs/agents.md): An app can offer some of its requestable topics to AI agents as tools, through the dev MCP in development and through WebMCP in the browser. - [The inspection feed](https://isoloop.dev/docs/inspection.md): kernel.inspect() (experimental) gives a live view of a running page: its isolates, pools and bus, the kernel's events, and records copied from the bus as they're appended. - [Devtools panel](https://isoloop.dev/docs/devtools.md): @isoloop/devtools (experimental) adds a panel to the page that shows its isolates, the bus, the kernel's own events and a live log of records, read from the inspection feed. - [Build a dev tool as an isolate](https://isoloop.dev/docs/dev-tools.md): A dev tool is an isolate with a surface that watches your page: this page shows how to build one that reads your topics or the kernel's inspection feed, using @isoloop/devtools as the example. ## Reference - [@isoloop/host](https://isoloop.dev/docs/api/host.md): The main thread: createKernel, the kernel it returns, and the types for isolates, pools, the bus and agents. - [@isoloop/runtime](https://isoloop.dev/docs/api/runtime.md): The isolate side: defineIsolate, the context an isolate starts with, and createTestContext for tests. - [@isoloop/bus](https://isoloop.dev/docs/api/bus.md): Topics and contracts: topic, contracts, the bus errors and limits, and testContracts for tests. - [@isoloop/react](https://isoloop.dev/docs/api/react.md): The React adapter: defineIsolate for a component, and hooks for the bus and the host. - [@isoloop/preact](https://isoloop.dev/docs/api/preact.md): The Preact adapter: defineIsolate for a component, and hooks for the bus and the host. - [@isoloop/vite](https://isoloop.dev/docs/api/vite.md): The Vite plugin: isoloop, its options, and the manifest a library build writes. - [@isoloop/dom](https://isoloop.dev/docs/api/dom.md): The render bridge's conformance kit, for authors of a framework adapter. - [@isoloop/balancer](https://isoloop.dev/docs/api/balancer.md): Automatic placement: createBalancer, and the options, events and reports it takes. - [@isoloop/devtools](https://isoloop.dev/docs/api/devtools.md): The devtools panel: connectDevtools and its options. - [@isoloop/webmcp](https://isoloop.dev/docs/api/webmcp.md): connectWebMCP, which registers an app's tools with the browser's WebMCP API. - [The isoloop command line](https://isoloop.dev/docs/api/cli.md): Every command of isoloop, with its usage and its flags, as its own --help gives them. ## Agent skill - [Build with Isoloop](https://github.com/isoloop/isoloop/blob/9e030c6ddfbc080a3b399e7c1c14764cf1a57628/skills/build-with-isoloop/SKILL.md): the agent skill for building an app with Isoloop, at the version these docs were built from; `npx isoloop skill add` installs it into a project ## Optional - [Examples](https://isoloop.dev/examples/): the example apps, each with its measured results - [README](https://github.com/isoloop/isoloop/blob/9e030c6ddfbc080a3b399e7c1c14764cf1a57628/README.md): the library's README, at the version these docs were built from