Skip to content
@happykokoro

KokoroTech

Kokoro Tech

A small engineering studio. We build and operate 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.

Studio site, services, and engagement models: docs.happykokoro.com.

Status legend: 🌐 public OSS · 🚀 deployed · 🛠 active development · 📐 design / RFC stage


Open-source

Four companion services in a Solana-focused quantitative-research stack, each licensed under PolyForm Noncommercial 1.0.0.

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.

The framework is configuration-driven: adding a new factor or a new chain is a single file plus a registry entry. Decision traces are persisted so any signal, prediction, or trade can be replayed end-to-end.

License: PolyForm-NC-1.0.0 Rust 1.95 CI

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.

License: PolyForm-NC-1.0.0 Rust 1.95 CI

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 + Server-Sent Events stream and publishes everything to Redis Streams.

License: PolyForm-NC-1.0.0 Rust 1.95 CI

🌐 lab-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: it stores no data, holds no credentials, and delegates authentication to the host application.

License: PolyForm-NC-1.0.0 Node 22 TypeScript CI

Source for the studio's public-facing site at docs.happykokoro.com — capabilities across network, software, hardware, IoT, identity, payments, trading, DeFi, enterprise, and infrastructure; service modes, engagement models, engineering practice, security posture. Built with MkDocs, hosted on Cloudflare Pages.


Active products

🚀 capricorn — DeFi brokerage & aggregation platform

Live at capricorn.happykokoro.com (v1.0 shipped 2026-05-09). A unified front-door for three on-chain product domains: staking (across the chains powered by kokoro-staking), market-making (Polymarket prediction-market AMM, powered by kokoro-mm), and liquidation-revenue pools (passive aggregator over Liquity Stability Pool, Aave Umbrella, and B.Protocol vaults). Users pick a financial product, sign a wallet transaction, and Capricorn routes to the right backend.

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 the liquidation aggregator), and Capricorn focuses on the unified product surface: one auth, one design system, one billing relationship, one wallet-signing flow across staking + market-making + liquidation. Class A under the engineering playbook (mission-critical, financial; full spec, architecture, security, and 80% test-coverage gates apply).

Stack: Next.js 16 + Tailwind v4 + TypeScript strict (frontend); TypeScript Hono on Bun (gateway); lightweight-charts for market views; Zustand + SWR for state; Docker / Compose for deploy; delegates over typed HTTP contracts to Go (kokoro-staking) and Rust (kokoro-mm) upstream services.

🚀 kokoro-staking — multi-chain staking aggregator

Live at staking.happykokoro.com. Tracks 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.

Stack: Go (Gin) HTTP layer, pgx v5 connection pooling against PostgreSQL 16, go-redis v9 against Redis 7, golang-migrate for forward-only schema migrations, shopspring/decimal for exact financial arithmetic, Prometheus metrics + zap structured logging, gobreaker circuit-breakers around external RPC calls; Next.js + React + Tailwind frontend served by nginx. 17/17 chain adapters with full transaction-execution support; ~270 tests across backend and frontend; live integration with kokoro-pay for subscription billing.

🚀 kokoro-mm — Polymarket AMM SaaS platform

Live at mm.happykokoro.com. A 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.

Stack: Rust (tokio, axum, sqlx) for the engine and HTTP layer; Next.js 16 + Tailwind v4 + TypeScript strict + lightweight-charts on the frontend; PostgreSQL 17 + Redis 7 + Prometheus + Grafana for state and observability.

🚀 kokoro-liquidation — Liquidation Lab

Live at liquidation.happykokoro.com as Liquidation Lab. The 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.

Stack: Rust workspace (tokio, axum, ethers + alloy for EVM, sqlx); Next.js frontend for the aggregator surface; PostgreSQL + Redis.

🚀 kokoro-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.

Stack: NestJS 11 + TypeScript, Prisma 6, PostgreSQL 16, BullMQ workers (sweeper + retry), Next.js 16 admin dashboard.

🛠 kokoro-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), sdk/, services-init/, sql/ (PostgreSQL migrations).

Stack: Bun + TypeScript across the workspace; Rust (rust-toolchain 1.95-pinned) for the hot-path libraries reached over NAPI; Biome for lint/format; PostgreSQL for persistence; Redis for streams and caching; WebGPU + WGSL shaders for chart rendering; Docker / Compose full-stack for local dev.

🛠 kokoro-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. In active development; the Anchor programs are written and the integration surface is being assembled.

