Skip to content
This repository was archived by the owner on Sep 14, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
7798132
fix(cli): persist vault data across invocations
yujiym Mar 31, 2026
f33eb16
doc: update CLI docs, skills, and presentation
yujiym Mar 31, 2026
0dbe7a4
fix(examples/memo): add porto
yujiym Mar 31, 2026
23a60df
feat(web): add footer link
yujiym Mar 31, 2026
7899de1
chore
yujiym Mar 31, 2026
4421817
docs: update demo, docs
yujiym Mar 31, 2026
1f3b852
fix(web): patch rolldown createRequire for CF Workers deploy
yujiym Mar 31, 2026
b838bce
cli: bump
yujiym Apr 1, 2026
ffb0ffa
fix(sdk): use fixed db name instead of directory path for OrbitDB vault
yujiym Apr 1, 2026
588547e
feat(cli): use relay as default transport for vault commands
yujiym Apr 1, 2026
c9fb611
bump version
yujiym Apr 1, 2026
3745a53
feat(cli): register uses relay for vault lookup and auto-extracts tags
yujiym Apr 1, 2026
f99618f
doc(web): update web, docs
yujiym Apr 1, 2026
5aab5ea
bump cli
yujiym Apr 1, 2026
306839e
fix(sdk,cli,web): register tx signing, search, and relay connectivity
yujiym Apr 1, 2026
2ce8a0f
chore: update lockfile
yujiym Apr 1, 2026
4ddb5cc
fix(relay): revert to 1000 block chunks and add 60s search cache
yujiym Apr 1, 2026
7cb8ecb
feat(sdk): increase event scan chunk to 10k blocks for Alchemy RPC
yujiym Apr 1, 2026
c6f87ba
fix(sdk): use 9999 block chunk for 10k range RPC limit
yujiym Apr 1, 2026
4b55ef8
fix(sdk,cli): parse tokenURI metadata in findData and improve discove…
yujiym Apr 1, 2026
b64cb4e
bump version
yujiym Apr 1, 2026
45cffd3
docs: update
yujiym Apr 1, 2026
d6f6f72
chore
yujiym Apr 1, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .claude/skills/orbitmem-cli/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,14 @@ packages/cli/src/

| File | Contents |
|------|----------|
| `config.json` | `{ relay, chain, registryAddress, reputationAddress }` |
| `key.json` | Generated EVM private key |
| `vault/` | Local OrbitDB data directory |
| `config.json` | `{ walletName, network, relay, chain, registryAddress, reputationAddress }` |
| `vault/` | OrbitDB data directory (blocks, keystore, database logs) |

## Command → SDK layer mapping

| Command | SDK Layer(s) |
|---------|-------------|
| `init` | Identity (key gen via viem) |
| `init` | Identity (OWS wallet creation) |
| `vault store/get/ls` | Data (vault) + Encryption |
| `register` | Discovery (on-chain registry) |
| `discover` | Discovery (findData) |
Expand Down
7 changes: 3 additions & 4 deletions .claude/skills/orbitmem-discover/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,17 @@ or quality thresholds. Returns data IDs, names, tags, quality scores, and vault
## Search Command

```bash
cd examples/agent-research && bun run tools/search-research.ts --tags <tag1>,<tag2> --keyword "<text>" --min-quality <1-5>
npx orbitmem discover --tags <tag1>,<tag2> --min-quality <score>
```

### Flags (all optional, use at least one)

| Flag | Description |
|------|-------------|
| `--tags` | Comma-separated tags to filter by |
| `--keyword` | Free-text keyword search |
| `--min-quality` | Minimum quality score (1-5) |
| `--schema` | Schema identifier to filter by |
| `--fetch` | Also retrieve the first result's vault data |
| `--min-quality` | Minimum quality score |
| `--json` | Machine-readable output |

## OrbitMem Layers Used

Expand Down
8 changes: 4 additions & 4 deletions .claude/skills/orbitmem-rate/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ a data reputation layer that other agents use to filter trusted data.
## Rate Command

```bash
cd examples/agent-research && bun run tools/submit-feedback.ts <dataId> <score> --dimension <dim> --tags <tag1>,<tag2>
npx orbitmem rate <dataId> <score> --tag <tag>
```

