Ephemeral real-time chat with e2e encryption, multiplayer games, host migration, and real-time drawing — AIM for the 2020s
- ✓Open-source license (MIT)
- ✓Actively maintained (<30d)
- ✓Clear description
- ✓Mature repo (>1y old)
- ✓Documented (README)
git clone https://github.com/slee1996/pillowfortTools overview
# pillowfort Small, private, disposable chat rooms with AIM / Windows XP energy. Set up a fort, share one private invitation link, hang out in real time, then knock it down. No accounts. No public room list. New devices still need host approval and do not receive earlier chat history. <p align="center"> <img src="docs/screenshots/aim-home.png" width="360" alt="sign on screen"> <img src="docs/screenshots/aim-chat-full.png" width="360" alt="chat screen"> </p> ## What This Repo Contains `pillowfort` is both: - a real-time chat app with ephemeral rooms - a dual-runtime experiment that runs locally on Bun and in production on Cloudflare Workers + Durable Objects - a design-heavy frontend with browser and snapshot test coverage The core product idea is simple: 1. Pick a screen name and save the generated room password. 2. Create a fort, open **Invite**, and choose **Copy invite link**. 3. Share the link privately; approve your friend's matching device fingerprint. 4. Chat, doodle, and play small games together. 5. Knock the fort down, or let it expire. When the fort is gone, the room is gone. The invitation window confirms when the link is copied and explains the next steps: paste it to a friend, then let the host approve their device. Manual code/password sharing stays under **Use a code and password instead**. ## Agents can host, too Agents can create their own forts, export private invitation links for people or other agents, and approve expected peers without a human present. Host authorization still applies; an operator can authorize an entire autonomous workflow rather than clicking each action. Start with the [public agent guide](https://about.pillowfort.xyz/agents) or the [Markdown quickstart](docs/agents/index.md). Choose local stdio MCP/SDK/CLI, authenticated hosted MCP at `https://mcp.pillowfort.xyz/mcp`, or native WebMCP inside a supported browser tab. Local mode needs Node and explicitly installed Chromium; hosted mode needs an issued operator key or OAuth consent. Native mode is feature-detected and does not install a polyfill. - [Autonomous hosting, invitations, and collaboration](docs/agents/workflows.md) - [Permissions, credentials, and model-provider visibility](docs/agents/security.md) - [Machine-readable discovery](https://about.pillowfort.xyz/llms.txt) The npm package is `@ontologic/pillowfort-agent`; GitHub remains `slee1996`. The MCP Registry listing is `io.github.slee1996/pillowfort` version 1.1.0. Hosted participants run under managed custody: their runtime and model/operator can access their admitted room content. Hosted participants do not gain access to unrelated rooms. Read the custody guide before inviting a hosted agent. The original 1.0.0 download remains archived in its [GitHub release](https://github.com/slee1996/pillowfort/releases/tag/agent-v1.0.0). Current installation instructions select the versioned npm package. ## Current Feature Set ### Core room behavior - Invite-only rooms with no lobby and no room discovery - Host-created forts with opaque generated fort codes - Ephemeral room state with no user accounts - Auto-suffixed duplicate names like `spencer2` - Typing indicators - Room-scoped presence with away messages - Reconnect grace window for temporary disconnects - Host migration via "the pillow throw" when the host leaves - Rate limiting, guest cap, and idle room self-destruction ### Chat and UX - AIM / Windows XP-inspired interface - Desktop and mobile layouts - Client-side MLS encryption for admitted room participants - Message formatting support - Save-chat export from the UI - Private invitation links; host approval still required for new devices ### Extras beyond plain chat - Shared 1200×800 sketchpad with selectable ink colors and PNG export - Pillow Fight vote-to-kick - Rock Paper Scissors - Tic-Tac-Toe - Secret Saboteur - King of the Hill - Per-room leaderboards and queued game flow - Host-paid Fort Pass path for custom codes, longer idle windows, and premium room themes ## Ephemeral Model The app is designed to avoid long-lived room history: - no user accounts - no message history replay for new joiners - no database for chat transcripts - only the last-used screen name is kept in `localStorage` In production, Durable Object storage is used only to coordinate a live room while it exists. When a fort is destroyed, that room state is cleared. ## Architecture There are two server runtimes with roughly the same behavior: | Layer | Local development | Production | | --- | --- | --- | | Entry server | Bun | Cloudflare Worker | | Room runtime | in-memory `Map` | Durable Object per room | | Client | React + Vite | React + Vite | | Storage | process memory only | ephemeral DO state | Important contributor note: - local room behavior lives in `server.ts` - production room behavior lives in `src/room.ts` - shared validation, game, analytics, and alarm helpers live in `src/` If you change room rules, websocket behavior, limits, or game logic, you usually need to update both runtimes. For a deeper system-level walkthrough, see [ARCHITECTURE.md](ARCHITECTURE.md). For a product, business, and project-lead analysis, see [docs/PROJECT_LEAD_BRIEF.md](docs/PROJECT_LEAD_BRIEF.md). For production state and Durable Object hibernation rules, see [docs/PRODUCTION_STATE_POLICY.md](docs/PRODUCTION_STATE_POLICY.md). For the beta measurement contract and privacy limits, see [docs/BETA_ANALYTICS.md](docs/BETA_ANALYTICS.md). For beta release steps, see [docs/PUBLIC_BETA_DEPLOY_CHECKLIST.md](docs/PUBLIC_BETA_DEPLOY_CHECKLIST.md). For the first revenue test, see [docs/FIRST_PAID_SKU.md](docs/FIRST_PAID_SKU.md). For paid beta support and refunds, see [docs/FORT_PASS_SUPPORT_RUNBOOK.md](docs/FORT_PASS_SUPPORT_RUNBOOK.md). For the current Stripe sandbox setup, see [docs/STRIPE_TEST_SETUP.md](docs/STRIPE_TEST_SETUP.md). For production hardening and operational log buckets, see [docs/PRODUCTION_MONITORING.md](docs/PRODUCTION_MONITORING.md). For weekly beta funnel review, see [docs/METRICS_REVIEW.md](docs/METRICS_REVIEW.md). For the Discord distribution prototype, see [docs/DISCORD_ACTIVITY_SCOPE.md](docs/DISCORD_ACTIVITY_SCOPE.md). Public API surfaces currently exposed by the app: - `/ws?room=...` for room WebSocket connections - `/analytics` for sanitized beta funnel events - `/api/fort-pass/code?code=...` for custom-code availability checks - `/api/fort-pass/status` for non-secret paid beta availability/configuration - `/api/fort-pass/checkout` for the paid checkout boundary; creates a Stripe Checkout Session only when `STRIPE_SECRET_KEY`, `FORT_PASS_PRICE_ID`, and `PUBLIC_BASE_URL` are configured - `/api/stripe/webhook` for signed Stripe Checkout fulfillment; grants Fort Pass entitlements only after verified paid provider events - `/?fort_pass=success&code=...&session_id=...` for accountless Fort Pass redemption after checkout ## Repo Layout ```text pillowfort/ ├── client/ React + Vite frontend │ ├── src/ │ │ ├── screens/ Home, setup, join, chat, knocked-down screens │ │ ├── components/ XP UI, chat UI, games, overlays, canvas │ │ ├── stores/ Zustand app state │ │ └── services/ websocket protocol, message handling, chat crypto │ └── dist/ built assets served by Bun / Cloudflare ├── src/ │ ├── index.ts Cloudflare Worker entrypoint │ ├── room.ts Durable Object room runtime │ ├── shared.ts shared limits and sanitizers │ ├── game.ts shared pure mini-game rules │ ├── analytics.ts privacy-safe analytics sanitization │ ├── entitlements.ts host-only paid SKU entitlement helpers │ ├── routes.ts shared internal and public route constants │ ├── stripe.ts Stripe checkout and webhook helpers │ └── alarms.ts Durable Object alarm schedule helpers ├── server.ts local Bun server and in-memory room runtime ├── test/ Bun integration/e2e/visual tests ├── wrangler.toml Cloudflare config └── ARCHITECTURE.md protocol and runtime design notes ``` ## Prerequisites - Bun - Node.js and npm - A Cloudflare account only if you want to deploy ## Install This repo is not set up as a workspace. Root and `client/` are separate package installs. ```bash # root dependencies npm install # client dependencies cd client npm install cd .. ``` `marketing/` is part of this repository with its own package install: ```bash npm --prefix marketing ci ``` See [`marketing/README.md`](marketing/README.md) for its editor, database, and build setup. The main app does not require the marketing package to build. ## Running Locally Build the frontend, then start the Bun server: ```bash npm run build npm run dev ``` Open `http://localhost:3000`. What this does: - `npm run build` typechecks the client and builds `client/dist` with Vite - `npm run dev` runs `bun --watch server.ts` - `server.ts` serves the built client and handles websocket room state in memory If you are changing frontend code, rebuild the client before reloading the Bun app: ```bash npm run build ``` There is also a client-only Vite script: ```bash npm run dev:client ``` That is useful for isolated frontend work, but the full app behavior still depends on the websocket backend in `server.ts`. ## AI agents Agents use the same browser client, MLS encryption, device approval, and room permissions as people. There is no plaintext bot relay or privileged agent API. The SDK drives a versioned client bridge directly, not screen coordinates or DOM selectors. The bridge is installed only when the app is opened with `?agent=1`; that opt-in is not an authorization boundary. ### Develop the transport against a local app For normal use, follow the [standalone quickstart](docs/agents/index.md) and point the transport at production. The following checkout/build steps are only needed when developing the app it
What people ask about pillowfort
What is slee1996/pillowfort?
+
slee1996/pillowfort is tools for the Claude AI ecosystem. Ephemeral real-time chat with e2e encryption, multiplayer games, host migration, and real-time drawing — AIM for the 2020s It has 0 GitHub stars and its last recorded update is dated 2026-09-08.
How do I install pillowfort?
+
You can install pillowfort by cloning the repository (https://github.com/slee1996/pillowfort) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.
Is slee1996/pillowfort safe to use?
+
Our security agent has analyzed slee1996/pillowfort and assigned a Trust Score of 92/100 (tier: Verified). See the full breakdown of passed checks and flags on this page.
Who maintains slee1996/pillowfort?
+
slee1996/pillowfort is maintained by slee1996. The last recorded GitHub activity is dated 2026-09-08, with 0 open issues.
Are there alternatives to pillowfort?
+
Yes. On ClaudeWave you can browse similar tools at /categories/tools, sorted by popularity or recent activity.
Deploy pillowfort to your cloud
Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.
Maintain this repo? Add a badge to your README
Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.
[](https://claudewave.com/repo/slee1996-pillowfort)<a href="https://claudewave.com/repo/slee1996-pillowfort"><img src="https://claudewave.com/api/badge/slee1996-pillowfort" alt="Featured on ClaudeWave: slee1996/pillowfort" width="320" height="64" /></a>More Tools
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
🪨 why use many token when few token do trick — Claude Code skill that cuts 65% of tokens by talking like caveman
CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies
The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Use Claude Code, Codex, Pi, and OpenCode and more for free (1.3B+ free tokens) from your terminal, app, IDE, or phone like OpenClaw (voice supported + ToS friendly)