{"id":27054788,"url":"https://github.com/bitkarrot/nip98-js-client","last_synced_at":"2025-04-05T09:17:04.909Z","repository":{"id":261506000,"uuid":"883948619","full_name":"bitkarrot/NIP98-js-client","owner":"bitkarrot","description":"NIP98 client demo in vanilla js (API auth in another repo)","archived":false,"fork":false,"pushed_at":"2024-12-09T00:24:04.000Z","size":232,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-09T01:23:36.111Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://nip-98-js-client.vercel.app/","language":"JavaScript","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/bitkarrot.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-05T21:31:09.000Z","updated_at":"2024-12-09T00:24:02.000Z","dependencies_parsed_at":"2024-12-09T01:31:13.637Z","dependency_job_id":null,"html_url":"https://github.com/bitkarrot/NIP98-js-client","commit_stats":null,"previous_names":["bitkarrot/nip98-js-sample","bitkarrot/nip98-js-client"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitkarrot%2FNIP98-js-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitkarrot%2FNIP98-js-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitkarrot%2FNIP98-js-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitkarrot%2FNIP98-js-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitkarrot","download_url":"https://codeload.github.com/bitkarrot/NIP98-js-client/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247312054,"owners_count":20918344,"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":"2025-04-05T09:17:04.262Z","updated_at":"2025-04-05T09:17:04.901Z","avatar_url":"https://github.com/bitkarrot.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NIP98-sample-client\n\n## Specification\n\nSee specification reference at: [https://github.com/nostr-protocol/nips/blob/master/98.md](https://github.com/nostr-protocol/nips/blob/master/98.md)\n\n\n## Usage\n\nInstall:  `npm i `\n\nTo Run: `npm run start`\n\nFor the remote Auth API server see this repository:\n[https://github.com/bitkarrot/nip98-vercel-api](https://github.com/bitkarrot/nip98-vercel-api)\n\n## Notes\n\nFor hivetalk remote room auth for nostr users\n\nIn this sample repo, we have a sample login page, and after nostr login there is a NIP98 auth button which allows the user to auth\nand retrieve content from a remote server API endpoint.\n\nremote API endpoint: `https://nip98-vercel-api.vercel.app/api/auth`\n\n## Other Possible Use cases:\n\n- NIP 98 auth on success\n  - can automatically forward the user to a remote http site\n  - show content from remote site on current client\n  - redirect to another site with auth\n  - returns a jwt token, to allow remote http site auth.\n\nNote: the relays are not used in the example but is extra code that can be reused for testing other options.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitkarrot%2Fnip98-js-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitkarrot%2Fnip98-js-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitkarrot%2Fnip98-js-client/lists"}