JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 26
  • Score
    100M100P100Q76014F

Share Claude Code sessions as public links

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (agent-thread) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    agent-thread

    Claude session uploader and share viewer built with Bun, Hono, and Cloudflare Workers.

    What works now

    • bunx agent-thread style CLI entrypoint via the agent-thread binary
    • Claude session discovery from ~/.claude/projects
    • Interactive selection of sessions for the current directory
    • Upload endpoint on a Hono Worker
    • Share page route backed by D1 metadata and R2 session storage

    Install

    bun install

    Run the CLI locally

    Start the Worker first:

    bun run dev

    Then run the CLI against that Worker:

    AGENT_THREAD_SERVER_URL=http://127.0.0.1:8787 bun run cli

    Or upload the latest session without a prompt:

    AGENT_THREAD_SERVER_URL=http://127.0.0.1:8787 bun run cli --latest

    Without AGENT_THREAD_SERVER_URL, the CLI defaults to the deployed Worker:

    bunx agent-thread

    Cloudflare setup

    Create an R2 bucket and a D1 database, then update wrangler.toml with the real binding values.

    Apply the D1 migration:

    bunx wrangler d1 migrations apply agent-thread

    Test

    bun test