Parent repository for database application portfolio — QuandleDB, VeriSimDB, Lithoglyph, Glyphbase
  • Rust 25.8%
  • Elixir 17.7%
  • ReScript 17.3%
  • Zig 9.1%
  • Lean 5.6%
  • Other 24.4%
Find a file
Jonathan D.A. Jewell 74e4a5e975
fix: eliminate all Obj.magic dangerous patterns across monorepo
Replace every Obj.magic usage with type-safe FFI external bindings:

- verisimdb/Registry.res: Obj.magic(exn) -> Exn.asJsExn typed conversion
- quandledb/Api.res: Obj.magic(resp) -> typed @get/@send Fetch bindings
- lithoglyph/Grid.res: Obj.magic for focus/select/clientX -> @send/@get externals
- lithoglyph/App.res: Obj.magic(event) -> typed addEventListener binding

Proof closure audit found 0 dangerous patterns in Lean/Idris2 proof files
(all hits were comments or keyword table string literals). The 5 actual
Obj.magic usages were all in ReScript DOM/Fetch FFI boundaries, now
replaced with proper typed external declarations.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
2026-04-03 18:07:19 +01:00
.bot_directives feat: initial nextgen-databases — database portfolio tracking 2026-02-13 19:27:35 +00:00
.github Snapshot local work before sync 2026-04-02 09:35:09 +01:00
.hypatia refactor: rename hexad→octad universally across VeriSimDB 2026-03-09 17:14:47 +00:00
.machine_readable feat: deploy UX Manifesto infrastructure 2026-03-28 08:28:08 +00:00
.well-known chore: deploy UX infrastructure (contractile.just, .well-known, manifest) 2026-03-28 23:57:11 +00:00
contractiles chore: add UX infrastructure (quickstart, doctor, setup) 2026-03-28 08:29:10 +00:00
LICENSES Standardise license setup: MPL-2.0 + PMPL-1.0-or-later (REUSE) 2026-03-11 02:53:04 +00:00
lithoglyph fix: eliminate all Obj.magic dangerous patterns across monorepo 2026-04-03 18:07:19 +01:00
nqc feat: deploy UX Manifesto infrastructure 2026-03-28 08:28:08 +00:00
quandledb@ce4490a500 fix: eliminate all Obj.magic dangerous patterns across monorepo 2026-04-03 18:07:19 +01:00
tests/fuzz fix(scorecard): enforce granular permissions and add fuzzing placeholder 2026-03-20 21:11:43 +00:00
typeql-experimental chore: standardise, Justfile, (rename,, fix, parse, errors,, remove, useless, commands) 2026-03-23 22:06:53 +00:00
verisimdb fix: eliminate all Obj.magic dangerous patterns across monorepo 2026-04-03 18:07:19 +01:00
.editorconfig feat: initial nextgen-databases — database portfolio tracking 2026-02-13 19:27:35 +00:00
.gitattributes fix(license): SPDX AGPL-3.0 → PMPL-1.0-or-later in dotfiles 2026-03-15 11:24:04 +00:00
.gitignore chore: gitignore .tool-versions (asdf) 2026-03-28 09:12:42 +00:00
.gitlab-ci.yml feat: initial nextgen-databases — database portfolio tracking 2026-02-13 19:27:35 +00:00
.nojekyll feat: initial nextgen-databases — database portfolio tracking 2026-02-13 19:27:35 +00:00
0-AI-MANIFEST.a2ml chore: update manifest paths to .machine_readable/6a2/ 2026-03-16 14:42:09 +00:00
CODE_OF_CONDUCT.md Replace RSR template placeholders with actual values 2026-03-16 00:20:27 +00:00
contractile.just chore: deploy UX infrastructure (contractile.just, .well-known, manifest) 2026-03-28 23:57:11 +00:00
CONTRIBUTING.md Replace RSR template placeholders with actual values 2026-03-16 00:20:27 +00:00
EXPLAINME.adoc docs: add EXPLAINME.adoc — prove-it file backing README claims 2026-03-22 14:17:03 +00:00
flake.nix feat: deploy UX Manifesto infrastructure 2026-03-28 08:28:08 +00:00
guix.scm feat: deploy UX Manifesto infrastructure 2026-03-28 08:28:08 +00:00
Justfile feat: add UX Justfile with doctor, tour, help-me, assail recipes 2026-03-28 20:42:18 +00:00
LICENSE Standardise license setup: MPL-2.0 + PMPL-1.0-or-later (REUSE) 2026-03-11 02:53:04 +00:00
llm-warmup-dev.md feat: deploy UX Manifesto infrastructure 2026-03-28 08:28:08 +00:00
llm-warmup-user.md feat: deploy UX Manifesto infrastructure 2026-03-28 08:28:08 +00:00
MAINTAINERS.adoc feat: initial nextgen-databases — database portfolio tracking 2026-02-13 19:27:35 +00:00
NOTICE Standardise license setup: MPL-2.0 + PMPL-1.0-or-later (REUSE) 2026-03-11 02:53:04 +00:00
PROOF-NEEDS.md Remove template-only ABI files that falsely implied formal verification 2026-03-30 10:08:30 +01:00
QUICKSTART-DEV.adoc feat: deploy UX Manifesto infrastructure 2026-03-28 08:28:08 +00:00
QUICKSTART-MAINTAINER.adoc feat: deploy UX Manifesto infrastructure 2026-03-28 08:28:08 +00:00
QUICKSTART-USER.adoc feat: deploy UX Manifesto infrastructure 2026-03-28 08:28:08 +00:00
README.adoc fix: SPDX headers (AGPL→PMPL), email, author name 2026-03-16 00:45:40 +00:00
ROADMAP.adoc fix: SPDX headers (AGPL→PMPL), email, author name 2026-03-16 00:45:40 +00:00
SECURITY.md Replace RSR template placeholders with actual values 2026-03-16 00:20:27 +00:00
setup.sh feat: deploy UX Manifesto infrastructure 2026-03-28 08:28:08 +00:00
stapeln.toml feat: add Stapeln container configuration 2026-03-29 11:54:00 +01:00
TEST-NEEDS.md Remove template-only ABI files that falsely implied formal verification 2026-03-30 10:08:30 +01:00
TOOLING-STATUS.adoc docs: universal safety pipeline — two-tier model for VQL, KQL, GQL 2026-03-21 21:59:27 +00:00
TOPOLOGY.md Auto-commit: Sync changes [2026-02-21] 2026-02-21 14:26:03 +00:00

