🔀 Remixable Integration Template Demo

A tour of the pattern: how a startup can ship a Val Town template that bridges their product with a user's GitHub repos.

⚠️ This is a demo with mock data — no real API calls are made. It shows the architecture, UX flow, and code patterns that a real integration would use.

The Idea

A startup ("AcmeStartup") wants users to be able to push events from their product to GitHub (issues, PRs, file syncs, etc). Instead of building a full GitHub integration into their backend, they ship a remixable Val Town template.

The user remixes it, adds their tokens, and the val acts as a personal bridge between the two services.

Architecture

Rendering mermaid diagram...

Why This Pattern Works

For the StartupFor the User
No GitHub integration to build/maintainFull control over the code
No user tokens to storeCan customize behavior, add filters
Ship a template, not infrastructureTokens stay in their own account
Users self-serve setupCan inspect and audit everything

Files

  • index.ts — Hono HTTP backend with mock API routes
  • frontend/index.html — Shell HTML
  • frontend/index.tsx — React app with 3 tabs: Demo, Architecture, How It Works
  • frontend/style.css — Dark theme GitHub-inspired styles

Try It

Visit the live demo and click through the three tabs. Hit "Push to GitHub" to see the step-by-step API calls that would happen in production.