{"id":22093941,"url":"https://github.com/hzrd149/ln-prism","last_synced_at":"2026-04-30T06:36:49.515Z","repository":{"id":165688761,"uuid":"641100446","full_name":"hzrd149/ln-prism","owner":"hzrd149","description":"A Typescript implementation of Lightning Prisms","archived":false,"fork":false,"pushed_at":"2023-08-31T15:45:04.000Z","size":354,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-14T09:04:26.434Z","etag":null,"topics":["bitcoin","lightning","lightning-address","lnurl"],"latest_commit_sha":null,"homepage":"","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/hzrd149.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2023-05-15T19:26:22.000Z","updated_at":"2024-10-30T04:55:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"8ad605ad-e1d8-4c3c-b312-fdd94b6df8e0","html_url":"https://github.com/hzrd149/ln-prism","commit_stats":null,"previous_names":["hzrd149/ln-prism"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/hzrd149/ln-prism","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hzrd149%2Fln-prism","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hzrd149%2Fln-prism/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hzrd149%2Fln-prism/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hzrd149%2Fln-prism/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hzrd149","download_url":"https://codeload.github.com/hzrd149/ln-prism/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hzrd149%2Fln-prism/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259790457,"owners_count":22911547,"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":["bitcoin","lightning","lightning-address","lnurl"],"created_at":"2024-12-01T03:23:18.899Z","updated_at":"2026-04-30T06:36:49.446Z","avatar_url":"https://github.com/hzrd149.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ln-prism\n\nA typescript implementation of [Lightning Prisms](https://dergigi.com/2023/03/12/lightning-prisms/)\n\n![prism diagram](https://dergigi.com/assets/images/bitcoin/2023-03-12-lightning-prisms/lightning-prism.png)\n\n## Running with docker\n\n```bash\ndocker run --rm -it \\\n\t--name ln-prism\n\t-p 3000:3000 \\\n\t-v $(pwd)/data:/data \\\n\t-e DB_PATH=/data/splits.json \\\n\t-e LNBITS_URL=\"https://legend.lnbits.com\" \\\n\t-e LNBITS_ADMIN_KEY=\"\u003clnbits admin key\u003e\" \\\n\t-e LOGIN_USER=admin \\\n\t-e LOGIN_PASSWORD=changeme \\\n\tghcr.io/hzrd149/ln-prism\n```\n\nThen you can open [http://localhost:3000/admin](http://localhost:3000/admin)\n\n## Running from source\n\n[NodeJS](https://nodejs.org/en) and [yarn](https://yarnpkg.com/) are required to build and run the app\n\nIf you dont have either installing via [nvm](https://github.com/nvm-sh/nvm) is probably the easiest way to set them up\n\n```bash\ngit clone https://github.com/hzrd149/ln-prism.git\ncd ln-prism\n# install dependencies\nyarn install\nyarn build\n# copy the example config\ncp .env.example .env\n# edit the config\nnano .env\n# start the dev server\nyarn dev\n```\n\nStart the tunnel using `yarn tunnel` then start the dev server using `yarn dev`\n\n## Configuration\n\nAll configuration is done through environment variables\n\n- `DB_PATH` the path to the json file where data will be stored (default `./splits.json`)\n- `PORT` http server port (default `3000`)\n- `LNBITS_URL` URL to the lnbits instance ( this can be a local address, eg `http://192.168.1.100:8000` or `http://umbrel.local:3007` )\n- `LNBITS_ADMIN_KEY` The admin key for the wallet, used to create and pay invoices\n- `LOGIN_USER` The username for the `/admin` dashboard (default `admin`)\n- `LOGIN_PASSWORD` The password for the `/admin` (if its not set then the `/admin` routes will be publicly accessible)\n\n## Public access\n\nFor the lightning addresses and the LNURL endpoints to work the app needs to be publicly accessible and served over https\n\n## Docker compose\n\nSee the [docker-compose.yaml](./docker-compose.yaml) for an example\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhzrd149%2Fln-prism","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhzrd149%2Fln-prism","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhzrd149%2Fln-prism/lists"}