Skip to content

feat(app): Vite + vanilla TS registry viewer and Cloudflare Pages deploy #2

Closed

Description

@Xuepoo

Priority: P1 | Area: docs | Labels: feat, area:docs, P1 | Milestone: v0.1.0 | RFC: none | Task: CTX-0002

Outcome

Replace the custom Bun-bundled app/ prototype with a Vite + TypeScript storefront (vanilla DOM / Web Components, no UI framework), copy generated/registry.json into the build output as a static asset, and add a Cloudflare Pages deploy workflow for the newly registered plugins.bitty.run domain.

Acceptance criteria

  • app/ is a Vite + TypeScript project with dev/build/preview scripts, small custom elements (plugin-card, plugin-search, plugin-filters, plugin-detail, install-command), and no React/Preact/Solid/Astro.
  • Client-side routes /, /plugins/<id>, /categories/<c>, /authors/<a>, /sdk, /create-plugin using the History API with the Cloudflare Pages SPA fallback documented.
  • The build emits registry.json beside index.html; generated/registry.json stays committed and idempotent.
  • deploy.yml builds app/ with Bun and deploys to the bitty-plugins Cloudflare Pages project on push to main and workflow_dispatch; reads CLOUDFLARE_API_TOKEN (secret, falling back to variable) and CLOUDFLARE_ACCOUNT_ID; skips with a clear notice when credentials are absent; never commits credentials.
  • just check covers the Vite build and type check with bun-only tooling; markdownlint, registry validation, and the generated-index check stay green.
  • Production URLs and domain facts (bitty.run, plugins.bitty.run, verification pending) are recorded factually.

Trust boundaries

Registry data stays untrusted display input rendered as text nodes/attributes only. No secrets are committed; the deploy workflow is the only consumer of Cloudflare credentials.

Affected repositories

bitty-plugins only. bitty-website owns https://bitty.run; no cross-repository code change is required.

Documentation impact

README, AGENTS, TODO, and CHANGELOG in this repository. Canonical store design remains bitty-plugins-docs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1area:docsfeat

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions