{"id":27054786,"url":"https://github.com/bitkarrot/nip98-vercel-api","last_synced_at":"2025-04-05T09:17:04.407Z","repository":{"id":267197211,"uuid":"884700199","full_name":"bitkarrot/nip98-vercel-api","owner":"bitkarrot","description":"NIP98 Auth Endpoint server demo (vanilla js)","archived":false,"fork":false,"pushed_at":"2024-12-09T00:23:46.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-09T01:23:35.391Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://nip98-vercel-api.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-07T08:28:23.000Z","updated_at":"2024-12-09T00:23:44.000Z","dependencies_parsed_at":"2024-12-10T04:00:46.935Z","dependency_job_id":null,"html_url":"https://github.com/bitkarrot/nip98-vercel-api","commit_stats":null,"previous_names":["bitkarrot/nip98-vercel-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitkarrot%2Fnip98-vercel-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitkarrot%2Fnip98-vercel-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitkarrot%2Fnip98-vercel-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitkarrot%2Fnip98-vercel-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitkarrot","download_url":"https://codeload.github.com/bitkarrot/nip98-vercel-api/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:03.874Z","updated_at":"2025-04-05T09:17:04.359Z","avatar_url":"https://github.com/bitkarrot.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NIP98-Vercel-API server\n\n## Usage notes\n\nuse `vercel dev` to run locally\n\ndeployed to vercel as https://nip98-vercel-api.vercel.app/\n\n## API endpoint\n\n### Test GET endpoint:\n`curl -X GET https://nip98-vercel-api.vercel.app/api`\n\n\n### Test POST endpoint:\n`curl -X POST https://nip98-vercel-api.vercel.app/api/two`\n\n\n### NIP98 POST Auth endpoint: \nrequires Authorization header with nostr (in place of bearer)\nand a body with `room`, `username`, `avatarURL`, `relays`, `isPresenter`\n\n`curl -X POST https://nip98-vercel-api.vercel.app/api/auth -H \"Authorization: Nostr \u003cbase64 encoded event\u003e\" -d '{\"room\": \"test\", \"username\": \"test\", \"avatarURL\": \"test\", \"relays\": [ \"wss://relay.damus.io\" ], \"isPresenter\": true}'`\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitkarrot%2Fnip98-vercel-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitkarrot%2Fnip98-vercel-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitkarrot%2Fnip98-vercel-api/lists"}