Skip to content

Carrel

The writing desk, where drafts are written, checked, and published.

Ring
What people use
Kind
writing
Visibility
Public
Parts
7
Connections
14

How it connects

Inside Carrel

Carrel in the network

Used by 2

Inside Carrel

Runs

  • Carrel Worker

    Cloudflare Worker

    Carrel Worker The editor behind Access, and the MCP door AI sessions use, in one Worker. writes to carrel reads Site Worker (dustinedwards.info) publishes to Site Worker (dustinedwards.info) writes to OAUTH_KV reads Cloudflare Access serves AI sessions writes to GitHub reads GitHub reads Google writes to Email writes to Writings reads Writings writes to carrel-desk-tool-calls
  • Fifteen-minute check

    Workers cron trigger

    Fifteen-minute check Checks each connected site against site-api's contract and refreshes Carrel's index of its posts. watches Site Worker (dustinedwards.info) writes to carrel reads Google writes to Bluesky and X writes to Drafting routine writes to Email writes to MCP Worker (Capsid)
  • Nightly backup

    Workers cron trigger

    Nightly backup Dumps the D1 database into carrel-backups with d1-dump, alone, once a night. writes to carrel-backups reads carrel

Stores

  • carrel

    D1

    carrel People and roles, working drafts, AI drafts, flags and the index of each site's posts.
  • OAUTH_KV

    Workers KV

    OAUTH_KV Grants and tokens for the AI door's OAuth provider.
  • carrel-backups

    R2

    carrel-backups The nightly D1 dumps.
  • carrel-desk-tool-calls

    R2

    carrel-desk-tool-calls Copies of the tool-call log, kept after the log prunes them.

Outside

  • Cloudflare Access

    Access, and Access for SaaS

    Cloudflare Access Guards every page at the Worker level, and is the login behind the AI door's own OAuth.
  • AI sessions

    MCP clients

    AI sessions The AI sessions that read posts, save AI drafts and flag problems through the AI door.
  • GitHub

    Repos, Actions, a GitHub App

    GitHub The GitHub App Carrel commits book files to Writings through, and CI, which deploys the Worker. deploys Carrel Worker watches Carrel Worker
  • Google

    Drive and Search Console APIs

    Google Manuscripts in a shared Drive folder, and search data for dustinedwards.info.
  • Bluesky and X

    Bluesky and X APIs

    Bluesky and X Where Carrel posts original social posts. It never replies, messages, follows or likes.
  • Drafting routine

    Claude Code routine

    Drafting routine Drafts brand posts when no session drafted them ahead. Carrel only fires it.
  • Email

    Workers send_email binding

    Email Alerts when a site's state changes, and the unpublish link after an AI publish.
  • Writings

    Private Git repository

    Writings One folder per book: chapters of scene files, outlines, characters, places and world rules, plus Dustin's own voice passages.

Uses 12

Step by step

Publishing a post

A post goes from a private draft in Carrel to a live page on dustinedwards.info. Every site speaks the same contract, and the site decides what may go live.

  1. Drafted: the writer works in Carrel's editor, which autosaves a draft only that person can see.
  2. Previewed: Carrel shows the draft as the site will render it, in a sandbox, next to any flags from the checks and reviewers.
  3. Saved: an Editor or the Owner saves the draft to the site and names the version it replaces. The site refuses an out-of-date save, so nobody overwrites newer work.
  4. Published: only the Owner can publish, and a first publish asks for confirmation. The site's own publish policy makes the call, so one place decides.
  5. Or by instruction: the Owner's AI session can publish through MCP, but never while a flag is open. It sends no text, so only the saved version goes live, and Dustin gets an email with an unpublish link.
  6. Recorded: Carrel indexes the live post, records who published it (an AI session by its client name) and clears the sent draft.
  7. Watched: every 15 minutes, Carrel runs site-api's conformance suite against the site and sends an email when the result changes.

Flows through it

Its riskiest functions

The five functions with the highest CRAP
FunctionModuleComplexityCoveredCRAP
Editorapp/routes/editor.tsx1290%CriticalCRAP 16770
BookFileapp/routes/book.file.tsx450%CriticalCRAP 2070
Writingapp/routes/writing.tsx380%CriticalCRAP 1482
actionapp/routes/editor.tsx4827%CriticalCRAP 948
Manuscriptsapp/routes/manuscripts.tsx240%CriticalCRAP 600

Every module