• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
stevekrouse

stevekrouse

repro-fyi

Infosite on how to make a minimal repro
Public
Like
1
repro-fyi
Home
Code
4
README.md
index.md
H
main.ts
template.tsx
Environment variables
Branches
1
Pull requests
Remixes
History
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
…
Viewing readonly version of main branch: v27
View latest version
README.md

repro.fyi

A minimal reproduction guide hosted on Val Town.

πŸ”— Live site: repro.fyi

How It Works

This val is a simple HTTP server that:

  1. Reads index.md β€” The content file with all the guide text
  2. Renders to HTML β€” Uses marked to convert markdown to HTML
  3. Wraps in a template β€” template.tsx provides the HTML shell, styling, and theme toggle
  4. Serves to the browser β€” main.ts ties it all together

Architecture

main.ts          - HTTP handler, reads markdown, renders template
template.tsx     - Preact component that outputs HTML (JSX rendered to string)
index.md         - Markdown content
README.md        - This file

Key Technologies

  • Val Town β€” Serverless hosting
  • Deno β€” Runtime
  • Preact β€” Lightweight component rendering (JSX β†’ HTML string)
  • Marked β€” Markdown to HTML
  • Water.css β€” Classless CSS framework
  • std/utils β€” Val Town stdlib for file I/O

Development

To edit the content, modify index.md.

To edit the styling or HTML structure, modify template.tsx.

To change how the server works, modify main.ts.

The site automatically deploys when you save changes.

Theme Switching

The template includes a light/dark mode toggle button (πŸŒ™/β˜€οΈ) that:

  • Uses Water.css's light and dark variants
  • Saves preference to localStorage
  • Respects system preference on first load
  • Responds to system preference changes

License

Public domain. Copy it, remix it, make it better.


Built with ❀️ on Val Town

FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
Β© 2026 Val Town, Inc.