Complete open source codebase. Repository structure, package architecture, and how anyone can verify, contribute, and operate a node.
Every component is open source. No proprietary components, no hidden services, no closed-source dependencies in the critical path. You can read every line of code that processes your trades.
| Component | Description |
|---|---|
| Protocol Engine | Deterministic validation rules (TypeScript + Rust) |
| Node Software | Complete node runtime with all services |
| Gateway | Front-door routing layer |
| Smart Contracts | EVM and Solana marketplace/staking contracts |
| Explorer | Protocol transparency UI |
| Benchmark Dashboard | Performance testing and visualization |
| Documentation | This documentation site |
| Test Infrastructure | E2E cluster testing, security tests, benchmarks |
decenterlizemarket/
├── packages/
│ ├── protocol/ # Consensus rules (pure Zod schemas, zero deps, deterministic)
│ ├── db/ # Database schemas (Drizzle ORM, PostgreSQL)
│ ├── agent/ # Node runtime (mesh networking, gossip, peer management)
│ ├── server/ # Business logic (tRPC routers, API handlers)
│ ├── cache/ # Redis client, rate limiting, caching layer
│ └── external-gateway/ # Stateless routing and load balancing
├── services/
│ ├── node-core/ # Rust microservice (60+ endpoints)
│ └── benchmark-dashboard/ # Dev benchmark platform (P5.js, live streaming)
├── contracts/ # Solidity smart contracts (Hardhat/Foundry)
├── programs/ # Solana Anchor programs
├── src/ # Next.js application (marketplace UI)
├── __tests__/ # Integration and E2E test suite
│ └── app/api/ # API route tests
├── scripts/ # Deployment, migration, and testing scripts
└── docs/ # Protocol documentationservices/protocol — The protocol package is the foundation. Zero external dependencies. Pure Zod schemas and deterministic validation functions. Every node must compute identical results from identical inputs. If it's in the protocol package, it must be deterministic.
services/db — Drizzle ORM schemas for PostgreSQL. Each node has its own isolated database (no shared DB). Protocol data is fully replicated via gossip; chat data is sharded across nodes.
services/agent — The node runtime. Mesh networking, gossip protocol, peer discovery, heartbeat management, and the main node lifecycle. This is what runs when you start a node.
services/server — Business logic layer built on tRPC. API route handlers, chain-specific settlement logic, PSBT management, PoA challenge generation, and the documentation engine.
services/cache — Redis client with rate limiting middleware and caching utilities. Handles the escalating rate limit tiers (5min → 15min → 60min → 24h + gossip ban).
external gateway project — Stateless request routing. Directs incoming requests to the appropriate handler without maintaining session state.
For Users: Verify the rules governing your trades. Confirm there are no hidden fees or backdoors. Build confidence that the protocol is fair.
For Operators: Inspect every line of code your node runs. Audit the protocol validation engine. Propose improvements through governance.
For Developers: Build on top of the public API. Contribute protocol improvements. Fork and experiment. Run the benchmark dashboard to verify performance claims.
services/protocol/src/.pnpm test).pnpm bench:dashboard).The entire system is designed around one principle: every claim the protocol makes is independently verifiable. Open source isn't a marketing feature here. It's a security requirement. A decentralized marketplace where you can't read the code isn't decentralized at all.