Obidot is the frontend, off-chain agent, and docs workspace for the Obidot protocol on Polkadot Hub. This repo is focused on three local surfaces:
modules/app— Next.js trading and vault dashboard UImodules/agent— Fastify + LangChain autonomous agent and read-only HTTP assistantdocs— Fumadocs documentation site
pnpm install
# App: http://localhost:3010
pnpm app:dev
# Agent API: http://127.0.0.1:3011
pnpm agent:dev
# Docs: http://localhost:4010
pnpm docs:dev- Node.js 20+
pnpmis the canonical package manager for this repo- Root verification commands:
pnpm checkruns lint, typecheck, and buildpnpm testruns the real test suite currently present in the workspace
obidot/
├── modules/
│ ├── agent/ # Off-chain agent, API server, Telegram bot
│ └── app/ # Next.js app
├── docs/ # Fumadocs docs site
└── pnpm-workspace.yaml
- The browser-exposed
POST /api/chatsurface is intentionally read-only. It can inspect vault state, yields, and swap routes, but it does not execute transactions. - The agent binds to
127.0.0.1by default. If you intentionally expose it beyond loopback, pair that with an explicitAPI_ALLOWED_ORIGINSconfiguration. SITE_URLcontrols docs metadata and sitemap generation. It defaults tohttps://obidot.com.
- obi.router — smart contracts
- obi-kit — SDK and agent tooling
- obi.index — indexer and backend data services