{"id":28125033,"url":"https://github.com/passport/todos-express-ethereum","last_synced_at":"2025-05-14T09:19:56.857Z","repository":{"id":147061680,"uuid":"498376158","full_name":"passport/todos-express-ethereum","owner":"passport","description":"Todo app using Express and Passport for sign in with Ethereum.","archived":false,"fork":false,"pushed_at":"2022-06-08T13:33:42.000Z","size":444,"stargazers_count":3,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-08T01:32:55.307Z","etag":null,"topics":["ethereum","example","express","nodejs","passport","siwe","sqlite","web3"],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/passport.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"github":"jaredhanson"}},"created_at":"2022-05-31T14:42:43.000Z","updated_at":"2022-12-17T14:59:59.000Z","dependencies_parsed_at":"2023-04-03T15:02:56.224Z","dependency_job_id":null,"html_url":"https://github.com/passport/todos-express-ethereum","commit_stats":{"total_commits":43,"total_committers":1,"mean_commits":43.0,"dds":0.0,"last_synced_commit":"35c7d6ab4933c1b0493a3278c69ff3cb5eeb011b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/passport%2Ftodos-express-ethereum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/passport%2Ftodos-express-ethereum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/passport%2Ftodos-express-ethereum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/passport%2Ftodos-express-ethereum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/passport","download_url":"https://codeload.github.com/passport/todos-express-ethereum/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253728234,"owners_count":21954375,"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":["ethereum","example","express","nodejs","passport","siwe","sqlite","web3"],"created_at":"2025-05-14T09:19:53.899Z","updated_at":"2025-05-14T09:19:56.846Z","avatar_url":"https://github.com/passport.png","language":"CSS","funding_links":["https://github.com/sponsors/jaredhanson"],"categories":[],"sub_categories":[],"readme":"# todos-express-ethereum\n\nThis app illustrates how to use [Passport](https://www.passportjs.org/) with\n[Express](https://expressjs.com/) to sign users in with an Ethereum wallet.  Use\nthis example as a starting point for your own web applications.\n\n## Quick Start\n\nTo run this app, clone the repository and install dependencies:\n\n```bash\n$ git clone https://github.com/passport/todos-express-ethereum.git\n$ cd todos-express-ethereum\n$ npm install\n```\n\nThen start the server.\n\n```bash\n$ npm start\n```\n\nNavigate to [`http://localhost:3000`](http://localhost:3000).\n\n## Overview\n\nThis app illustrates how to build a todo app with sign in functionality using\nExpress, Passport, and the [`passport-ethereum-siwe`](https://www.passportjs.org/packages/passport-ethereum-siwe/)\nstrategy.\n\nThis app is a traditional web application, in which application logic and data\npersistence resides on the server.  HTML pages and forms are rendered by the\nserver and client-side JavaScript is kept to a minimum.\n\nThis app is built using the Express web framework.  Data is persisted to a\n[SQLite](https://www.sqlite.org/) database.  HTML pages are rendered using [EJS](https://ejs.co/)\ntemplates, and are styled using vanilla CSS.\n\nWhen a user first arrives at this app, they are prompted to sign in.  To sign\nin, the [Ethereum Provider](https://eips.ethereum.org/EIPS/eip-1193) API is used\nto request that the user sign a message.  Once authenticated, a login session is\nestablished and maintained between the server and the user's browser with a\ncookie.\n\nAfter signing in, the user can view, create, and edit todo items.  Interaction\noccurs by clicking links and submitting forms, which trigger HTTP requests.\nThe browser automatically includes the cookie set during login with each of\nthese requests.\n\nWhen the server receives a request, it authenticates the cookie and restores the\nlogin session, thus authenticating the user.  It then accesses or stores records\nin the database associated with the authenticated user.\n\n## License\n\n[The Unlicense](https://opensource.org/licenses/unlicense)\n\n## Credit\n\nCreated by [Jared Hanson](https://www.jaredhanson.me/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpassport%2Ftodos-express-ethereum","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpassport%2Ftodos-express-ethereum","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpassport%2Ftodos-express-ethereum/lists"}