AgentPlan
All projects

Own Product · Solo Developer

AgentPlan

Stable links for agent-generated HTML.

Role

Own Product · Solo Developer

Period

2026 to Present

Technical frame

Next.js / TypeScript

Initial problem

AI agents can produce useful plans, reports, prototypes, and dashboards as complete HTML files, but sharing those files is awkward. Local servers disappear, attachments lose their context, and generic static hosting does not provide private-by-default access, immutable history, or safe isolation for untrusted HTML. Agents needed a small publishing primitive designed around their actual output.

Implementation

AgentPlan accepts HTML from the browser, a scoped API, or a one-command CLI and publishes it behind a stable URL. Every draft keeps immutable version history and can be private, public, or password protected. Metadata and access policy live in PlanetScale Postgres while the HTML itself stays in a private Cloudflare R2 bucket. Content is streamed through a separately authorized route and rendered in a sandboxed iframe without same-origin access, so generated scripts never enter the application DOM.

Outcome

  • Gives AI agents a durable handoff format instead of temporary local files
  • Keeps revisions and access policy attached to one stable shareable link
  • Makes generated HTML useful without trusting it inside the host application

My contribution

  • Designed the product, permission model, storage boundary, and isolated viewer architecture
  • Built the Next.js application, API, CLI workflow, authentication, and administration surfaces
  • Implemented versioning, visibility policies, R2 streaming, quotas, and security controls

Impact

  • Gives AI agents a durable handoff format instead of temporary local files
  • Keeps revisions and access policy attached to one stable shareable link
  • Makes generated HTML useful without trusting it inside the host application

What mattered

01

One-command publishing with npx agentplan upload ./plan.html

02

Stable slugs with immutable version history for every published document

03

Private, public, and password-protected visibility controlled by the owner

04

Hostile HTML isolated in a sandboxed iframe and stored in a private R2 bucket

05

Scoped API tokens stored as hashes for agent and CLI workflows

06

Admin controls, account quotas, moderation, and audit events

Insights

AgentPlan landing page with the agent upload command

The public AgentPlan entry point and its one-command publishing workflow

Technical frame

Technical frame

The technical frame sits at the end on purpose: it shows the engineering substance behind the solution.

Next.jsTypeScriptPlanetScale PostgresCloudflare R2Better AuthCLISecurity
ProviderBench

Next project

ProviderBench

Measured, not marketed.

View project

Start a project