Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shocknet/chargedMail
Lightning Paywall for your GMail Inbox
https://github.com/shocknet/chargedMail
Last synced: about 1 month ago
JSON representation
Lightning Paywall for your GMail Inbox
- Host: GitHub
- URL: https://github.com/shocknet/chargedMail
- Owner: shocknet
- Archived: true
- Created: 2019-11-16T01:40:50.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-06-25T19:12:19.000Z (over 2 years ago)
- Last Synced: 2024-08-02T06:05:01.336Z (4 months ago)
- Language: JavaScript
- Homepage: https://shock.network
- Size: 244 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-lnbits - ChargedMail - Paywall anti-spam for emails (Uncategorized / Uncategorized)
README
This project was created for and [placed in the Strike Lightning Hackathon](https://medium.com/radartech/announcing-strike-hackathon-winners-5a4895708746), see the [devpost submission](https://devpost.com/software/charged-mail).
![chargedMail Logo](https://github.com/shocknet/chargedMail/raw/master/public/chargedMail.png)
# ChargedMail
### Requirements:
- Google Cloud Project
- Gmail API Key
- Google Cloud PubSub API key
- Node 12
- LND or LNBitsLNBits Key can be provided via the interface
### Required Files (LND)
- `private/creds.json`: Authentication File for GMail API
- `private/credsPubSub.json`: Authentication File for GC PubSub
- `private/projectInfo.json`: PubSub Namings- `private/tls.cert`: LND Cert
- `private/admin.macaroon`: Authentication file for LND
- `private/rpc.proto`: LNRPC#### Ensure that these files are put into /private prior to starting. The private folder will be where the user token and internal database will be stored.
### GMail Filters
For emails you wish to receive the paywall challenge, create a filter to add the `Unpaid` label to them, and archive them away from your inbox. Also, create the label `Paid`, which will be applied once the paywall is satisfied, as well as `Inbox`, `Unread` and `Starred`.
### Run
`npm start`, then connect to the web panel at http://localhost:8254/ to define your outgoing message, cost, and initialize the service.#### Tips :)
3K3tKywVy2m29teR52XAMEjZ6Rs3ZLdTxc
![Tips Welcome](https://github.com/shocknet/chargedMail/blob/master/tips.png)