Skip to content

iterate/cf-artifact-viewer

Repository files navigation

cf-artifact-viewer

Browse, edit, and manage Cloudflare Artifacts repos. Built with TanStack Start on Cloudflare Workers.

Deploy to Cloudflare

Features

  • Browse Artifacts repos with collapsible file tree + emoji icons
  • CodeMirror 6 editor with syntax highlighting (150+ languages)
  • Full commit history — browse any commit's state (read-only)
  • Restore old commits (O(1) via git tree reuse)
  • Create new files and folders, commit & push
  • Local changes tracked in localStorage with discard option
  • TanStack Start server functions — no REST API layer
  • Route loaders with pendingComponent (no empty states)

One-click deploy

Click the button above to deploy to your own Cloudflare account. You need the Artifacts private beta enabled.

After deploying, set your account ID (the Artifacts binding doesn't expose the git remote URL via RPC in server functions):

npx wrangler secret put CF_ACCOUNT_ID
# paste your Cloudflare account ID

Local development

npm install
npm run dev

CI deployment

This repo uses Workers Builds — Cloudflare's native CI/CD. Connect the repo in the Cloudflare dashboard:

  1. Workers & Pages > select your Worker > Settings > Builds > Connect
  2. Select iterate/cf-artifact-viewer
  3. Build command: npm run build
  4. Deploy command: npx wrangler deploy (default)

Every push to main auto-deploys. PRs get build status checks and preview comments automatically — no GitHub Actions needed.

Stack

License

MIT

About

Cloudflare Artifacts browser + editor — browse repos, edit files, view commit history

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors