accounts
v0.19.1
Published
Tempo Accounts SDK
Keywords
Readme
Quick Prompt
Prompt your agent:
Read accounts.tempo.xyz/docs and integrate Tempo Wallet into my applicationInstall
npm i accountspnpm i accountsbun i accountsDocumentation
Start at accounts.tempo.xyz for the product overview, live demos, and integration guides. The documentation lives at accounts.tempo.xyz/docs.
Getting Help
Have questions or building something cool with the Tempo Accounts SDK?
Join the Telegram group to chat with the team and other devs: @mpp_devs
Examples
| Example | Description |
| ------------------------------------------------------------- | -------------------------------------------------------------------------------- |
| basic | Wagmi-based setup using the tempoWallet connector to connect to Tempo Wallet. |
| deposits | Open the deposit UI with optional pre-filled fields. |
| cli | Minimal CLI setup to connect and authorize local keys using Tempo Wallet. |
| webauthn | Domain-bound passkey example using Wagmi and the webAuthn connector. |
| access-key | Authorize access keys using Tempo Wallet to submit transactions without prompts. |
| access-key-and-webauthn | Authorize access keys using domain-bound Passkeys. |
| fee-payer | Sponsor transactions via Tempo Wallet. |
| fee-payer-and-webauthn | Sponsor transactions using a Cloudflare Worker with domain-bound Passkeys. |
| mpp | Auto-pay HTTP 402 responses served by a Hono server using mppx/hono. |
Development
Requires Docker and OrbStack (recommended on macOS for automatic HTTPS .accounts.local domains).
pnpm dev # start all dev services via docker compose
pnpm build # build library
pnpm check # lint + format
pnpm check:types # type checks
pnpm test # run testsServices
| Service | OrbStack URL |
| ---------------- | ----------------------------------- |
| Playground | https://playground.accounts.local |
| Dialog Reference | https://dialog-ref.accounts.local |
| Docs | https://docs.accounts.local |
| Wagmi Playground | https://wagmi.accounts.local |
Deployment
The docs site is configured for Vercel as a monorepo project.
| Setting | Value |
| -------------- | ------------ |
| Root Directory | site |
| Build Command | pnpm build |
| Dev Command | pnpm dev |
Set VITE_BASE_URL to the production docs origin when using a custom domain.
Playgrounds
| Playground | Command | Description |
| ---------------------------- | ---------------- | -------------------------------------------- |
| web | pnpm dev | Web playground for dialog + adapter testing. |
| wagmi | pnpm dev:wagmi | Wagmi-based playground with connectors. |
| cli | pnpm dev:cli | CLI playground for device-code auth flow. |
Reference Implementations
The ref-impls/ directory contains reference implementations for building with Tempo Accounts SDK:
| Directory | Description |
| ------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ref-impls/dialog/ | Minimal, unstyled embed dialog app demonstrating how to build a custom embed using the Remote API. Select dialogRefImpl in the web playground's adapter dropdown to test against it. |
