The marketing site and documentation for API Dev Studio - The all-in-one local API development tool.
Production URL: https://apidevstudio.com
Hosting: Cloudflare Pages (auto-deploys from master branch)
This repository contains three main components:
Type: Static HTML site (no build step)
Purpose: Product marketing, feature showcase, download links
Tech: Vanilla HTML, CSS, JavaScript
Key Features:
- Responsive design (mobile-first)
- Platform-specific download detection
- Newsletter signup integration
- Fast load times (static assets only)
- SEO optimized
File locations:
index.html- Main landing page*.png,*.ico- Favicons and OG images_redirects- Cloudflare Pages routing_headers- Security headers (CSP, HSTS, etc.)
Type: Astro + Starlight static site
Purpose: Product documentation, guides, API reference
Tech: Astro 4.x, Starlight theme, Markdown
Key Features:
- Auto-generated navigation
- Full-text search
- Dark/light themes
- Fast static site generation
- Mobile-responsive
Workflow:
- Edit markdown in
docs-src/src/content/docs/ - Build with
bun run build(indocs-src/) - Output goes to
docs-src/dist/ - Copy
dist/todocs/for deployment
Important: Always edit docs-src/, never edit docs/ directly (it's the build output).
Type: Serverless functions
Purpose: License validation, email automation, API endpoints
Tech: TypeScript, Cloudflare Workers runtime
Workers:
license/- License key generation, validation, gift codes (Stripe integration)email-automation/- Newsletter subscriptions, onboarding emails (Loops integration)
Deployment: Via Wrangler CLI (bun run deploy in each worker directory)
- HTML5, CSS3, JavaScript (ES6+)
- No frameworks (intentionally simple)
- Cloudflare Pages hosting
- Cloudflare CDN
- Astro 4.x - Static site generator
- Starlight - Documentation theme
- Markdown/MDX - Content format
- TypeScript - Configuration
- Cloudflare Pages hosting
- TypeScript
- Cloudflare Workers runtime
- Integrations: Stripe, Loops, KV Storage
- Wrangler CLI for deployment
- Bun (preferred) or npm
- Node.js 18+ (for Astro)
- Git
- Wrangler CLI (for workers):
bun add -g wrangler
# Clone repository (if not part of monorepo)
git clone https://github.com/jpeggdev/apidevstudio.com.git
cd apidevstudio.com
# Documentation: Install dependencies
cd docs-src
bun install
# Workers: Install dependencies (per worker)
cd workers/license
bun install
cd ../email-automation
bun installLanding Page:
# Open index.html in browser (no dev server needed)
open index.html # macOS
start index.html # WindowsDocumentation:
cd docs-src
bun run dev
# Open http://localhost:4321/docs/Workers:
cd workers/license
bun run dev
# Test at http://localhost:8787Documentation:
cd docs-src
bun run build
# Output: docs-src/dist/
# Copy to deployment directory
# (Manual step - could be scripted)Workers:
cd workers/license
bun run deploy
# Deploys to Cloudflare WorkersLanding Page:
- No build step required (static HTML)
- Just commit and push to
master
Auto-deployment: Pushes to master branch auto-deploy to production
Configuration:
- Build command: None (static files)
- Output directory:
/(root) - Environment: Production
URL Routing:
/βindex.html(landing page)/docs/βdocs/directory (built documentation)
Manual deployment (per worker):
cd workers/{worker-name}
bun run deployEnvironment variables: Set via Wrangler CLI or Cloudflare dashboard
STRIPE_SECRET_KEYLOOPS_API_KEYLICENSE_SIGNING_KEY
Never commit secrets - use .dev.vars for local testing (gitignored)
Edit: index.html
Common updates:
- Version numbers (download links)
- Feature descriptions
- Testimonials
- Pricing information
Testing: Open in browser, check responsive design
Deploy: Commit and push to master
Edit: docs-src/src/content/docs/*.md
Structure:
docs-src/src/content/docs/
βββ index.mdx # Docs homepage
βββ getting-started/
β βββ installation.md
β βββ quickstart.md
βββ features/
β βββ mock-apis.md
β βββ webhooks.md
β βββ proxy-recording.md
βββ reference/
βββ cli.md
βββ api.md
Workflow:
- Edit markdown files
- Test locally:
bun run dev - Build:
bun run build - Copy
docs-src/dist/todocs/ - Commit both
docs-src/anddocs/ - Push to
master
Tips:
- Use frontmatter for page metadata (title, description, sidebar position)
- Add code blocks with syntax highlighting
- Include screenshots for UI features
- Cross-link related pages
Edit: workers/{worker-name}/src/*.ts
Testing:
bun run dev # Local test server
# Test endpoints manually or with scriptsDeploy:
bun run deploy
# Verify production endpoint worksPrimary Accent: #c8ff00 (lime green)
- CTAs, links, highlights
Backgrounds:
#0a0a0b(primary)#131316(secondary)#1a1a1d(tertiary/cards)
Text:
#ffffff(primary)#a0a0a0(secondary)#666666(muted)
Font Stack: System fonts (San Francisco, Segoe UI, Roboto, Helvetica, Arial)
Sizes:
- H1: 3rem (48px)
- H2: 2rem (32px)
- H3: 1.5rem (24px)
- Body: 1rem (16px)
Base Unit: 8px (0.5rem)
- Use increments: 0.5rem, 1rem, 1.5rem, 2rem, 4rem
Title: "API Dev Studio - The All-in-One Local API Development Tool"
Description: "Mock APIs, receive webhooks, and proxy real APIs with a beautiful unified interface. Local-first, privacy-focused, and open source."
OG Image: /og-image.png (1200x630px)
sitemap.xml- Auto-generated or manualrobots.txt- Allow all
- Lighthouse score: 95+ (all categories)
- First Contentful Paint: < 1.5s
- Time to Interactive: < 3s
/*
Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline'; ...
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
Referrer-Policy: strict-origin-when-cross-origin
- Cloudflare enforces HTTPS
- HSTS enabled
- Auto-redirect HTTP β HTTPS
- API keys in Cloudflare secrets (never committed)
- Input validation and sanitization
- Rate limiting on sensitive endpoints
- CORS configured per endpoint
This project uses a project_notes/ directory for institutional knowledge:
bugs.md- Bug log and solutionsdecisions.md- Architectural decisions (ADRs)key_facts.md- Configuration, URLs, colors, commandsissues.md- Work log and status
See CLAUDE.md for AI assistant instructions and full context.
- Live Site: https://apidevstudio.com
- GitHub (Website): https://github.com/jpeggdev/apidevstudio.com
- GitHub (Desktop App): https://github.com/jpeggdev/api-dev-studio
- Twitter: @jpegg_dev
License TBD (will be determined before v1.0 launch)
Built with care for developers
Last updated: January 29, 2026