Kokoro Tech
Engineering for systems
that don't exist off-the-shelf.
A small engineering studio building infrastructure across software, hardware, and on-chain domains — DeFi brokerage, multi-chain payments, identity and network services, and the engineering practice that holds them together.
In each domain, we've shipped a system for our own use, then offered the underlying capability to organizations that need a comparable system built, customized, or operated. The catalog below is what's been built.
Flagship product
capricorn— DeFi brokerage & aggregation platform
capricorn.happykokoro.comv1.0 shipped 2026-05-09.
Capricorn is the studio's flagship — a single self-custody DeFi brokerage that lets a user deposit into the best of what's already running on-chain without juggling separate protocols, dashboards, accounts, or wallet flows. Three financial products under one roof:
- StakingProgrammable yield across 17 proof-of-stake chains, with APR, slashing, and validator transparency surfaced at the point of deposit.
- Market-makingProgrammatic AMM strategies on Polymarket prediction markets, exposed to end users as configurable positions.
- Liquidation-revenue poolsPassive participation in Stability Pool-style protocols (Liquity v1/v2 SP, Aave Umbrella) aggregated under Liquidation Lab.
The user picks a financial product, signs a wallet transaction, and Capricorn routes to the right backend. One auth, one design system, one billing relationship across all three pillars; users never see the underlying protocol switch.
Architecture is a deliberately thin shell + API gateway over the existing live backends — each pillar's domain logic stays where it already runs (in kokoro-staking, kokoro-mm, and kokoro-liquidation). The gateway focuses on the unified product surface: typed HTTP contracts to each backend, request-level authentication, per-user wallet-state tracking, and a coherent Class A engineering posture (mission-critical, financial; full spec, architecture, security, and 80% test-coverage gates apply per the engineering playbook).
Active products
Deployedkokoro-staking— multi-chain staking aggregator
↗staking.happykokoro.comTracks staking yields, validators, and portfolio positions across 17 proof-of-stake chains (Ethereum, Cosmos, Solana, Polkadot, Avalanche, NEAR, Sui, Aptos, Celestia, Tezos, and others). Wallet-based authentication; users connect a wallet, the backend resolves their staking positions on every supported chain, and a Next.js dashboard surfaces APRs, validator metrics, slashing risk, and projected returns. A common chain-adapter interface keeps the per-chain glue self-contained — adding a new chain is one adapter file plus a registry entry.
shopspring/decimal for exact financial arithmetic, Prometheus metrics + zap structured logging, gobreaker circuit-breakers; Next.js + React + Tailwind frontend. 17/17 chain adapters with full transaction-execution support; ~270 tests; live integration with kokoro-pay for subscription billing.Deployedkokoro-mm— Polymarket AMM SaaS platform
↗mm.happykokoro.comA multi-tenant market-making SaaS for Polymarket prediction markets — programmatic AMM strategies, live order book ingestion, position management, fill simulation, real-time P&L. A Rust 20-crate workspace holds the core engine: a market-data ingester, a strategy framework, an execution module (ECDSA signing against Polymarket's CLOB), a risk module, and a paper-trading harness. The hosted surface adds JWT auth, per-tenant API rate-limiting, subscription billing via kokoro-pay, and an admin/observability plane.
Deployedkokoro-liquidation— Liquidation Lab
↗liquidation.happykokoro.comThe liquidation pillar of Capricorn, with two surfaces in one repository: a Stability Pool aggregator for passive depositors (Liquity v1/v2 SP, Aave Umbrella), and an active liquidation keeper that watches Aave V3, Compound V3, and Moonwell positions and executes flash-loan liquidations across six EVM chains. The active keeper runs in paper mode today; live-mode activation is gated by a future decision record.
Deployedkokoro-pay— multi-chain stablecoin payment processor
Production infrastructure deployed; integrated with kokoro-staking for live subscription billing; merchant onboarding pre-launch. Accepts USDC and USDT across six chains (Solana, Ethereum, Base, Polygon, Arbitrum, Tron), plus Stripe checkout for fiat. Multi-tenant merchant management with organisations + RBAC (5 roles, 37 permissions), HMAC-signed webhook delivery with replay and exponential backoff, treasury balance queries and snapshots, expense tracking, invoicing, hook-based plugin system, subscription billing, on-chain deposit detection.
Active devkokoro-terminal— WebGPU crypto market data terminal
A professional crypto market-data terminal — intelligence (factor data, on-chain flow, social sentiment), execution (multi-venue order routing), and analytics (custom charting, replay, attribution). Pre-1.0; APIs are still mutating between releases. Multi-language Bun monorepo with a Rust core for performance-critical surfaces: apps/api-gateway (Bun + Hono), apps/data-ingest (Bun, WebSocket fanout from exchanges + RPCs), apps/dev-server, frontend-components/ (React 19 + Tailwind + a custom WebGPU chart engine), packages/ (shared TypeScript + Rust crates via NAPI for compute hot paths).
Active devkokoro-protocol— Solana DeFi + gaming platform
A Solana-native DeFi + gaming platform built around 20 Anchor programs — vaults, AMM, leverage, NFT auctions, prediction markets, governance, and on-chain game mechanics. TypeScript backend for off-chain orchestration (job queues, indexers, event sourcing) and a Next.js frontend for end-user surfaces. The Anchor programs are written; the integration surface is being assembled.
Active devkokoro-auth— B2B / enterprise identity provider
The B2B identity layer for the Kokoro stack: SSO (SAML / OIDC / OAuth 2.1), SCIM 2.0 user provisioning, JWT access + refresh tokens with rotation, per-product scope claims, 2FA enforcement, subscription state, API-key issuance for service-to-service calls. One enterprise account and one billing relationship across staking, mm, terminal, pay, Capricorn, and the Kokoro Identity product family.
Active devkokoro-account— B2C consumer-SaaS auth + admin + billing
The B2C sister to kokoro-auth. Where kokoro-auth is the enterprise SSO layer, kokoro-account is the per-product consumer-SaaS shell — local password auth (argon2id + per-IP rate limits), email verification + password reset (Resend-backed), Google / GitHub OAuth, TOTP 2FA, Stripe Checkout + webhook handling, and an admin panel for users / subscriptions / audit. Ships as two packages: a template (Next.js App Router + Hono on Bun + Prisma + Postgres + Stripe + Resend) you fork to start a new B2C SaaS, and an @kokoro/account NPM SDK for existing products that want to pull the same surface in as a library. Capricorn is the first SDK consumer.
DeployedKokoro Identity— network identity product family
A small product family used personally, internally at Kokoro Tech, and offered as a B2B service to a handful of paying clients. The family solves two recurring customer problems: traveling employees losing IP continuity on services that flag location anomalies (GitHub, GitLab, AWS, banking 2FA), and operating from restricted-network regions where standard transports are blocked. Single-tenant per customer — every commercial deployment runs on dedicated infrastructure provisioned for that customer alone.
kokoro-vpn
Rust/Axum control plane and SQLite-backed key/device store; framework + regional extensions for VLESS, Reality, XTLS-Vision. The studio's own multi-region mesh runs the same code.
kokoro-identity
B-end / enterprise package: stable upstream IP, region-appropriate obfuscated transports, full user/device lifecycle. Deployed in production for the studio and B2B clients.
kokoro-identity-cloud
C-end / consumer variant — a managed multi-tenant SaaS that hosts the same identity layer for individuals and small teams who want the platform without running their own deployment.
kokoro-route
Portable Wi-Fi hardware appliance. Software stack built: Go firmware (OpenWrt + Debian SBC), Rust device-attestation server-extension, Android/iOS companion app. Hardware reference SKU is the remaining gate.
kokoro-admin
Customer-facing admin console for managing users, devices, deployments, audit logs, telemetry, billing across one or more Kokoro Identity instances. Laravel + Filament scaffold; specification complete, implementation queued.
Open-source companion stack
Four companion services in a Solana-focused quantitative-research stack, each licensed under PolyForm Noncommercial 1.0.0.
OSSkokoro-lab
A Rust quantitative trading framework for crypto and traditional markets: 20+ factor crates, a backtest engine with walk-forward and Monte Carlo analysis, paper-trading execution with configurable slippage, an event-sourced research workbench (Lab) and a separate live execution robot (Engine), plus a Python research mirror over the same Redis Streams and protobuf interfaces. Configuration-driven: adding a new factor or chain is one file plus a registry entry. Decision traces are persisted; any signal, prediction, or trade can be replayed end-to-end.
OSSkokoro-wallet-monitor
A standalone Solana wallet-monitoring service. Subscribes to a configured set of tracked wallets via the Solana RPC WebSocket, parses swap transactions across major DEXs (Jupiter, Raydium, Orca, Meteora), and runs a Louvain graph-clustering pass over the swap graph to surface coordinated trading clusters. Publishes detected swaps and cluster events to Redis Streams.
OSSkokoro-pricing-service
Multi-DEX price aggregation for Solana. Pulls per-token prices from Jupiter, Raydium, and Orca and reconciles them; estimates liquidity depth and slippage by driving Jupiter Quote at multiple notional sizes; computes order-flow imbalance from on-chain swap streams; runs an optional Pyth-anchored market engine that maintains token snapshots, multi-timeframe OHLCV candles, and a cross-token rotation signal. Exposes a REST API + SSE stream and publishes everything to Redis Streams.
OSSlab-mcp
A TypeScript Model Context Protocol server that exposes the kokoro-lab research platform as 116 typed tools — signals, factors, predictions, regime, scoring, risk, portfolio, market data, polymarket, alerts, backtest jobs, bot lifecycle, admin — with multi-tier access control built on the MCP SDK's AuthInfo flow. Two transports: stdio for direct-spawn clients (e.g. Claude Code) and Streamable HTTP with per-session isolation, idle-session GC, CORS, and Bearer / X-API-Key auth. A thin proxy: stores no data, holds no credentials, delegates authentication to the host application.
Engineering practice
In usekokoro-constitution— engineering playbook
The studio's living engineering playbook — 19 versioned governance documents covering every part of how engineering operates here. CONSTITUTION.md is the top-level charter: values, repo classes (A — financial / mission-critical, B — operational, C — internal), and absolute prohibitions. WORKFLOW.md is the day-to-day process — branching, MR review, scoped-label taxonomy, milestones, worklog discipline. ROLES.md defines authoritative role assignments per artifact in a single-holder studio.
Plus per-language playbooks for Rust, TypeScript, Python, and Go. Every Kokoro Tech repo carries a local constitution.md that pins which version of the master it tracks; every product class maps to concrete gates an engineer or AI agent must clear before merging; amendments flow through the same RFC procedure as any other technical proposal, with full traceability through git history and worklog entries.
Internalkokoro-claude-skills— Claude Code skills for governance automation
A library of Claude Code skills that automate governance-adjacent work: wiring audits, disclosure audits, constitution checks, incident triage, post-incident reports. Used internally to keep documentation and commit history in line with the constitution as the codebase grows.
Licensing
Public repositories: PolyForm Noncommercial 1.0.0 — any noncommercial use is permitted; commercial use is by separate licensing.