Skip to main content

Reboot

Reboot

Build AI Chat Apps — and full-stack web apps — with reactive, durable backends.

License PyPI npm Discord Docs


Reboot is a framework for building reactive, stateful, multiplayer AI chat apps — visual apps that run inside ChatGPT, Claude, VS Code, Goose, and more. It also builds full-stack web apps with reactive backends and React frontends.

With Reboot, you just write business logic — no wiring up databases, caches, queues, or retry loops. State survives failures by default. ACID transactions span multiple states. The React frontend stays in sync in real time. And your backend is automatically an MCP server.

AI Chat Apps

Build visual, interactive apps that run inside AI chat interfaces. Define a Session type as an entry point and your methods automatically become tools the AI can call:

from reboot.api import (
    API, Field, Methods, Model, Reader, Tool,
    Transaction, Type, UI, Writer,
)


class CreateCounterResponse(Model):
    counter_id: str = Field(tag=1)


class UserState(Model):
    pass


class CounterState(Model):
    value: int = Field(tag=1, default=0)


class GetResponse(Model):
    value: int = Field(tag=1)


class IncrementRequest(Model):
    """Request with an amount parameter."""
    amount: int | None = Field(tag=1, default=None)


api = API(
    User=Type(
        state=UserState,
        methods=Methods(
            create_counter=Transaction(
                request=None,
                response=CreateCounterResponse,
                description="Create a new Counter.",
            ),
        ),
    ),
    Counter=Type(
        state=CounterState,
        methods=Methods(
            show_clicker=UI(
                request=None,
                path="frontend/mcp/clicker",
                title="Counter Clicker",
                description="Interactive clicker UI.",
            ),
            create=Writer(
                request=None,
                response=None,
                factory=True,
            ),
            get=Reader(
                request=None,
                response=GetResponse,
                description="Get the current counter "
                "value.",
                mcp=Tool(),
            ),
            increment=Writer(
                request=IncrementRequest,
                response=None,
                description="Increment the counter.",
                mcp=Tool(),
            ),
        ),
    ),
)

Dive in!

Full-stack apps

Build reactive backends with React frontends — great as a full-page extension of your AI chat app, or as a standalone web app.

TypeScript backend support is in alpha: the core of Reboot works in both languages, but some features — including MCP apps, UI methods, the built-in OAuth sign-in flow, and durable agents — are currently Python-only. If you don't have a strong preference, start with Python.

Key features

Automatic MCP server. Session methods are automatically exposed as MCP tools. Other types can opt in with mcp=Tool(). UI methods open React apps in the AI's chat. No glue code.

Durable state by default. States survive process crashes, deployments, and chaos. No external database required.

ACID transactions across states. transaction methods compose atomically across many state instances running on different machines.

Reactive React frontend. Generated hooks keep your UI in sync without manual management of WebSockets, caches, or polling.

Method system. Code is safer to write (and read) with a clear API and methods with enforced constraints: reader (concurrent, read-only), writer (serialized, mutating), transaction (ACID, cross-state), workflow (long-running, durable, cancellable), ui (React app in AI chat). The runtime enforces these guarantees.

API-first, code-generated. Define APIs using Pydantic (Python) or Zod (TypeScript). Reboot generates type-safe client, server, and React stubs.

Documentation

Full documentation at docs.reboot.dev.

Community

Contributions are welcome. Open an issue to discuss substantial changes before sending a pull request.

License

Apache 2.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

reboot-1.4.0-py3-none-manylinux_2_34_x86_64.whl (24.3 MB view details)

Uploaded Python 3manylinux: glibc 2.34+ x86-64

reboot-1.4.0-py3-none-manylinux_2_34_aarch64.whl (24.2 MB view details)

Uploaded Python 3manylinux: glibc 2.34+ ARM64

reboot-1.4.0-py3-none-macosx_14_0_arm64.whl (20.5 MB view details)

Uploaded Python 3macOS 14.0+ ARM64

File details

Details for the file reboot-1.4.0-py3-none-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for reboot-1.4.0-py3-none-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 960a17ee1f841a0cf145c7a13fcc7d9bcb6b2cc6c8abea93aa19b68cd7eea153
MD5 01ecf543cce4d591f6d7b9341d2aa5f3
BLAKE2b-256 27c93728628bb128b296b8192e9e56053aaac675742d56e78482dbdf8b623e8f

See more details on using hashes here.

File details

Details for the file reboot-1.4.0-py3-none-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for reboot-1.4.0-py3-none-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 6980596cdcd5f42c10b05e8ce85cba92ceb56ad7a91d1fda7cb976782aebf7f6
MD5 cedfc88924e64e55c6ff17d6f5491a9a
BLAKE2b-256 2bcfa59308c43328579e288385fca59cce3bbd1b07de028061dc90331d7b51e9

See more details on using hashes here.

File details

Details for the file reboot-1.4.0-py3-none-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for reboot-1.4.0-py3-none-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 83d9d0550f44dc35c31a2fa95c89f6085a374648ad407d2538d6d9c104f3fc0d
MD5 29d4977d3901edb3cf434eeff54635de
BLAKE2b-256 521ca2ad3ca054990b7639bebbb38dcccd0b45b4ab41f6579ff0643747a10c0a

See more details on using hashes here.

Release history Release notifications | RSS feed

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page