Technical Details
⚙️ Components ⚙️
this website is built with the static site generator jekyll. whisper-webui is utilized to analyze the audio tracks and have it output subtitles (what is spoken) that include speaker diarization (determining who says what), which are then transformed into json files. each json file containing a track’s speakers and subtitles data must be manually reviewed and corrected as needed. as changes are made, jekyll build recreates the site’s pages and combines all JSON data into one single JSON data file (data.combined.json).
because the website is static, there is no server-end processing that occurs when searching - it runs locally within the browser.
↪️ Converting Tracks to JSON ↪️
i use whisper-webui (deployed via pinokio) to create subtitle files (.srt) with speech-to-text and speaker diarization, then use this python tool to convert them to json.
💽 JSON for Albums and Tracks 💽
the main JSON data file resides at /assets/data.json
{
"Albums": [
{ "Album": "Longmont Potion Castle",
"Album_Slug": "longmont-potion-castle",
"Album_Picture": "LPC_1.jpg",
"Year": 1988,
"Tracks": [
{
"Track_Title": "Longmont Theme 1",
"Track_Number": 1,
"Track_JSONPath": "longmont-theme-1.json",
"Track_Slug": "longmont-theme-1",
"Aliases": ["Wallace Thrasher"],
"Establishments": ["UPS"],
"Establishment_Notes": {"UPS": "Optional context shown in a pop-up on the track page."},
"Establishment_Types": {"UPS": "real-world"},
"Speakers_Adjusted": "false",
"Subtitles_Adjusted": "false",
"USB_Filename": "longmont-theme-1.mp3"
}
]
}
]
}
it is possible that some keys are not present in all tracks, but the necessary ones of Track_Title, Track_Number, Track_JSONPath, and Track_Slug are listed for each track.
💽 JSON for Track Subtitles 💽
the JSON data for each track resides within a folder named as the respective album title’s slug within the /assets/json folder
[
{
"Index": 1,
"Start Time": "00:00:02,140",
"End Time": "00:00:02,920",
"Speaker": "Woman 1",
"Text": "Betty Boop Diner."
}
]
🧩 WebAssembly Search 🧩
subtitle and speaker searches run locally in the browser using docfind, a search engine compiled to WebAssembly. the Jekyll build creates two indexes: one document per subtitle line, and one per unique speaker/track pair. each index stores searchable keywords and a document ID; the combined JSON data supplies the full records used to display results.
the browser loads docfind’s generated JavaScript module and its WebAssembly file, then initializes each index. subtitle results are checked against the original line so every query term must match within the same subtitle. matching supports word prefixes and one-character typos. speaker search uses the speaker index. aliases and establishments are filtered directly from the combined JSON data rather than indexed with WebAssembly.
index files are written under a directory named for a hash of the combined data, so each build’s data points to matching indexes. install the pinned docfind CLI with sh scripts/install-docfind.sh; the installer verifies the downloaded release with a SHA-256 checksum. See Building for the production build command.
🚘 Under The Hood 🚘
the same file is exposed through a read-only browser API. the API downloads and caches data.combined.json once; all of its methods query that in-memory dataset and do not request data.json, individual track files, or a backend. it is available on every page as window.WallaceThrasherAPI.
the keys of USB_Directory and USB_Filename refer to the respective directory and filename of the mp3 that resides on a “LPC Ultimate Session Bundle” usb drive that are occasionally available for sale via lpc’s website. these two pieces of data are used to play audio, if the files from the usb collection are uploaded.
the LPC USB file resolver uses a Rust WebAssembly module to select exact, normalized, or uniquely matching punctuation-insensitive paths. its JavaScript bindings retain browser-native Unicode normalization and load the module before making the USB collection available to the player. the compiled module is checked in so normal Jekyll and Netlify builds do not need Rust.
🛠️ Building 🛠️
to install the project’s dependencies, ensure Ruby is installed, then install its necessary gems by running: bundle install; bundle update;
to create the default indexable production build, install the pinned docfind CLI and run the build command from the jekyll directory: sh scripts/install-docfind.sh && DOCFIND_BIN="$HOME/.local/bin/docfind" JEKYLL_ENV=production bundle exec jekyll build
when the LPC USB collection is available locally, the build can also verify that every catalog album directory and track filename matches the USB files. set LPC_USB_ROOT to the USB collection’s root before building, for example: LPC_USB_ROOT="/path/to/LPC USB" JEKYLL_ENV=production bundle exec jekyll build.
after changing the Rust resolver, regenerate its checked-in WebAssembly asset from the repository root:
rustup target add wasm32-unknown-unknown
cargo test --locked --manifest-path rust/lpc-file-resolver/Cargo.toml
cargo build --locked --release --target wasm32-unknown-unknown --manifest-path rust/lpc-file-resolver/Cargo.toml
cp rust/lpc-file-resolver/target/wasm32-unknown-unknown/release/lpc_file_resolver.wasm jekyll/assets/wasm/lpc-file-resolver.wasm
run npm test for the JavaScript/WASM compatibility tests and the Playwright suite after a production build for browser integration coverage.
to build the site with the shared browser-rendered track viewer instead of fully rendered track HTML, run: JEKYLL_ENV=production INDEXABLE=false bundle exec jekyll build
to build and start a local web server, run this command from the jekyll directory: JEKYLL_ENV=production bundle exec jekyll serve
🧪 Testing 🧪
Install dependencies once with npm install and (cd jekyll && bundle install). Run every test suite from the repository root with:
npm run test:all
This runs the top-level Node tests, all Python unittest tests, each Jekyll Ruby test in an isolated process, builds the production Jekyll site, and runs the Playwright tests in Docker. The build installs the pinned docfind CLI when needed. The full command requires Node.js and npm, Python 3, Ruby 3.1 or later with Bundler, Docker Compose, and network access to download docfind and the configured remote theme.
Run an individual suite with npm test (Node), npm run test:python (Python), or npm run test:ruby (Ruby). To run Playwright separately, run npm run build:test-site first, then npm run test:e2e:docker. The local npm run test:e2e command remains available when Playwright browsers are installed locally.
With Docker Compose available (including through OrbStack), run the Node and Rust tests from the repository root with docker compose run --rm tests. Docker builds the test image with Node.js 26.13.1, npm 12.2.2, and Rust, mounts the repository read-only, and writes Cargo build artifacts inside the container. The first run requires network access to build the image and download Rust dependencies.
For browser tests, the website service’s completed build can be used instead of npm run build:test-site.
The runbook in runbooks/2026-12-01-wiki-rust-migration-assessment.md documents the Rust migration evaluation and compatibility contract.
The Rust implementation is built with cargo build --manifest-path rust/wiki-tool/Cargo.toml --release. When built, python/wiki_scrape_and_merge.py automatically executes the Rust binary. Set WIKI_TOOL_PYTHON=1 to use the Python fallback explicitly. Build and test the Rust tool with cargo test --manifest-path rust/wiki-tool/Cargo.toml.
📤 Deployment 📤
commits to the main branch are deployed directly by netlify. netlify uses netlify.toml to build the jekyll site with JEKYLL_ENV=production.
☎️ Twilio ☎️
twilio is used for the interactive voice response feature. its interfaces include a softphone-style web app as well as a traditional phone number. stats about who have used the system are shown on the about page.
🏷️ Badges 🏷️
here are various badges related to this project’s code and its deployments
– production deployment status to Netlify
– when last committed to GitHub
– deployed source code size
– source code repository size
– the latest version