### Arguments

| Arg | Required | Description |
|-----|----------|-------------|
| `dataId` | yes | The on-chain data ID (number from discover results) |
| `score` | yes | Quality score from 1 (poor) to 5 (excellent) |
| `--dimension` | no | One of: `accuracy`, `freshness`, `completeness`, `usefulness` (default: `usefulness`) |
| `--tags` | no | Up to 2 tags describing the feedback (e.g. `accurate,fresh`) |
| `score` | yes | Quality score (number) |
| `--tag` | no | Tag describing the feedback (e.g. `accurate`, `fresh`) |
| `--json` | no | Machine-readable output |

## OrbitMem Layers Used

Expand Down
9 changes: 5 additions & 4 deletions .claude/skills/orbitmem-store/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,18 @@ making it discoverable by other agents.
## Store Command

```bash
cd examples/agent-research && bun run tools/store-research.ts "<key>" "<value>" --tags <tag1>,<tag2> --visibility public
npx orbitmem vault store <key> <value> --public
npx orbitmem register <key> --tags <tag1>,<tag2>
```

### Arguments

| Arg | Required | Description |
|-----|----------|-------------|
| `key` | yes | Kebab-case path identifier (e.g. `notes/bun-vs-deno`) |
| `key` | yes | Kebab-case path identifier (e.g. `research/bun-vs-deno`) |
| `value` | yes | The data to store (plain text, JSON string, markdown) |
| `--tags` | no | Comma-separated tags for discovery (default: `research`) |
| `--visibility` | no | `public` (default) or `private` |
| `--public` | no | Store as public (default: private, AES encrypted) |
| `--tags` | no | Comma-separated tags for on-chain registration |

## OrbitMem Layers Used

Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,5 @@ orbitdb/
worktrees/

# Project-specific
orbitmem-cli/
/orbitmem-cli/
.orbitmem
3 changes: 2 additions & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ OWNER=<SAFE_ADDRESS> forge script script/Deploy.s.sol --broadcast --rpc-url <RPC
### CLI Commands

