Go to file
keyan 87a6b0278a update README 2021-06-28 18:20:52 -05:00
.ebextensions remove lndcert ... using unsafe tls instead 2021-06-10 19:49:20 -05:00
.platform try tor.config in extensions 2021-06-09 17:43:35 -05:00
.vscode working comments with cache updates 2021-04-17 13:15:18 -05:00
api add forgetten lnurl-auth files 2021-06-26 22:18:32 -05:00
components markdown textareas 2021-06-27 17:28:30 -05:00
fragments notifications done 2021-06-24 18:56:01 -05:00
lib add forgetten lnurl-auth files 2021-06-26 22:18:32 -05:00
pages add forgetten lnurl-auth files 2021-06-26 22:18:32 -05:00
prisma add forgetten lnurl-auth files 2021-06-26 22:18:32 -05:00
public ready for invoices 2021-05-06 16:15:22 -05:00
styles lnurl-auth 2021-06-26 22:09:39 -05:00
svgs add forgetten lnurl-auth files 2021-06-26 22:18:32 -05:00
walletd attempts at serializable transactions 2021-05-19 20:09:32 -05:00
.babelrc collapse 'em 2021-04-30 16:42:51 -05:00
.gitignore added eb config 2021-06-03 18:08:00 -04:00
.npmrc unsafe perm test 2021-06-04 19:54:03 -04:00
Procfile remove tls trace from walletd 2021-06-11 13:52:07 -05:00
README.md update README 2021-06-28 18:20:52 -05:00
package-lock.json markdown textareas 2021-06-27 17:28:30 -05:00
package.json markdown textareas 2021-06-27 17:28:30 -05:00

README.md

stacker.news

(Stacker News)[https://stacker.news] is a Lightning powered Bitcoin news site modelled after Hacker News (which is modelled after Reddit). The intent is to create a better place to discuss Bitcoin.

stack

The site is written in javascript using Next.js, a React framework. The backend API is provided via graphql. The database is postgresql modelled with prisma. We use lnd for the lightning node which we connect to through a tor http tunnel. A customized Bootstrap theme is used for styling.

processes

There are two. 1. the web app and 2. walletd, which checks and polls lnd for all pending invoice/withdrawl statuses in case the web process dies.

wallet transaction safety

To ensure user balances are kept sane, all wallet updates are run in serializable transactions at the database level. Because prisma has relatively poor support for transactions all wallet touching code is written in plpgsql stored procedures and can be found in the prisma/migrations folder.

code

The code is linted with standardjs.

contributing

Pull requests are welcome. Please submit feature requests and bug reports through issues.

license

MIT