A Web3 wallet and agent platform for the Unicity network - crypto wallet, DMs, group chat, and marketplace.
A Web3 wallet and agent platform for the Unicity network - crypto wallet, DMs, group chat, and marketplace.
A Web3 wallet and agent platform for the Unicity network — crypto wallet, DMs, group chat, and marketplace.
Unicity state transitions:
Common: QR codes, wallet switching, seed phrase management, real-time market data.
Sphere implements ConnectHost — the wallet side of the Sphere Connect protocol. External dApps can connect to Sphere and request wallet operations:
PostMessageTransportKey components: ConnectPage (/connect route), ConnectProvider, ConnectionApprovalModal.
unicity-connect://)Sphere supports a custom URL protocol for inter-app linking within DMs. When a dApp sends a unicity-connect:// URL in a DM, Sphere renders it as an interactive button with two options: Open in Sphere (loads the URL as an iframe agent) or Open in browser (opens in a new tab).
Protocol format:
unicity-connect://host/path?query=paramsWhen opened, the protocol is resolved to https:// (or http:// for localhost/127.0.0.1).
How it works:
https:// with unicity-connect:// before sending it as a DM messageunicity-connect:// in plain text, [text](unicity-connect://...), and <a href="unicity-connect://..."> formats, rendering a DeepLinkButton dropdownuseDeepLinkNavigation in DashboardLayout) navigates to /agents/custom?url=<httpsUrl>, loading the target as an iframe agenthttp(s):// URL is opened in a new tab via window.openKey files:
src/utils/deepLinkHandler.ts — protocol conversion (deepLinkToHttps), global click handler registrysrc/utils/markdown.tsx — DeepLinkButton component, deep link detection in all link formatssrc/hooks/useDeepLinkNavigation.ts — registers the Sphere-side navigation handlerAgents are specialized interfaces loaded as tabs. Currently active:
Additional agent types can be added in src/config/activities.ts.
Relay-based group messaging via NIP-29:
wss://sphere-relay.unicity.networknpm install
cp .env.example .env # Configure environment variables
npm run dev # Start dev server at http://localhost:5173npm run dev # Development server
npm run build # TypeScript compile + Vite production build
npm run preview # Preview production build
npm run lint # ESLint
npm run test # Vitest watch mode
npm run test:run # Vitest single runCopy .env.example to .env. Key variables:
VITE_WELCOME_AGENT_NAMETAG=kbbot # Welcome DM agent nametag
VITE_WELCOME_DELAY_MS=4000 # Delay before welcome DM (ms)
SSL_CERT_PATH= # Dev server HTTPS (optional)
HMR_HOST= # Remote HMR host (optional)
BASE_PATH=/ # Deployment base path…docker compose up # Runs on port 3010Private project — Unicity Labs
Bridge assets in and out of Unicity from the wallet
CDN 403s any query containing localhost/127.0.0.1, which blocks the documented custom-agent local-testing flow
No billing history: a paying user cannot see what they bought, when, or why their limits dropped
Plan duration is a hardcoded 30-day constant the plan model cannot express
Buying a cheaper plan silently discards the days already paid for
Cut the abandon/background-settlement machinery: a recovered key from a cancelled order has nowhere to land
Mainnet rollout gate: four wallet-side defects to fix before MAINNET_ROLLOUT_ENABLED is flipped
Not rounded number in transaction history breaks formatting
Chat caches keyed on a nullable identity, and five surfaces that misreport a missing Sphere
[HIGH] Seed phrase is stored in plaintext in IndexedDB; there is no wallet password or unlock screen