Generated: 2026-02-18T13:55:45Z
src/- Core node runtime, networking, blockchain, features (345 TS/JS source files)tests/- OmniProtocol and fixture-driven testsscripts/- Operational scripts (ZK setup, load tests, wallet/proof helpers)docs/,documentation/,monitoring/- User and operator docsdevnet/- Local 4-node Docker dev networktlsnotary/,postgres/,monitoring/- Infra/service compose stacks
- CLI/Node:
src/index.ts- Main node bootstrap, runtime config, service startup - Run script:
run- Primary launcher used in README quick start - RPC API:
src/libs/network/server_rpc.ts- Bun/Fastify RPC surface - OmniProtocol:
src/libs/omniprotocol/integration/startup.ts- Omni server startup/shutdown - Tests:
tests/omniprotocol/*.test.ts,src/features/zk/tests/*.test.ts
- Path:
src/index.ts - Exports: executable bootstrap (process entry)
- Purpose: Initializes chain state, peers, RPC, metrics, OmniProtocol, TLSNotary, and loops
- Path:
src/libs/network/index.ts - Exports:
serverRpcBun,emptyResponse - Purpose: Node RPC interface and request handling plumbing
- Path:
src/libs/omniprotocol/index.ts - Exports: protocol opcodes/registry, serialization, auth/tls/ratelimit, integration types
- Purpose: Typed protocol and transport abstractions for peer-to-peer operations
- Path:
src/libs/blockchain/ - Exports: chain, block, mempool, transaction and execution routines
- Purpose: Block production, validation, state transitions, and consensus helpers
- Path:
src/libs/peer/ - Exports:
Peer,PeerManager, peer routines - Purpose: Peer identity, peer discovery/bootstrap, gossip and broadcast workflows
- Path:
src/libs/l2ps/,src/features/zk/ - Exports: batch/proof managers, prover wrappers, Merkle and verification helpers
- Purpose: Zero-knowledge workflows and L2 processing
- Path:
src/features/mcp/ - Exports: MCP server + tools integration
- Purpose: Exposes Demos node capabilities through MCP-compatible tool interfaces
package.json- runtime scripts, dependencies, main entry (src/index.ts)tsconfig.json- TypeScript compiler configurationormconfig.json- TypeORM/database settingsknip.json- unused export/dependency analysismonitoring/prometheus/prometheus.yml- Prometheus scrape configmonitoring/grafana/provisioning/**/*.yml- Grafana dashboard/datasource provisioningdevnet/docker-compose.yml- local multi-node devnet orchestrationtlsnotary/docker-compose.yml- TLSNotary service stack
README.md- project overview, quick start, operationsINSTALL.md- installation and setup detailsCONTRIBUTING.md- contribution workflowL2PS_TESTING.md- L2PS test guidancemonitoring/README.md- metrics/Grafana setupdevnet/README.md- local devnet lifecycleOMNIPROTOCOL_SETUP.md- OmniProtocol setup
- Unit tests: 10 files (
**/*.test.ts,**/*.spec.ts) - Integration tests: 8 files (
tests/omniprotocol/*.test.ts) - Additional test-support files: 6 (
tests/mocks/*) - Coverage: Not reported in-repo (no committed coverage artifact)
bun^1.2.10- primary runtimetypescript^5.9.3- static typing/compilerfastify^4.28.1- API framework (with swagger plugins)typeorm^0.3.17+pg^8.12.0- persistence layer@kynesyslabs/demosdk^2.10.2- Demos SDK integration@modelcontextprotocol/sdk^1.13.3- MCP server/toolingethers^6.16.0/web3^4.16.0/@solana/web3.js^1.98.4- multichain supportsnarkjs^0.7.5/circomlib^2.0.5- zk circuits and proving
bun install- Configure
.env+ peerlist (demos_peerlist.json) - Start node:
./run(orbun run start:bun) - Type-check:
bun run type-check - Run tests:
bun run test:chains(andbun run zk:testfor ZK suite)