Skip to content

The engineering wiki

Updated

Page actions

ChatGPT and Claude are third-party services. The link gives them this page's public address and a short instruction. This site records nothing.

Sri Guru Granth Sahib Ji — all 1,430 Angs, 60,658 lines — kept verbatim, cited by Ang, and never altered. This wiki explains how: the pipeline that proves the text against the source Bir, the database and the read-only API built from it, the website (gurbanisoul.com) and the Gurbani Soul iOS app that show it, and the checks every change passes before it reaches anyone. It is written for engineers first, and for anyone who wants to understand how the scripture is kept whole.

On the rendered wiki this line shows what production is serving right now — version, commit, build date, dataset build and the health checks — read live from /api/health.

Choose your path

  • Platform engineerthe API, the search and verification engines, the data pin and the delivery pipeline, in order.
  • Data engineerthe line record, the corpus pipeline and its gates, the editorial ledger, and how a dataset reaches production.
  • iOS engineerGurbani Soul: the contract and parity, the database pair and launch integrity, Nitnem, and how the app takes a release.
  • Reviewer or scholarwhat the project promises, where the text is proven, what a review checks, and how to say no.

New to the project? Your first week is five days to a merged change.

  1. Clone the platform: git clone https://github.com/Algorythmos-AI/sggs-platform.git && cd sggs-platform
  2. make doctor — checks Python 3.12, Node 22 and whether the database is installed.
  3. make dataset — downloads the pinned database (~104 MiB), verifies its sha256, installs it.
  4. cd webapp && python3 serve.py — the API and the website on http://localhost:7777.
  5. Search. Every line comes back verbatim, with its Ang — or try it here, against production:

On the rendered wiki this is the search simulator: it runs the query against the live API and lights the tier of the waterfall that answered. On GitHub, run curl -s 'http://localhost:7777/api/search?q=sat%20nam&limit=3' after step 4.

The whole walk-through, with what to do when a step fails: Run it locally.

The whole system

The people, the three surfaces, the one read-only API, the pinned database and where the text comes from — press Next on the site to build it up step by step:

System landscape The people (sangat and students, Granthis and scholars, engineers), the three surfaces they use (website, iOS app, wiki), the read-only API running as Vercel functions and the pinned database behind it, sggs-data that turns the source Bir PDF into that database, the labelled English layer, and CI as the only way anything reaches production. 01 · System landscape Who uses the SGGS Knowledge Base, what they touch, and where the text comes from SurfacesPlatform Sangat · students — read, search, studySangat · studentsread, search, studyGranthi · scholar — reviews, never editsGranthi · scholarreviews, never editsEngineers · interns — change it by PRsEngineers · internschange it by PRsWebsite — gurbanisoul.com — frontend/Websitegurbanisoul.comfrontend/Gurbani Soul (iOS) — offline, own DB copyGurbani Soul (iOS)offline, own DB copyThis wiki — docs.gurbanisoul.comThis wikidocs.gurbanisoul.com/api/*live widgetsThe API, Python stdlib — Vercel functions, same origin — 29 routes · 5 contextsThe API, Python stdlibVercel functions, same origin29 routes · 5 contextsdb/sggs.sqlite — 60,658 lines · 1,430 Angs — installed by pin, verifieddb/sggs.sqlite60,658 lines · 1,430 Angsinstalled by pin, verifiedby pintranslationsShabadOS / BaniDB — English, a labelled layer — never blended inShabadOS / BaniDBEnglish, a labelled layernever blended insggs-data — source PDF → database — reconciled, gated, ledgeredsggs-datasource PDF → databasereconciled, gated, ledgereddeploysCI gates — tests · contract · integrity — the only way to deployCI gatestests · contract · integritythe only way to deployVercel — the web + the API functions — Render kept on standbyVercelthe web + the API functionsRender kept on standby a personcomponent in this projectdata at restexternal systemgate: fails the build or the deployflow: data or control moves this wayreference: pins, reads or derives from Source of truth: docs/architecture/overview.md · webapp/serve.py ·gateway/routes.json · dataset.lock.json ·.github/workflows/deploy-production.yml v1.3.10 · verified 2026-09-27 · d2f2e41Sri Guru Granth Sahib Ji — Knowledge Base · engineering wiki
Poster 01 — The system landscape: the people, the three surfaces (web, iOS, wiki), the one read-only API, the pinned database, and where the verbatim text comes from · open full size

Find your way

  • Scripture 101what the Granth is, its structure, the script and its Unicode, and how answers about it are given.
  • Architecturethree repositories, one read-only API in five contexts, a pinned database: the system and how its parts fit.
  • Dataa line record, the corpus pipeline and its gates, the dataset pin, the editorial ledger, the integrity chain.
  • Search & verificationthe search waterfall, the Roman fold, the verification engine and the harnesses that hold them.
  • The API29 read-only routes, the contract that pins them, versioning and caching, and a reference to try.
  • The iOS appGurbani Soul: how it takes a release, its parity with the API, its launch-integrity check, Nitnem.
  • Ship & operatebranching, environments, the CI gates, releases and the runbooks for when something goes wrong.
  • Decisionswhy the system is the way it is, one decision record at a time.
  • Glossaryevery term the wiki uses, from Ang to X-Service.
  • Writing these docshow a page, a diagram, a poster or a widget gets onto this site, and the gates it passes.

Latest changes

  1. v1.7.72026-11-25The release that brings the daily Hukamnama from Sri Harmandir Sahib to every Gurbani Soul reader on the App Store: iOS 1.7.7 turns the feature on in App Store builds (G3 copy review signed by the owner 2026-11-25), and they register with this release's production Hukamnama service · 1 removed · 3 changed
  2. v1.7.62026-11-24A one-day greeting for Guru Nanak Dev Ji's 557th Parkash Gurpurab on gurbanisoul.com · 1 added · 2 changed
  3. v1.7.52026-11-22The daily Hukamnama gets faster recovery when a day is held: a held day can be approved from the alert on the owner's phone, a day approved just after midnight still reaches readers' phones, and a stopped service is noticed within minutes · 3 added · 1 fixed

The newest releases, read from the changelog at build. Every release and what it changed: Releases · the full changelog on GitHub.