Skip to content

tempoxyz/accounts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

294 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

accounts

Accounts SDK for Apps and Wallets building on Tempo.

Quick Prompt · Install · Documentation · Examples · Development · License


Quick Prompt

Prompt your agent:

Read docs.tempo.xyz/accounts and integrate Tempo Wallet into my application

Install

npm i accounts
pnpm i accounts
bun i accounts

Documentation

For documentation and guides, visit docs.tempo.xyz/accounts.

Getting Help

Have questions or building something cool with the 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 Wallets.
cli Minimal CLI setup to connect and authorize local keys using Tempo Wallets.
domain-bound-webauthn Domain-bound passkey example using Wagmi and the webAuthn connector.
with-access-key Authorize access keys using Tempo Wallets to submit transactions without prompts.
with-access-key-and-webauthn Authorize access keys using domain-bound Passkeys.
with-fee-payer Sponsor transactions via Tempo Wallets.
with-fee-payer-and-webauthn Sponsor transactions using a Cloudflare Worker with domain-bound Passkeys.

Development

pnpm dev              # start dialog + dialog-ref + web playground dev servers
pnpm dev:cli          # start the CLI playground client
pnpm dev:dialog       # start Tempo Wallet dialog only
pnpm dev:dialog-ref   # start reference dialog implementation only (port 5174)
pnpm dev:playground   # start web playground only
pnpm dev:hosts        # start dialog + web playground instances on different TLDs
pnpm build            # build library
pnpm check            # lint + format
pnpm check:types      # type checks
pnpm test             # run tests

pnpm dev:hosts starts three dev servers on different domains for cross-origin testing:

  • https://app.moderato.tempo.local:3001
  • https://playground.a:5173
  • https://playground.b:5175

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 on the Account 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.
ref-impls/cli-auth/ Minimal React + Cloudflare/Vite host reference for device-code CLI auth: built-in code-auth endpoints plus a single unstyled approval screen and local smoke client.

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in these packages by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

Accounts SDK for Apps and Wallets building on Tempo.

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Contributing

Security policy

Stars

Watchers

Forks

Contributors

Languages