```bash
bun run cli init # Initialize OrbitMem (generate keys, create config)
bun run cli init # Initialize OrbitMem (OWS wallet + ~/.orbitmem/ config)
bun run cli init --force # Re-link existing OWS wallet to config
bun run cli status # Show identity, config, and vault info
bun run cli vault store <p> <v> # Store data in vault
bun run cli vault get <path> # Read data from vault
Expand Down
14 changes: 10 additions & 4 deletions apps/web/app/components/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ import { type ReactNode, useState } from "react";

import { ConnectButton } from "./ConnectButton";

const navLinks = [
{ to: "/explore", label: "Explore" },
{ to: "/dashboard", label: "Dashboard" },
] as const;
const navLinks = [{ to: "/explore", label: "Explore" }] as const;

export function Layout({ children }: { children: ReactNode }) {
const routerState = useRouterState();
Expand Down Expand Up @@ -139,6 +136,15 @@ export function Layout({ children }: { children: ReactNode }) {
>
ERC-8128
</a>
<span className="text-stone-300">&middot;</span>
<a
href="https://openwallet.sh/"
target="_blank"
rel="noopener noreferrer"
className="hover:text-stone-600 transition-colors"
>
Open Wallet Standard
</a>
</div>
</footer>
</div>
Expand Down
4 changes: 3 additions & 1 deletion apps/web/app/lib/api.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const BASE = "/api";
const BASE = import.meta.env.VITE_RELAY_URL
? `${import.meta.env.VITE_RELAY_URL}/v1`
: "/api";

async function fetchJSON<T>(path: string, init?: RequestInit): Promise<T> {
const res = await fetch(`${BASE}${path}`, {
Expand Down
38 changes: 38 additions & 0 deletions apps/web/app/lib/pino-noop.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
const noop = () => {};
const logger = {
trace: noop,
debug: noop,
info: noop,
warn: noop,
error: noop,
fatal: noop,
silent: noop,
child: () => logger,
bindings: () => ({}),
level: "silent",
};

export const levels = {
values: {
fatal: 60,
error: 50,
warn: 40,
info: 30,
debug: 20,
trace: 10,
},
labels: {
60: "fatal",
50: "error",
40: "warn",
30: "info",
20: "debug",
10: "trace",
},
};

export default function pino(_opts?: unknown, _stream?: unknown) {
return logger;
}

export { pino };
14 changes: 10 additions & 4 deletions apps/web/app/routes/__root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ import type { ReactNode } from "react";
import { WagmiProvider } from "wagmi";

import { Layout } from "../components/Layout";
import { wagmiConfig } from "../lib/wagmi";

import appCss from "../index.css?url";
import { wagmiConfig } from "../lib/wagmi";

interface RouterContext {
queryClient: QueryClient;
Expand All @@ -30,7 +29,10 @@ export const Route = createRootRouteWithContext<RouterContext>()({
content: "Decentralized data layer for agentic web.",
},
{ property: "og:type", content: "website" },
{ property: "og:title", content: "OrbitMem — Decentralized data layer for agentic web." },
{
property: "og:title",
content: "OrbitMem — Decentralized data layer for agentic web.",
},
{
property: "og:description",
content: "Decentralized data layer for agentic web.",
Expand All @@ -43,7 +45,11 @@ export const Route = createRootRouteWithContext<RouterContext>()({
{ rel: "stylesheet", href: appCss },
{ rel: "icon", type: "image/png", href: "/logo.png" },
{ rel: "preconnect", href: "https://fonts.googleapis.com" },
{ rel: "preconnect", href: "https://fonts.gstatic.com", crossorigin: "anonymous" },
{
rel: "preconnect",
href: "https://fonts.gstatic.com",
crossorigin: "anonymous",
},
{
rel: "stylesheet",
href: "https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap",
Expand Down
31 changes: 18 additions & 13 deletions apps/web/app/routes/explore/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,37 @@ import { useCallback, useState } from "react";

import { DataTable } from "../../components/DataTable";
import { SearchBar } from "../../components/SearchBar";
import { type DataRegistration, getDataStats, searchData } from "../../lib/api";
import { type DataRegistration, searchData } from "../../lib/api";

export const Route = createFileRoute("/explore/")({
component: DataPage,
});

function DataPage() {
const [schema, setSchema] = useState("");
const [query, setQuery] = useState("");
const [verifiedOnly, setVerifiedOnly] = useState(false);

const { data: stats, isLoading: statsLoading } = useQuery({
queryKey: ["dataStats"],
queryFn: getDataStats,
refetchInterval: 60_000,
});

const { data: result, isLoading } = useQuery({
queryKey: ["dataSearch", schema, verifiedOnly],
queryKey: ["dataSearch", verifiedOnly],
queryFn: () =>
searchData({
schema: schema || undefined,
verifiedOnly: verifiedOnly || undefined,
}),
});

const entries = result?.results ?? [];
// Client-side text search across name, description, tags, schema, key
const entries = (result?.results ?? []).filter((d) => {
if (!query) return true;
const q = query.toLowerCase();
return (
d.name?.toLowerCase().includes(q) ||
d.description?.toLowerCase().includes(q) ||
d.schema?.toLowerCase().includes(q) ||
d.tags?.some((t) => t.toLowerCase().includes(q))
);
});

const onSearch = useCallback((q: string) => setSchema(q), []);
const onSearch = useCallback((q: string) => setQuery(q), []);

return (
<div className="space-y-6">
Expand All @@ -40,6 +43,7 @@ function DataPage() {
<p className="text-sm">Browse data entries with quality scores and tags</p>
</div>

{/* TODO: re-enable stats when relay is live
<div className="grid grid-cols-3 gap-4">
<div className="rounded-xl bg-stone-100 p-5">
<p className="text-xs text-stone-900 mb-1">Data Entries</p>
Expand All @@ -54,9 +58,10 @@ function DataPage() {
<p className="text-2xl font-bold">{statsLoading ? "—" : (stats?.avgQuality ?? 0)}</p>
</div>
</div>
*/}

<div className="flex flex-col sm:flex-row items-start sm:items-center gap-3">
<SearchBar placeholder="Search by schema..." onSearch={onSearch} />
<SearchBar placeholder="Search by name, tags..." onSearch={onSearch} />
<label className="flex items-center gap-2 text-sm cursor-pointer">
<input
type="checkbox"
Expand Down
Loading
Loading