{"id":20279164,"url":"https://github.com/peterhellberg/nostr-json","last_synced_at":"2025-03-04T01:49:52.794Z","repository":{"id":65662300,"uuid":"596616646","full_name":"peterhellberg/nostr-json","owner":"peterhellberg","description":"Generate a nostr.json used for verification of a Nostr user","archived":false,"fork":false,"pushed_at":"2023-02-02T15:24:41.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-14T07:11:25.706Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/peterhellberg.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}},"created_at":"2023-02-02T15:19:40.000Z","updated_at":"2023-02-12T06:13:40.000Z","dependencies_parsed_at":"2023-02-17T21:31:07.233Z","dependency_job_id":null,"html_url":"https://github.com/peterhellberg/nostr-json","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterhellberg%2Fnostr-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterhellberg%2Fnostr-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterhellberg%2Fnostr-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterhellberg%2Fnostr-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peterhellberg","download_url":"https://codeload.github.com/peterhellberg/nostr-json/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241768277,"owners_count":20017129,"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-14T13:28:39.365Z","updated_at":"2025-03-04T01:49:52.644Z","avatar_url":"https://github.com/peterhellberg.png","language":"Go","readme":"# `nostr-json`\n\nGenerate a `nostr.json` used for verification of a Nostr user\n\n\u003e **Note**: Should be placed at `/.well-known/nostr.json` on the server you are verifying the name for.\n\nBased on code found in the [nip19](https://github.com/nbd-wtf/go-nostr/tree/master/nip19) package in [github.com/nbd-wtf/go-nostr](https://github.com/nbd-wtf/go-nostr).\n\n## Installation\n\n```sh\ngo install github.com/peterhellberg/nostr-json@latest\n```\n\n## Usage\n\nCall `nostr-json` with the **name** and **npub** you want to generate a JSON document for.\n\n```sh\nnostr-json -name peter -npub npub1lzkvkjqs8amrd9m0dmhf4l3wdf7tjawyslrcm96zgttrxzfx9kcsn0dz7s\n```\n\n```json\n{\n  \"names\": {\n    \"peter\": \"f8accb48103f7636976f6eee9afe2e6a7cb975c487c78d974242d63309262db1\"\n  }\n}\n```\n\n\u003e **Note**: You can also run the tool without first installing it:\n\u003e `go run github.com/peterhellberg/nostr-json@v1.0.0 -name peter -npub npub1lzkvkjqs8amrd9m0dmhf4l3wdf7tjawyslrcm96zgttrxzfx9kcsn0dz7s`\n\n## Links\n\n - [NIP-19](https://github.com/nostr-protocol/nips/blob/master/19.md)\n\n## License (MIT)\n\nCopyright (c) 2023 [Peter Hellberg](https://c7.se)\n\n\u003e Permission is hereby granted, free of charge, to any person obtaining\n\u003e a copy of this software and associated documentation files (the\n\u003e \"Software\"), to deal in the Software without restriction, including\n\u003e without limitation the rights to use, copy, modify, merge, publish,\n\u003e distribute, sublicense, and/or sell copies of the Software, and to\n\u003e permit persons to whom the Software is furnished to do so, subject to\n\u003e the following conditions:\n\n\u003e The above copyright notice and this permission notice shall be\n\u003e included in all copies or substantial portions of the Software.\n\n\u003e THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n\u003e EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n\u003e MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n\u003e NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\n\u003e LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\n\u003e OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\n\u003e WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterhellberg%2Fnostr-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeterhellberg%2Fnostr-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterhellberg%2Fnostr-json/lists"}