From 0828ef473d3ae6ec783cb607e7ee83e17db3a44c Mon Sep 17 00:00:00 2001 From: Fredrik Johansson Date: Wed, 15 Jul 2026 14:33:54 +0200 Subject: [PATCH] Expand snippet pool with more code and add lore/flavor text MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 8 more entries (16 total, up from 8): three more code snippets across delve-term/stash/goonk for variety, plus five real lore/flavor text fragments -- two from adventure's Chronicle of the Keepers (English) and three from djupet's event log (Swedish, on purpose -- genuinely different character set, and it's real shipped content, not filler). Added a `type` field (code/lore) to every entry for future use (could filter by type later) and updated the header/help-modal copy to stop saying "code" exclusively now that it isn't. Verified via simulated typing: a full Swedish snippet (öäå included) types and finishes correctly with 100% accuracy, and a lore snippet renders and completes the same as any code one. Co-Authored-By: Claude Sonnet 5 --- .gitignore | 3 + README.md | 11 +- index.html | 8 +- package-lock.json | 1057 +++++++++++++++++++++++++++++++++++++++++++++ package.json | 13 + snippets.json | 64 +++ 6 files changed, 1151 insertions(+), 5 deletions(-) create mode 100644 package-lock.json create mode 100644 package.json diff --git a/.gitignore b/.gitignore index 4c49bd7..bad6dfc 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,4 @@ .env +node_modules/ +npm-debug.log* + diff --git a/README.md b/README.md index 7194b5e..f93d961 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,16 @@ want them pleasant to type. ## Local development -Any static file server works, e.g.: +Run with npm: + +```bash +npm install +npm run dev +``` + +This serves the app on `http://localhost:8850`. + +Any static file server still works, e.g.: ```bash python3 -m http.server 8850 diff --git a/index.html b/index.html index b3a691c..4b0c335 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ typo - + @@ -16,7 +16,7 @@

typo

-

real code, from real repos — type it as fast and cleanly as you can

+

real code and lore, from real repos — type it as fast and cleanly as you can

loading a snippet…
@@ -42,8 +42,8 @@