{"id":13666729,"url":"https://github.com/lnbits/subdomains","last_synced_at":"2026-02-19T12:02:34.590Z","repository":{"id":73758132,"uuid":"601973404","full_name":"lnbits/subdomains","owner":"lnbits","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-29T08:37:37.000Z","size":320,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-27T06:28:22.847Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/lnbits.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-02-15T08:20:11.000Z","updated_at":"2024-11-28T12:41:23.000Z","dependencies_parsed_at":"2024-11-11T01:30:49.454Z","dependency_job_id":"a05bc7b0-b95a-441c-bdf0-731898675954","html_url":"https://github.com/lnbits/subdomains","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/lnbits/subdomains","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnbits%2Fsubdomains","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnbits%2Fsubdomains/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnbits%2Fsubdomains/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnbits%2Fsubdomains/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lnbits","download_url":"https://codeload.github.com/lnbits/subdomains/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnbits%2Fsubdomains/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29612510,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T10:52:55.328Z","status":"ssl_error","status_checked_at":"2026-02-19T10:52:26.323Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":"2024-08-02T06:01:24.233Z","updated_at":"2026-02-19T12:02:34.571Z","avatar_url":"https://github.com/lnbits.png","language":"HTML","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"# Subdomains Extension - \u003csmall\u003e[LNbits](https://github.com/lnbits/lnbits) extension\u003c/small\u003e\n\n\u003csmall\u003eFor more about LNBits extension check [this tutorial](https://github.com/lnbits/lnbits/wiki/LNbits-Extensions)\u003c/small\u003e\n\nSo the goal of the extension is to allow the owner of a domain to sell subdomains to anyone who is willing to pay some money for it.\n\n[![video tutorial livestream](http://img.youtube.com/vi/O1X0fy3uNpw/0.jpg)](https://youtu.be/O1X0fy3uNpw 'video tutorial subdomains')\n\n## Requirements\n\n- Free Cloudflare account\n- Cloudflare as a DNS server provider\n- Cloudflare TOKEN and Cloudflare zone-ID where the domain is parked\n\n## Usage\n\n1. Register at Cloudflare and setup your domain with them. (Just follow instructions they provide...)\n2. Change DNS server at your domain registrar to point to Cloudflare's\n3. Get Cloudflare zone-ID for your domain\n   \u003cimg src=\"https://i.imgur.com/xOgapHr.png\"\u003e\n4. Get Cloudflare API TOKEN\n   \u003cimg src=\"https://i.imgur.com/BZbktTy.png\"\u003e  \n   \u003cimg src=\"https://i.imgur.com/YDZpW7D.png\"\u003e\n5. Open the LNbits subdomains extension and register your domain\n6. Click on the button in the table to open the public form that was generated for your domain\n\n   - Extension also supports webhooks so you can get notified when someone buys a new subdomain\\\n     \u003cimg src=\"https://i.imgur.com/hiauxeR.png\"\u003e\n\n## API Endpoints\n\n- **Domains**\n  - GET /api/v1/domains\n  - POST /api/v1/domains\n  - PUT /api/v1/domains/\u003cdomain_id\u003e\n  - DELETE /api/v1/domains/\u003cdomain_id\u003e\n- **Subdomains**\n  - GET /api/v1/subdomains\n  - POST /api/v1/subdomains/\u003cdomain_id\u003e\n  - GET /api/v1/subdomains/\u003cpayment_hash\u003e\n  - DELETE /api/v1/subdomains/\u003csubdomain_id\u003e\n\n### Cloudflare\n\n- Cloudflare offers programmatic subdomain registration... (create new A record)\n- you can keep your existing domain's registrar, you just have to transfer dns records to the cloudflare (free service)\n- more information:\n  - https://api.cloudflare.com/#getting-started-requests\n  - API endpoints needed for our project:\n    - https://api.cloudflare.com/#dns-records-for-a-zone-list-dns-records\n    - https://api.cloudflare.com/#dns-records-for-a-zone-create-dns-record\n    - https://api.cloudflare.com/#dns-records-for-a-zone-delete-dns-record\n    - https://api.cloudflare.com/#dns-records-for-a-zone-update-dns-record\n- api can be used by providing authorization token OR authorization key\n  - check API Tokens and API Keys : https://api.cloudflare.com/#getting-started-requests\n- Cloudflare API postman collection: https://support.cloudflare.com/hc/en-us/articles/115002323852-Using-Cloudflare-API-with-Postman-Collections\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flnbits%2Fsubdomains","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flnbits%2Fsubdomains","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flnbits%2Fsubdomains/lists"}