v2.0.0: Pre-computed matching, curated database, new UX

Database:
- 145,821 curated entries (was 153,805 raw user searches)
- Removed 13,317 junk entries (spam, gibberish, personal rants)
- Added 8,536 terms across 17 research categories (occult, theology,
  9/11, gematria, psyop, cosmology, bitcoin, AI, coronavirus, world
  affairs, economics, health, intelligence, history, politics, civil
  liberties, free speech)
- ~90% signal quality (up from ~80%)

Pre-computed matching:
- db.json with all 69 cipher values pre-calculated per entry
- Query matching in ~100ms (was 2-5 seconds in live mode)
- db.txt fallback for forks that don't need pre-computed mode
- Generate db.json: see gematria_dbs/all_ciphers.py

UX improvements:
- Enter triggers auto-match AND adds to history
- Escape closes modal, clears highlight filter
- Automatch toggle (on desktop, off mobile by default)
- Own phrase pinned to top of match results
- Modal: close button, minimize/restore, positioned below ciphers
- Mobile: keyboard dismisses after Enter, filter box hidden
- 12 results per page, phrase truncation with ellipsis
- New phrases appear at top of history list

Branding / config.js:
- Copy config.default.js to config.js to customize your fork
- Configurable: site name, logo, colors, glow, about links, credits,
  database mode, defaults, custom cipher categories
- Matrix font hover effect on logo letters
- Custom cipher categories (e.g., CCRU section for AQ/Synx/Keypad)

Acknowledgments:
- Saun-Virroco: Original Gematro creator
- NetVoid (cyphers.news): Preserved codebase & database
- Alektryon: Cipher contributions
- Database curation assisted by Claude (Anthropic)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
malonehunterandClaude Opus 4.6 committed 2026-04-02 06:40:35 -04:00
1 parent 7863d73ef7
commit 0e96c610f2
30 files changed
+8942 -16522

No files matched your search

+59
View File
@@ -0,0 +1,59 @@
// =====================================================================
// Cypher Calculator Configuration (Default / Opensource)
// Copy this file to config.js and customize for your site.
// =====================================================================
var CALC_CONFIG = {
// --- Branding ---
siteName: "Cypher Calculator", // logo text
siteTitle: "Cypher Calculator — Gematria", // browser tab title
logoColor: "hsl(148, 60%, 45%)", // green (match code rain)
logoGlow: "0 0 8px rgba(0,255,65,0.3), 0 0 16px rgba(0,255,65,0.15)",
logoHoverMatrix: true, // flip letters to matrix font on hover
faviconUrl: "res/favicon.png",
// --- Messages ---
welcomeMessage: "loading cypher database...",
loadedMessage: "{count} entries × {ciphers} cyphers ready",
// --- Links ---
siteUrl: "",
githubUrl: "https://github.com/malonehunter/hyperdope-gematria",
aboutLinks: [
// Add your own links here:
// { text: "My Site", url: "https://example.com" },
{ text: "GitHub", url: "https://github.com/malonehunter/hyperdope-gematria" },
],
// --- Credits ---
credits: [
{ name: "Saun-Virroco", role: "Original Gematro creator" },
{ name: "NetVoid", url: "https://cyphers.news/", role: "Preserved codebase & database" },
{ name: "Alektryon", url: "https://github.com/Alektryon", role: "Cipher contributions" },
{ name: "Hyperdope", url: "https://hyperdope.com", role: "Database overhaul & v2 architecture" },
],
// --- Database ---
databaseMode: "auto", // "auto" tries db.json then db.txt | "json" | "txt"
databaseJsonUrl: "db.json",
databaseTxtUrl: "db.txt",
// --- Defaults ---
autoMatchDesktop: true,
autoMatchMobile: false,
resultsPerPage: 12,
newPhrasesOnTop: true,
// --- Custom Cipher Categories ---
// Group ciphers into custom menu sections. Ciphers are referenced by
// their exact name from ciphers.js. They still appear in their original
// category too — custom categories are convenience shortcuts.
customCategories: [
// Example: CCRU section for Anglossic Qabbala research
// {
// name: "CCRU",
// ciphers: ["Alphanumeric Qabbala", "Synx", "Keypad"]
// },
],
};