Next-Gen Databases

Parent repository for tracking and coordinating database application development

IMPORTANT: This is a PARENT REPOSITORY ONLY — it contains documentation and tracking but NO implementation code.

Overview

This repository serves as the central tracking hub for the Next-Gen Databases initiative — a coordinated effort to build specialised database applications across different domains, each with its own query language, storage engine, and web interface.

All database implementations are in their respective canonical repositories.

Database Portfolio

Database Description Technology Query Language Status

VeriSimDB

Cross-system entity consistency engine — 8 modalities (octad), drift detection, self-normalisation, formally verified queries. Primary database project. Operates as standalone database OR federation coordinator over existing databases (PostgreSQL, ArangoDB, Elasticsearch).

Rust (core) + ReScript (VQL parser) + Elixir (orchestration)

VQL (VeriSim Query Language) + VQL-DT (dependent types)

Active — beta

QuandleDB

Knot-theory database — stores knots as Gauss codes, computes invariants (Jones polynomial, genus, Seifert circles), queries by topological properties. Exploratory/research project: a thought experiment in applying knot theory to database design, not yet intended as a production tool.

Julia (Skein.jl engine) + ReScript frontend

KQL (Knot Query Language) — in development

Exploratory

LithoGlyph

Narrative-first, reversible, audit-grade database core for journalism, narrative arts, and media/comms. Working towards production but secondary priority to VeriSimDB. Long-term vision: intimate integration with portfolio tools (bofig, etc.) for journalism and PR applications.

Forth (storage) + Zig (bridge) + Factor (FQL) + Idris2 (proofs) + Lean 4 (normalizer)

GQL (Glyph Query Language) — planned

Active — on backburner

Glyphbase

Web interface for LithoGlyph — browser-based search, visualisation, and annotation of glyph specimens

ReScript frontend + LithoGlyph API

(via LithoGlyph)

Planned

Note

Project priorities: VeriSimDB is the primary database engineering project, receiving active development focus. LithoGlyph is working towards production for specialist use in journalism and narrative arts, but is secondary priority while VeriSimDB matures. QuandleDB is a research exploration into knot theory’s applications in database design — valuable for the mathematical insights but not positioned as a production tool at this stage.

Lessons learned from VeriSimDB development (drift detection, formal verification, federation) will directly improve LithoGlyph when development focus returns to it.

Architecture

Each database in the portfolio follows a layered architecture:

  Query Language (DSL)
       ↓
  Database Engine (storage, indexing, computation)
       ↓
  HTTP API Server (JSON endpoints)
       ↓
  Web Frontend (ReScript SPA)

Common Patterns

  • Engines are domain-specific libraries (Julia, Rust, Elixir)

  • APIs expose JSON endpoints wrapping engine queries

  • Frontends are ReScript + React SPAs with TEA-style state management

  • Query languages are typed DSLs parsed with ReScript or domain-native parsers

  • Databases use SQLite or custom storage depending on domain needs

Satellite Repositories

Project Repository Description Status

QuandleDB

quandledb

Knot-theory database wrapping Skein.jl

Active

Skein.jl

Skein.jl

Knot database engine (Julia library)

Active

VeriSimDB

verisimdb

Multimodal verification database

Active

VeriSimDB Data

verisimdb-data

Scan data ingestion pipeline

Active

Lithoglyph

lithoglyph

Glyph and inscription database

Active

Glyphbase

glyphbase

Web frontend for Lithoglyph

Active

Query Language Ecosystem

The database portfolio contributes three query languages to the nextgen-languages portfolio:

Language Database Status

KQL (Knot Query Language)

QuandleDB

In development

VQL (Verification Query Language)

VeriSimDB

~40% complete

FBQL-DT (FormDB Query Language)

FormDB

~50% complete

Documentation

  • .machine_readable/STATE.scm — Project state and progress

  • .machine_readable/META.scm — Architecture decisions

  • .machine_readable/ECOSYSTEM.scm — Ecosystem relationships

Contributing

Each database welcomes contributions. See individual satellite repositories for project-specific contribution guidelines.

License

PMPL-1.0-or-later (Palimpsest Licence)

Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath)

Architecture

See TOPOLOGY.md for a visual architecture map and completion dashboard.