Stack: Rust + Anchor 0.31 (programs), TypeScript + Hono / NestJS (backend), Next.js + Tailwind (frontend), Solana web3.js, Helius for indexing.

🛠 kokoro-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.

Stack: Bun + TypeScript backend on Hono (port 4050), PostgreSQL with forward-only migrations, Redis for session + rate-limit state, Docker / Compose for deploy.

🛠 kokoro-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; new Kokoro SaaS products start from the template.

Stack: Bun + TypeScript, Hono, Next.js App Router, Prisma + Postgres, Stripe SDK, Resend, jose for JWTs, argon2id.

🚀 Kokoro 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. Horizontal scaling means provisioning additional single-tenant deployments per customer footprint; each deployment stays inside its own boundary.

Five repositories, one product:

  • kokoro-vpn — Rust/Axum control plane and SQLite-backed key/device store; the framework on main plus regional extensions (ext/gfw-bypass for VLESS + Reality + XTLS-Vision against the GFW; ext/geo-expansion as the placeholder for future regions). The studio's own multi-region mesh runs the same code.
  • kokoro-identity — the B-end / enterprise package: stable upstream IP for distributed teams, region-appropriate obfuscated transports, full user/device lifecycle. Deployed in production for the studio and a small set of B2B clients.
  • kokoro-identity-cloud — the C-end / consumer variant: a managed multi-tenant SaaS that hosts the same identity layer for individual users and small teams who want the platform's capabilities without running their own deployment.
  • kokoro-route — portable Wi-Fi hardware appliance that routes a customer's team Wi-Fi through their dedicated Kokoro Identity deployment. Software stack built: Go firmware (OpenWrt + Debian SBC targets), Rust device-attestation server-extension, Android/iOS companion mobile app. Hardware reference SKU is the remaining gate before production.
  • kokoro-admin — customer-facing admin console for managing users, devices, deployments, audit logs, telemetry, and billing across one or more Kokoro Identity instances. Laravel + Filament scaffold; specification complete, implementation queued.

Engineering practice

🚀 kokoro-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. The supporting documents include CI-CD.md (the three-tier local-first CI strategy), TESTING.md, DEVELOPMENT-MODES.md, TECHNICAL-PROPOSALS.md (RFC procedure), DOCUMENTATION.md, OPERATIONS.md, OPERATIONAL-DOCUMENTATION.md, MIGRATION.md, API-STANDARDS.md, DATA-STANDARDS.md, FRONTEND-STANDARDS.md, ARCHITECTURE.md, PLANNING.md, plus per-language playbooks for Rust, TypeScript, Python, and Go.

It's in active use. 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, so the rules evolve with full traceability through git history and worklog entries.

For organisations evaluating the studio as a vendor, the constitution is the most honest signal of how engineering will actually be conducted on a paid engagement — the rules engineering operates by, versioned and amended through their own RFC procedure, with every commit on every product repo expected to honor them.

📦 kokoro-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. We use these internally to keep documentation and commit history in line with the constitution as the codebase grows.


Licensing

Public repositories: PolyForm Noncommercial License 1.0.0 — any noncommercial use is permitted; commercial use is by separate licensing.


Contact

kokorotechofficial@happykokoro.com · docs.happykokoro.com

Popular repositories Loading

  1. lab-mcp lab-mcp Public

    TypeScript MCP server exposing a quantitative trading research platform as 116 typed tools, with multi-tier access control built on the MCP SDK AuthInfo flow.

    TypeScript

  2. .github .github Public

    Organization profile

  3. kokoro-pricing-service kokoro-pricing-service Public

    Multi-DEX price aggregation for Solana — Jupiter, Raydium, Orca pricing with order-flow imbalance, pool-state tracking, and Pyth-anchored market engine. REST + Redis Streams.

    Rust

  4. kokoro-docs kokoro-docs Public

    Under development. Not yet validated.

    Shell

  5. kokoro-lab kokoro-lab Public

    Rust quantitative trading framework — multi-chain (Solana, EVM), factor pipelines, backtest engine, paper trading, Python research mirror. Self-hosted, PolyForm Noncommercial 1.0.0.

    Rust

  6. kokoro-wallet-monitor kokoro-wallet-monitor Public

    Solana on-chain swap detection and wallet clustering — real-time WebSocket subscription, multi-DEX swap parsing, Louvain graph clustering. Publishes to Redis Streams.

    Rust

Repositories

Showing 7 of 7 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…