Bryce Yu 為何以純靜態 HTML 打造零後端的 Shutong(書桐)AI 提示詞庫,收錄 154 款模板
Why I Built a 154-Template AI Prompt Library as Plain Static HTML With Zero Backend
Bryce Yu 建成 Shutong(書桐)AI 提示詞庫,提供 154 款填寫式模板,採用純靜態 HTML,無須登入或後端。模板涵蓋 66 款圖像風格、48 項寫作與工作任務,以及 40 款附有來源標註參考畫面的影片風格;每款以 JSON Schema 驗證,並記錄原作者、來源 URL、素材類型、授權和 checksum。
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
- Live Prompt Library: bryceyuuu.github.io/ai-prompt-website
- Open-Source Code: BryceYuuu/ai-prompt-website
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.
來源:DEV Community · dev.to