Build

Code map

Where every part lives in the repository, how to run it on your machine, and how it is tested and deployed.

The repository is github.com/mitoshi-xyz/mitoshi, MIT licensed, a pnpm and Turborepo monorepo. Its history starts on 2026-10-22.

zwallet — Zcash wallet (Rust → WASM) and its worker
engine — sizes, timing, registry, leak meter, keys
rails — NEAR Intents 1Click
venues — Polymarket, Polymarket Perps, Hyperliquid, Solana
net — OHTTP client and the pinned key
chart — the canvas chart engine
web — relay, live feeds, hosting (Cloudflare)
gateway — OHTTP gateway and allowlist (Vercel)

Run it locally

Needs Node 24+ and pnpm 12. The wallet's WASM build is committed, so Rust isn't needed.

pnpm install
pnpm --filter @umbra-trade/web dev

That serves localhost:3300 on Zcash testnet through the deployed relay (the app tints itself vermilion so test money never passes for real money). pnpm --filter @umbra-trade/web dev:main serves mainnet on port 3301. Private wallets are funded on mainnet only.

Checks

pnpm lint && pnpm typecheck && pnpm test
PackageTestsWhat they cover
packages/engine22Denominations, rest rules, scheduler, registry and positionWallet, leak meter, keys
packages/rails71Click quote requests and the ed25519 signature check
packages/venues7Polymarket Perps signing (4) and Solana transactions (3)

CI runs Biome, the type checks, these tests and a full build on Node 24 for every push to main and every pull request.

Deploy

WhatCommand
App and relay (Cloudflare)pnpm --filter @umbra-trade/web-worker run deploy
Gateway (Vercel)pnpm --filter @umbra-trade/gateway run deploy
This site (Cloudflare)pnpm --filter @umbra-trade/docs run deploy
Rebuild the wallet WASMpnpm --filter @umbra-trade/zwallet build:wasm (Rust, LLVM clang, the wasi-libc sysroot)

The gateway's secrets (its OHTTP seed, the relay token, NEAR's partner key, Polymarket's builder credentials) are set on the host, never in the repository.

On this page