No description https://hypertoken.ai
  • TypeScript 71.2%
  • JavaScript 27.9%
  • HTML 0.8%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Marcellina II (She/Her) 8f3bdda596
All checks were successful
Build & Push Docker Image / build (push) Successful in 26s
fix: harden engine and network boundaries
2026-09-13 07:22:23 -04:00
.forgejo/workflows Add Forgejo CI workflows 2026-04-24 14:47:21 -04:00
.gitea/workflows chore: bump to 0.3.0 and add verification gate (Iteration 1) 2026-08-04 08:20:29 -04:00
.playwright-cli feat: extend blackjack and harden E2E sessions 2026-08-19 17:43:24 -04:00
benchmark fix: address code review findings 2026-08-05 10:14:36 -04:00
cli fix: harden engine and network boundaries 2026-09-13 07:22:23 -04:00
core fix: harden engine and network boundaries 2026-09-13 07:22:23 -04:00
docs fix: harden engine and network boundaries 2026-09-13 07:22:23 -04:00
engine fix: harden engine and network boundaries 2026-09-13 07:22:23 -04:00
examples fix: harden engine and network boundaries 2026-09-13 07:22:23 -04:00
mcp fix: harden engine lifecycle and release gates 2026-08-09 08:47:08 -04:00
network fix: harden engine and network boundaries 2026-09-13 07:22:23 -04:00
patterns feat: migrate examples to use engine CRDT, add agent:setMeta and game:mergeState 2026-03-29 14:21:28 -04:00
test fix: harden engine and network boundaries 2026-09-13 07:22:23 -04:00
.dockerignore fix: address code review findings 2026-08-05 10:14:36 -04:00
.gitignore docs: add MkDocs documentation site 2026-08-25 17:46:49 -04:00
.ignore fix: harden engine lifecycle and release gates 2026-08-09 08:47:08 -04:00
AGENTS.md fix: harden engine and network boundaries 2026-09-13 07:22:23 -04:00
CHANGELOG.md fix: harden engine lifecycle and release gates 2026-08-09 08:47:08 -04:00
docker-compose.yml refactor: remove dead blackjack scripts and clean up stale doc references 2026-07-05 23:48:47 -04:00
DOCKER.md refactor: remove Rust→WASM core (TS-only dispatch) 2026-08-05 09:30:27 -04:00
Dockerfile fix: address code review findings 2026-08-05 10:14:36 -04:00
exporters.js First commit 2026-01-01 15:36:24 -05:00
hypertoken.webp First commit 2026-01-01 15:36:24 -05:00
landing.html docs: refresh landing page with live showcase and fix stale content 2026-08-03 15:22:19 -04:00
LICENSE First commit 2026-01-01 15:36:24 -05:00
mkdocs.yml fix: harden engine and network boundaries 2026-09-13 07:22:23 -04:00
NOTICE First commit 2026-01-01 15:36:24 -05:00
package-lock.json feat: extend blackjack and harden E2E sessions 2026-08-19 17:43:24 -04:00
package.json fix: harden engine and network boundaries 2026-09-13 07:22:23 -04:00
README.md docs: add MkDocs documentation site 2026-08-25 17:46:49 -04:00
requirements-docs.txt docs: add MkDocs documentation site 2026-08-25 17:46:49 -04:00
testIntegration.js First commit 2026-01-01 15:36:24 -05:00
tsconfig.build.json fix: harden engine lifecycle and release gates 2026-08-09 08:47:08 -04:00
tsconfig.json First commit 2026-01-01 15:36:24 -05:00
WASM_INTEGRATION.md fix: harden engine lifecycle and release gates 2026-08-09 08:47:08 -04:00

🧩 HyperToken

HyperToken is a CRDT-native state engine for games, simulations, and forkable collaborative applications. It models application state with Automerge and provides domain primitives, action dispatch, persistence, synchronization, and branching workflows.

HyperToken is a logic and state layer, not a graphics engine: pair it with a renderer or UI for visual applications. It is also not a blockchain. CRDT replication helps distributed replicas converge; it does not provide a permissionless ledger, economic settlement, identity, or blockchain-style trust guarantees.

Quick start

npm install
npm run build
npm run blackjack

Capabilities and limitations

HyperToken provides:

  • Automerge-backed state with immutable tokens, stacks, spaces, agents, and game-specific data.
  • Action-based state mutation, rules, persistence adapters, peer synchronization, and relay or authoritative deployment modes.
  • Fork and merge workflows for exploring divergent state, plus browser and Node.js examples.

CRDT convergence is not correctness. A converged state can still be illegal, unfair, or produced by an untrusted client; application rules, validation, identity, and deployment trust remain separate concerns. The default relay is unauthenticated, and generic network encryption is implemented but not wired into the general peer/sync path. Compaction discards pre-epoch history: disconnect networking and sync, then coordinate the same compaction boundary across all peers.

Documentation

Build the documentation locally

python3 -m pip install -r requirements-docs.txt
python3 -m mkdocs serve
python3 -m mkdocs build --strict

Docker

docker build -t hypertoken:latest .
docker compose up relay

Testing

See the testing guide.

npm run test:quick
npm run test:unit
npm run test

License

HyperToken is licensed under the Apache License 2.0. Copyright © 2025 The Carpocratian Church of Commonality and Equality, Inc.


👥 Credits

Created by Marcellina II (she/her)

Inspired by Martin Kleppmann's work on CRDTs, Rich Hickey's philosophy on state and time, and the legacy of HyperCard.


🜍 Proemium to the Art of Tokens

The All is number, and from number flow the forms of things.
For as the Monad abides in simplicity, so does it unfold the Dyad,
and from their tension spring the harmonies that sustain the world.

Among the arts that imitate the order of the heavens,
there now arises one most subtle and most just—the Art of Tokens.

In this art, every being is rendered as a form in relation,
every action as a motion among forms,
and the laws that bind them are set forth as measure and correspondence.

Let none deem this art a toy of artifice.
It is the discipline by which the mind rehearses creation,
a mirror held to the pattern of the world-soul.

So may this art be given freely,
that all who love Wisdom may join the music of the spheres through understanding,
and that the harmony of minds may become the harmony of worlds.

For when reason is made common, the gods are near.