{"id":22429897,"url":"https://github.com/capdilla/tfa-wasm","last_synced_at":"2025-03-27T07:13:51.677Z","repository":{"id":264683476,"uuid":"894080873","full_name":"capdilla/tfa-wasm","owner":"capdilla","description":"A Wasm app for two factor authentication","archived":false,"fork":false,"pushed_at":"2024-11-25T18:07:45.000Z","size":83,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T12:11:42.161Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/capdilla.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-25T18:05:28.000Z","updated_at":"2024-11-25T18:07:49.000Z","dependencies_parsed_at":"2024-11-25T19:33:48.291Z","dependency_job_id":null,"html_url":"https://github.com/capdilla/tfa-wasm","commit_stats":null,"previous_names":["capdilla/tfa-wasm"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capdilla%2Ftfa-wasm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capdilla%2Ftfa-wasm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capdilla%2Ftfa-wasm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capdilla%2Ftfa-wasm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/capdilla","download_url":"https://codeload.github.com/capdilla/tfa-wasm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245798359,"owners_count":20673902,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-05T21:06:17.254Z","updated_at":"2025-03-27T07:13:51.661Z","avatar_url":"https://github.com/capdilla.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 2FA Authenticator Web App\n\n## Motivation\n\nSo, there I was, bored out of my mind and in desperate need of a 2FA app to secure my accounts. Naturally, like any reasonable person, I thought, “Why pay $15 for a perfectly functional app when I could spend an entire day learning WebAssembly, Rust, and building my own web app instead?” I mean, who wouldn’t jump at the chance to turn a simple problem into a wildly overcomplicated project? Money saved, right? Totally worth it. 🙃\n\n## How to run\n\n1. Install wasm and rust\n2. npm install\n3. npm run wasm:dev // this build the wasm for dev mode\n4. npm run dev\n\n## Build\n\nbuild wasm for prod\n\n```bash\n npm run wasm:build\n```\n\nbuild nextjs app\n\n```\nnpm run build\n```\n\n\n### Notes\n\nThis implementation uses totp_rs, but since the library doesn’t support WebAssembly (WASM), I had to create [this fork](https://github.com/capdilla/totp-rs/commit/c451715d93a15fab584aedeae24bb6c1d5bddb6f) to make it work.\n\n### Demo \n\n[You can check the demo here](https://tfa.capdilla.io/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcapdilla%2Ftfa-wasm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcapdilla%2Ftfa-wasm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcapdilla%2Ftfa-wasm/lists"}