You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
jamaljsr e617e33416 docs: update references to the website in readme 5 years ago
.github ci(github): do not run builds for translation PRs 5 years ago
.vscode chore(deps): update yarn.lock 5 years ago
assets chore(release): bump version and update changelog & readme 5 years ago
docker feat(c-lightning): add support for c-lightning v0.8.1 5 years ago
e2e style(networks): minor dark mode tweaks to a few ui components 5 years ago
electron refactor(logs): improve the formatting of logs 5 years ago
public chore: remove auto-generated css files from git repo 5 years ago
src test(images): add unit tests for services and utils 5 years ago
.commitlintrc chore(setup): initial app setup (#1) 5 years ago
.crowdin.yml ci(github): do not run builds for translation PRs 5 years ago
.editorconfig chore(setup): initial app setup (#1) 5 years ago
.electronbuildrc fix(electron): fix app icon on linux 5 years ago
.eslintignore chore(config): use nodemon to automatically reload electron 5 years ago
.eslintrc chore(deps): update dependencies react-scripts eslint webpack (#14) 5 years ago
.gitattributes chore(setup): initial app setup (#1) 5 years ago
.gitignore chore: remove auto-generated css files from git repo 5 years ago
.i18next-scanner.js chore(setup): initial app setup (#1) 5 years ago
.lintstagedrc feat(images): implement adding and deleting custom nodes 5 years ago
.prettierignore chore(github): update issue templates 5 years ago
.prettierrc chore(setup): initial app setup (#1) 5 years ago
.renovaterc chore(deps): update renovate bot config 5 years ago
.rescriptsrc.js feat(ui): add command to compile LESS themes 5 years ago
.stylelintrc feat(styles): add emotion dependency 5 years ago
.testcafe-electron-rc chore(setup): initial app setup (#1) 5 years ago
.versionrc chore(setup): initial app setup (#1) 5 years ago
CHANGELOG.md chore(release): bump version to v0.2.1 and update changelog 5 years ago
CONTRIBUTING.md docs: add CONTRIBUTING documentation 5 years ago
LICENSE chore(setup): initial app setup (#1) 5 years ago
README.md docs: update references to the website in readme 5 years ago
RELEASE.md chore(release): bump version and update changelog & readme 5 years ago
TODO.md feat(images): add custom nodes to the New Network screen 5 years ago
package.json chore(deps): update dependency @ant-design/icons to v4.0.0 5 years ago
tsconfig.json feat(network): create an actual network based on user input 5 years ago
yarn.lock chore(deps): update dependency @ant-design/icons to v4.0.0 5 years ago

README.md

Polar

One-click Bitcoin Lightning networks for local app development & testing

Actions Status codecov Crowdin

View a short video demo

Purpose

Polar was built to help Lightning Network application developers quickly spin up one or more networks locally on their computers.

With Polar you can:

  • Create a regtest Lightning Network in just a few clicks
  • Connect from your app to the lightning nodes via RPC
  • Add more nodes using drag & drop
  • Start and stop individual nodes
  • Open & Close Channels
  • Create & Pay Lightning Invoices
  • Launch a terminal in each bitcoin/lightning node
  • Manually mine new blocks
  • Deposit regtest coins into each Lightning node

Supported Network Node Versions:

  • LND v0.8.2, v0.8.0 & v0.7.1
  • Bitcoin Core v0.19.0.1 & v0.18.1
  • c-lightning v0.8.1 & v0.8.0
  • eclair (coming soon?) *need to gauge demand for this implementation*

Dependencies

Polar requires that you have Docker installed to create the local networks

You will be prompted to install Docker if Polar cannot detect it automatically

Download

Download Polar v0.2.1 for

Alternative and older version binaries can be found in the GitHub releases

Polar's Future

The overall goal of Polar is to minimize the time & effort needed for a developer new to Lightning to get started building their next killer app. In addition, Polar aims to be a useful tool for experienced Lightning App developers to iterate faster on their projects. Less time setting up nodes, more time building your app.

Here's a short list of ideas for features that may be beneficial to add in future releases (in no particular order):

  • Network snapshots with the ability to import/export them. These could also be used as templates to quickly boot up a network with predefined nodes and channels. The templates could be hosted github to allow community contributions. This may require a scripting system built-in.
  • Sample app projects/code in different languages (Python, Typescript/JS, Go, C#) showing how to connect to the Lightning/Bitcoin nodes from an external app.
  • Bitcoin Block Explorer & GRPC/REST API Explorers to have access to all of the node RPC API's graphically, without needing to fallback to the Terminal.

Help Translate

Polar's translations are managed on Crowdin. The initial translations of 10 languages were done by machine (Google Translate) and are likely to not be 100% accurate. If you speak multiple languages and wish to help with translations, please feel free to head over to the project page on Crowdin and submit updated strings. This assistance would be greatly appreciated.

Development

If you would like to learn how to package Polar from source code or want to fix a bug or add a new feature, please see CONTRIBUTING for detailed instructions.

Commands

Command Description
yarn install dependencies
yarn dev run the app with react hot reloading and electron live restarting
yarn test run unit tests in watch mode
yarn test:e2e run e2e tests
yarn lint:all run typescript and eslint syntax checking
yarn package package the app for your OS

Tech Stack

Recognition

Huge thanks to maintainers of Lightning Joule, Zap Wallet, LND, Bitcoin Core, along with many others for the amazing apps & libraries that gave this project inspiration, ideas & sometimes even a little code 😊.

Contact

The best place to reach me is on Twitter @jamaljsr. I also lurk in the LND Slack server, so you can msg me there as well.