Apache-2.0 developer preview

The Open Commerce Graph for Solana

A public schema, deterministic validator, and content-hashing format for representing real-world businesses in Solana commerce.

Browser-safe. Offline by default. No tokens, no accounts, no vendor lock-in.

Open Commerce Graph architecturePackage dependency diagram showing schema at the base, validator, Solana Pay, Blinks, attestations, x402, CLI, demo, and docs.ocg-schematypes, schema, hashvalidatoroffline readinesssolana-payURL and memo checksattestationsSAS templatesBlinksAction templatesCLIvalidate, score, hashx402paid data interfaceDemofictional devnet recordsDocs and speccanonical reference

Why this exists

Autonomous agents now book appointments, place orders, and route payments on a user's behalf. To act safely they need to verify that a business is real, currently operating, and accepting the asset the user wants to spend before money moves.

Solana settles transactions in seconds. Settlement alone does not tell a wallet whether the merchant on the other end is real, what they sell, which currencies they accept, or whether the payment endpoint matches the brand the user clicked.

Schema.org gives the web a shared vocabulary, but it does not define a content hash, readiness score, authority-strength taxonomy, payment-endpoint shape, or privacy boundary for on-chain anchors.

Show, don't tell

The quickstart path is parse, score, hash. The same core posture runs in Node and in the browser.

ts
import { parseKnownBusinessRecord } from '@realworldcommerce/ocg-schema/zod';

const raw = await readFile('./record.json', 'utf8');
const parsed = parseKnownBusinessRecord(JSON.parse(raw));

if (!parsed.ok) {
  for (const issue of parsed.error) {
    console.error(`${issue.path.join('.')}: ${issue.message}`);
  }
  process.exit(1);
}

What it is not

  • A KYC product.
  • A KYB product.
  • An official Solana verification, endorsement, or certification system.
  • A payment processor.
  • A transaction submitter. No code path in this repository submits Solana transactions.
  • A token. No governance token, no rewards token, no on-chain registry that issues tokens.
  • A registry of real businesses. The demo runs on six fictional records and only on devnet.

Project status

Developer previewRelease candidate packages are staged in the OSS workspace
LicenseApache-2.0
DemoFull runtime demo plus in-browser validator
Next stepRelease cleanup before public repo and npm publish