DEV Community

Bryce Yu
Bryce Yu

Posted on

Why I Built a 154-Template AI Prompt Library as Plain Static HTML With Zero Backend

Great AI prompts usually die in bookmarks. You see an impressive image style or a sharp writing workflow in a social feed, save the post, and never adapt it because the original author's parameters are buried in a wall of text or locked behind a site that wants you to create an account first.

When I built Shutong (书桐) (live site), I wanted the shortest possible path from seeing a result to reusing the prompt: open the page, fill in your own material, copy or export, with zero login and zero backend.

1. Treat curated content as schema-validated data

Shutong currently ships 154 fill-in templates:

  • 66 image styles
  • 48 practical writing and work tasks
  • 40 video styles with attributed reference frames

Instead of hand-coding HTML cards, every template is defined as a structured style card validated against a JSON Schema before publishing. A curation script builds the catalog while recording original authors, source URLs, asset types, licenses, and checksums.

Making attribution part of the schema solves a major problem in prompt collections: third-party visual styles and writing frameworks always stay linked back to their original creators and license terms.

2. Plain HTML, CSS, and JavaScript can still be tested like an app

Shipping a media-heavy catalog as plain static files on GitHub Pages keeps load times instant and makes self-hosting trivial, while third-party video players stay unloaded until explicitly clicked.

Static does not mean untested. The repo pairs jsdom unit tests covering search, filtering, and template rendering with browser checks for broken links, hostile input, and layout overflow, plus mutation testing to verify the test suite itself catches real regressions.

3. Local-only state, zero account friction

Each template exposes only the fields that actually change for your task and updates the final prompt live as you type. You can copy it directly or export Markdown/JSON. Bookmarks save only template IDs in local browser storage, and anything you type into the fill-in fields stays purely in page memory and clears on refresh.

Explore the site and source


Written by Bryce Yu (野生Bryce), independent AI product builder and tech content creator. More open-source projects on GitHub, videos on YouTube, and build notes on X.

Top comments (0)