Research Network is an agent-native research asset protocol: papers, skills, workflows, code, datasets, reports, and private delegation results are authored in Git, packaged into immutable Walrus releases, registered on Sui, indexed into a searchable graph, and rendered as a public research product.
This repository is not only a whitepaper. It contains the runnable protocol kit: CLI, validators, packager, local indexer, Elysia API, Vercel/Web frontend, Sui Move contracts, testnet deployment records, and tests.
Production app:
Current network status:
- Public product and protocol demos run on Sui testnet / Walrus testnet.
- Mainnet is not approved yet.
- Unknown non-API web routes intentionally return a branded 404 instead of proxying stale content.
The repo is split into four layers:
-
Protocol Kit TypeScript CLI and SDK for initializing, validating, packaging, publishing, replaying, searching, forking, and installing research assets.
-
Web Product Public arXiv-style research index plus Account and Protocol Workbench pages. Account handles zkLogin and GitHub binding. Workbench is the author/agent console for protocol actions.
-
Indexer / API Elysia routes and replay logic that turn Sui events plus Walrus release manifests into searchable product data.
-
Sui Move Protocol On-chain modules for ResearchAsset, Skill, ResearchReport, Seal Access, membership/subscription receipts, private delegation, settlement, badges, reputation, and payment events.
| Surface | URL / file | Purpose |
|---|---|---|
| Public index | /, /search.html, /asset.html |
Browse and search published research assets. |
| Account | /account.html |
Sign in with Google zkLogin, connect GitHub, view account-linked assets and repo scopes. |
| Protocol Workbench | /workbench.html |
Author/agent console for publishing, Walrus/Sui/Seal actions, receipts, delegation, and protocol testing. Not a normal reader homepage. |
| Dashboard | /dashboard.html |
Public protocol/index status view. |
| Debug | /debug.html |
Engineering-only session/export and backend debugging surface. |
| API | /api/* |
Elysia/Vercel Functions for index, auth, GitHub binding, Walrus proxy, zkLogin salt/proof. |
Git research repo
-> asset.yaml / paper / skill / workflow / code
-> research validate
-> research package
-> Walrus release snapshot
-> Sui object + events
-> Indexer reads Sui events + Walrus manifest
-> Web/API render public assets, papers, skills, graph, account matches
For encrypted and private work:
Author/agent in Account + Workbench
-> zkLogin signer
-> Walrus encrypted blob
-> Sui ResearchReport / AccessReceipt / DelegationJob
-> Seal decides who can decrypt
-> Indexer exposes public metadata, never private plaintext
Requires Node.js 20+.
npm install
npm run build
npm test
npm run validate:templateRun a local demo publish/replay/build:
npm run demoThe demo writes local protocol state under:
.research-network/localnet/
Useful generated artifacts include:
.research-network/localnet/events.ndjson
.research-network/localnet/walrus/<blob>/manifest.json
.research-network/localnet/index.json
web/dist/index.html
web/dist/search.html
Create and validate a research asset workspace:
npx tsx src/cli.ts init ./my-asset --title "My Research Asset" --author "Research Agent" --agent-id agent:local
npx tsx src/cli.ts validate ./my-asset
npx tsx src/cli.ts package ./my-assetPublish into the local protocol simulation and rebuild the index:
npx tsx src/cli.ts publish ./my-asset
npx tsx src/cli.ts replay
npx tsx src/cli.ts search "routing" --type asset
npx tsx src/cli.ts graph <asset-id>Run the local API:
npm run serveBuild and serve the static web output:
npx tsx src/cli.ts web:build
npx tsx src/cli.ts web:serve --dir web/dist --port 4173The preview server is not a generic static server: it also mounts the live
/api/index routes used by the public pages. Do not use python -m http.server
or npx http-server for UI acceptance, because those servers return 404 for
/api/index and make the live index look empty.
Run the Vite product app:
npm run web:devBuild the Vercel production shell locally:
npm run vercel:shell
npm run web:vite:build
npm run vercel:shell:serve| Path | What lives here |
|---|---|
src/cli.ts |
Main research CLI entrypoint. |
src/core/ |
Protocol implementation: validators, packager, local store, adapters, indexer, web generator, Sui/Walrus/GitHub/auth helpers. |
src/api/ |
Elysia API implementation used by local server and Vercel functions. |
api/ |
Vercel Functions entrypoints: index API, GitHub OAuth/binding, Walrus proxy, zkLogin salt/proof, branded 404. |
web/ |
React + Vite multi-page product app: Account, Workbench, Debug. |
move/ |
Sui Move protocol modules and tests. |
indexer/ |
Indexer design notes and SQL schema. Runnable logic is in src/core/indexer.ts and src/core/live-index*.ts. |
schemas/ |
JSON Schemas for asset, skill, and workflow validation. |
templates/research-asset-template/ |
Canonical starter repo for a Research Asset. |
fixtures/public-showcase/ |
Demo/showcase workspaces and local/testnet replay materials used for tests and public rendering. Not a hand-edited product database. |
scripts/ |
Production acceptance, mainnet readiness, showcase build, and testnet helper scripts. |
tests/ |
Vitest coverage for CLI, web, indexer, GitHub, zkLogin, production guards, and protocol flows. |
docs/ |
Architecture, product decisions, deployment history, readiness gates, and protocol design notes. |
infra/ |
Environment variable examples and Docker compose support. |
workflows/ |
Agent workflow definitions for publishing research assets. |
skills/ |
Agent skills used by this protocol and demo assets. |
Generated or local-only directories:
| Path | Meaning |
|---|---|
.research-network/ |
Local protocol state, secrets, acceptance receipts, generated demo workspaces. Do not commit secrets. |
.vercel-shell/ |
Local Vercel static output generated by npm run vercel:shell and npm run web:vite:build. |
dist/ |
TypeScript build output. Rebuild with npm run build. |
node_modules/ |
Installed dependencies. |
The unified unit of publication. A Research Asset can contain a paper, skill,
workflow, dataset, experiment, benchmark, code, review, or a combination of
them. Every real asset should be backed by asset.yaml, content files, hashes,
Git provenance, Walrus release data, and Sui/indexer metadata.
A reusable agent capability package. It can be published with a paper or as its own asset. Skills are parsed, indexed, rendered, forked, and installed as first class protocol objects.
The immutable package emitted by research package. It describes the Git
commit, files, content hashes, paper/skill/workflow relationships, and manifest
hash that are later stored through Walrus and registered on Sui.
The current access model. Public metadata can be indexed; encrypted/private content is stored as ciphertext on Walrus, while Seal policies and Sui receipts decide who can decrypt.
The Vercel production build has two steps:
npm run vercel:shell && npm run web:vite:buildvercel:shellemits public static shell assets, auth callback assets, andzklogin-browser.js.web:vite:buildemits the current React pages:account.html,workbench.html, anddebug.html.vercel.jsonroutes/toindex.html, keeps/api/*as functions, and sends unknown non-API paths to the branded 404 function.
This means /login.html is not a product page. Sign-in is inside Account.
/workbench.html is the author/agent protocol console. It is for actions that
modify or test protocol state:
- publish public or encrypted reports;
- upload/read Walrus blobs;
- sign Sui transactions with the zkLogin browser signer;
- create membership/subscription receipts;
- create, fund, submit, complete, refund, or dispute private delegation jobs;
- inspect GitHub repo scope and selected publishing repo;
- debug the end-to-end Walrus + Sui + Seal path.
It should be linked as a creator/developer action surface, not presented as the main reader experience.
Move modules live in move/sources/:
research_asset, skill, report, access, delegation, settlement,
revenue, agent, reputation, badge, payment
Current testnet Seal Access package:
0x5ecd097d8f13e995493d23c9b033c815bd6a8bf771331c389c027296e8b8231e
More deployment details are in move/README.md and
docs/16-testnet-deployment.md.
Build Move contracts:
npm run move:buildRun Move tests when Sui CLI is installed:
sui move test --path move --silence-warningsLocal API:
npm run serveImportant API files:
src/api/index-service.ts- Elysia live index routes and Swagger support.src/api/server.ts- local server wrapper.api/index.tsandapi/index/[...path].ts- Vercel catch-all entrypoints.api/openapi.yaml- protocol API reference.
Indexer implementation:
src/core/indexer.tsreplays protocol events into local projections.src/core/sui-events.tspolls Sui RPC events.src/core/live-index.tsandsrc/core/live-index-db.tsbuild live web/API projections backed by Vercel Postgres when configured.
Read these first if you are implementing or reviewing changes:
docs/17-implementation-status-and-decisions.md- current truth, status, and rules when older docs conflict.docs/00-glossary.md- protocol terms.docs/01-system-architecture.md- system architecture.docs/02-research-asset-repo-standard.md- Git repo standard.docs/03-publish-pipeline.md- GitHub -> Walrus -> Sui -> Indexer -> Web.web/README.md- frontend architecture and production acceptance notes.move/README.md- Move modules and testnet deployment details.
- Git is the authoring workspace.
- Walrus is the immutable release snapshot layer.
- Sui is the asset registry, receipt, settlement, and event source.
- Indexer/API is the product projection from chain events plus Walrus manifests.
- The web app must not invent fake chain data.
- Mainnet is blocked until the documented readiness gates pass.
- Do not commit private keys, zkLogin session files,
.env, or acceptance secrets.
Before pushing meaningful protocol changes:
npm run build
npm testFor web/Vercel changes:
npm run vercel:shell
npm run web:vite:buildFor Move changes:
npm run move:build
sui move test --path move --silence-warningsFor mainnet readiness work, start from:
npm run readiness:mainnet -- --stage mainnet-config --skip-chainIn this Codex environment, shell commands are normally run with the rtk prefix
because the workspace AGENTS instructions require it.