Skip to content
On this page

Examples

Every example below is open source under MIT, standalone and meant to be forked. Each folder has its own README with how to install, run and verify it.

Sign-in and accountsLink to this section

ExampleWhat it shows
oc-onboarding-examples/node-next (opens in a new tab)A site with its own login, Connect, claiming at ochk.app and sign in with orangecheck, in Next.js. Runs offline with no account. More
oc-onboarding-examples/python-fastapi (opens in a new tab)The same site in Python, on FastAPI and the orangecheck package.
me-demo.ochk.io (opens in a new tab)A hosted demo (Lumen Notes) with the sign-in popup. It runs on an ochk.io subdomain, so it uses orangecheck's own session; your site takes the path above.

OC AgentLink to this section

oc-agent-examples (opens in a new tab) wraps tool calls from agent frameworks in signed agent-action envelopes, and checks them on the receiving side:

  • mcp-wrap and verifying-mcp-server: an MCP client and a server that refuses any call without a valid delegation and action.
  • anthropic-tool-use, openai-function-call, vercel-ai-tool and langgraph-tool-node: one adapter each.

See OC Agent.

OC VoteLink to this section

oc-vote-examples (opens in a new tab) puts poll tallies where people already are:

  • discord-bot: tallies as Discord embeds.
  • github-action-gate: a GitHub Action that gates a job on a poll's result.
  • shell: one-line oc-vote and jq recipes.

See OC Vote.