openflarestack Star this repo
  1. Catalog
  2. Auth & security
  3. 2FA
Ranked 35 of 234

2FA

wuzf/2fa

Encrypted TOTP code manager with offline PWA, imports from other apps and remote backups.

A self-hosted alternative to Authy.

What it sets up in your account

  • KV
    KV namespace
    A key value store for settings and fast lookups.
  • DO
    Durable Objects
    Keeps live sessions and realtime state.
  • Cr
    Cron trigger
    Runs scheduled tasks.
Category
Auth & security
Licence
MIT
Stars
452
Last commit
today
Latest release
v1.12.0

Use it with AI or code

  • Markdown for AIPaste into ChatGPT, Claude or any LLM./apps/2fa.md
    Open
  • JSON APIFree, no key, CORS open./api/v1/apps/2fa.json
    Open

More in the API docs and llms.txt.

Keeping it up to date

The Deploy button copies the repo into your GitHub. Run this in your copy whenever a new version comes out.

terminal
git remote add upstream https://github.com/wuzf/2fa.git
git pull upstream main
npx wrangler deploy

2FA questions

What is 2FA?

Encrypted TOTP code manager with offline PWA, imports from other apps and remote backups. It’s an open-source, self-hosted alternative to Authy. It runs on Cloudflare Workers in your own account.

What does 2FA set up in my Cloudflare account?

KV namespace, Durable Objects and Cron trigger. They are created in your account, so the data stays yours.

How do I deploy 2FA?

Press Deploy to Cloudflare. Cloudflare copies the repository into your GitHub account, creates what it needs and deploys it with Workers Builds.

Is 2FA free and open source?

Yes. It’s published under the MIT licence. Running it uses your own Cloudflare account, and small setups usually fit in the free plan.

How do I update 2FA?

Pull from the original repository and redeploy: add https://github.com/wuzf/2fa.git as an upstream remote, run git pull upstream main, then npx wrangler deploy.