{"id":19571532,"url":"https://github.com/block-core/nostr-login","last_synced_at":"2026-02-22T13:36:04.984Z","repository":{"id":245731117,"uuid":"818965244","full_name":"block-core/nostr-login","owner":"block-core","description":"Nostr Login","archived":false,"fork":false,"pushed_at":"2024-10-24T15:50:36.000Z","size":1737,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-16T12:24:41.324Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/block-core.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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,"publiccode":null,"codemeta":null}},"created_at":"2024-06-23T11:42:34.000Z","updated_at":"2024-10-25T11:39:42.000Z","dependencies_parsed_at":"2024-06-23T19:21:34.469Z","dependency_job_id":"a9aa12db-4685-4da1-8dcb-b4be456c0db3","html_url":"https://github.com/block-core/nostr-login","commit_stats":null,"previous_names":["block-core/blockcore-nostr"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/block-core%2Fnostr-login","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/block-core%2Fnostr-login/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/block-core%2Fnostr-login/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/block-core%2Fnostr-login/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/block-core","download_url":"https://codeload.github.com/block-core/nostr-login/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249272738,"owners_count":21241784,"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-11-11T06:19:13.264Z","updated_at":"2026-02-22T13:35:59.934Z","avatar_url":"https://github.com/block-core.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Nostr-Login\n===========\n\nThis library is a powerful `window.nostr` provider.\n\n```\n\u003cscript src='https://www.unpkg.com/@blockcore/nostr-login@1.0.7/dist/unpkg.js'\u003e\u003c/script\u003e\n```\n\nJust add the above script to your HTML and \nget a nice UI for users to login with Nostr Connect (nip46), with an extension, read-only login,\naccount switching, OAuth-like sign up, etc. Your app just talks to the `window.nostr`, the rest is handled by `nostr-login`.\n\n## Options\n\nYou can set these attributes to the `script` tag to customize the behavior:\n- `data-dark-mode` - `true`/`false`, default will use the browser's color theme\n- `data-bunkers` - the comma-separated list of domain names of Nostr Connect (nip46) providers for sign up, i.e. `nsec.app,highlighter.com`\n- `data-perms` - the comma-separated list of [permissions](https://github.com/nostr-protocol/nips/blob/master/46.md#requested-permissions) requested by the app over Nostr Connect, i.e. `sign_event:1,nip04_encrypt`\n- `data-theme` - color themes, one of `default`, `ocean`, `lemonade`, `purple`\n- `data-no-banner` - if `true`, do not show the `nostr-login` banner, will need to launch the modals using event dispatch, see below\n- `data-methods` - comma-separated list of allowed auth methods, method names: `connect`, `extension`, `readOnly`, `local`, all allowed by default.\n- `data-otp-request-url` - URL for requesting OTP code\n- `data-otp-reply-url` - URL for replying with OTP code\n- `data-title` - title for the welcome screen\n- `data-description` - description for the welcome screen\n- `data-start-screen` - screen shown by default (banner click, window.nostr.* call), options: `welcome`, `welcome-login`, `welcome-signup`, `signup`, `local-signup`, `login`, `otp`, `connect`, `login-bunker-url`, `login-read-only`, `connection-string`, `switch-account`, `import`\n- `data-signup-relays` - comma-separated list of relays for nip65 event published on local signup\n\n\n## Acknowledgment\n\nThis project is a fork of [Nostr-Login](https://github.com/nostrband/nostr-login) by Nostr.Band. We would like to thank the original authors for their work and providing it under the MIT license.\n\n## License\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblock-core%2Fnostr-login","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblock-core%2Fnostr-login","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblock-core%2Fnostr-login/lists"}