{"id":48082592,"url":"https://github.com/archetech/name-service","last_synced_at":"2026-04-04T14:58:14.505Z","repository":{"id":344847767,"uuid":"1183351637","full_name":"archetech/name-service","owner":"archetech","description":"Decentralized naming service for Archon DIDs","archived":false,"fork":false,"pushed_at":"2026-03-25T17:27:03.000Z","size":738,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-26T18:42:44.405Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/archetech.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-16T14:20:10.000Z","updated_at":"2026-03-25T17:27:06.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/archetech/name-service","commit_stats":null,"previous_names":["archetech/name-service"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/archetech/name-service","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archetech%2Fname-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archetech%2Fname-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archetech%2Fname-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archetech%2Fname-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/archetech","download_url":"https://codeload.github.com/archetech/name-service/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archetech%2Fname-service/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31403947,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-04-04T14:58:14.132Z","updated_at":"2026-04-04T14:58:14.499Z","avatar_url":"https://github.com/archetech.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Name Service\n\n### Overview\nA decentralized naming service built on Archon Protocol. Users can claim `@name` handles, prove DID ownership, and receive verifiable credentials.\n\nThis repository is split into two main folders:\n\n- **client/** – A React front-end\n- **server/** – An Express/Node back-end\n\n### Features\n\n- **Decentralized Identity** – Login with your DID using challenge-response authentication\n- **Name Registration** – Claim your `@name` handle (3-32 characters, alphanumeric + hyphens/underscores)\n- **Verifiable Credentials** – Receive credentials proving your name ownership\n- **Member Directory** – Browse registered members and view their DID documents\n- **IPNS Publication** – Registry published to IPFS for decentralized resolution\n- **OAuth/OIDC** – Third-party app integration via standard OAuth 2.0 flows\n\n### Quick Start\n\n1. **Configure** – Copy `server/sample.env` to `server/.env` and set:\n   - `NS_SERVICE_NAME` – Unique name for this deployment (used for DID identity)\n   - `NS_PUBLIC_URL` – The canonical public URL (e.g. `https://your-domain.example`)\n   - `NS_SESSION_SECRET` – A random secret string for sessions\n\n2. **Install** dependencies:\n   - `npm run install`\n\n3. **Run** both client and server:\n   - `npm start`\n\n4. **Visit** the site at `http://localhost:3300`\n\n### QR Code Authentication\n\nThe QR code encodes a URL that includes the challenge DID as a query parameter:\n\n`https://wallet.archon.technology?challenge=did:cid:...`\n\nThe wallet URL is specified in the environment variable `NS_WALLET_URL`.\n\nThe API offers two ways to submit a response to the challenge, GET and POST.\n\nThe GET method uses a query parameter for the `response`:\n\n```\ncurl https://your-domain.example/api/login?response=did:cid:...\n```\n\nThe POST method takes the same parameter in the body:\n\n```\ncurl -X POST -H \"Content-Type: application/json\" -d '{\"response\":\"did:cid:...\"}' https://your-domain.example/api/login\n```\n\nBoth login methods return a JSON object indicating whether the login was successful:\n```\n{ authenticated: [ true | false ] }\n```\n\n### Environment Variables\n\nSee `server/sample.env` for all available settings including:\n- `NS_SERVICE_NAME` – Service identity name (used for DID owner identity)\n- `NS_PUBLIC_URL` – Canonical public URL for this deployment\n- `NS_SESSION_SECRET` – Session secret (change from default!)\n- `NS_WALLET_URL` – Wallet URL for QR codes\n- `NS_GATEKEEPER_URL` – Gatekeeper API endpoint\n- `NS_IPFS_API_URL` – IPFS API for registry publication\n- `NS_IPNS_KEY_NAME` – IPNS key for publishing\n\n### Docker\n\n```\ndocker compose up --build\n```\n\nConfigure via environment variables or a `.env` file in the project root.\n\n### Nginx\n\nSee `nginx/name-service.conf.template` for a sample nginx reverse proxy config. Use `envsubst` to fill in your domain:\n\n```\nexport DOMAIN=your-domain.example\nenvsubst '${DOMAIN}' \u003c nginx/name-service.conf.template \u003e /etc/nginx/sites-available/name-service.conf\n```\n\n### License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchetech%2Fname-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farchetech%2Fname-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchetech%2Fname-service/lists"}