Skip to content
/ twitter-stripe-mrr Public template

A Node script that calculates your total monthly revenue in Stripe and updates your Twitter bio

License

Notifications You must be signed in to change notification settings

jsjoeio/twitter-stripe-mrr

Repository files navigation

Twitter Stripe MRR


Logo

Twitter Stripe MRR

Node script to calculate your total monthly revenue from Stripe (using payouts) and update your Twitter bio (location) based on your MRR goal
Explore the docs »

View Demo · Report Bug · Get Help

Table of Contents

  1. About The Project
  2. Getting Started
  3. Usage
  4. Deployment
  5. Contributing
  6. License
  7. Acknowledgements
  8. Support

Twitter Stripe MRR

Node script that calculates your total monthly revenue from Stripe (using payouts) and updates your Twitter bio (location) based on your MRR goal.


Built With

Getting Started

To use this script locally, make sure you have the prerequisites and then follow the installation steps.

Prerequisites

  • Node and npm(download here)
  • Stripe API key (get from Dashboard here)
  • Twitter API keys
    • Sign up on Developer Portal
    • Either in your project app or Standalone app, click the Key icon
    • Get the Consumer Keys (key and secret)
    • Get the Access token and secret

Installation

  1. Click "Use this template" and then clone locally

  2. yarn

  3. cp .env.example .env

  4. Add your API keys to .env

  5. Run script in dry-run mode (doesn't actually post to Twitter):

    yarn dryRun
    
    # or run directly
    node index.js --dry-run
  6. Run the script and post to Twitter:

    yarn start
    
    # or run directly
    node index.js

Usage

Here are a couple screenshots of people using this in the indie hacker space:

screenshot of @levelsio twitter profile screenshot of @yongfook twitter profile screenshot of @philipyoungg twitter profile

Deployment

This script will run on a regular cadence (once a week on Sunday, see cron syntax in run.yaml) out-of-the-box using GitHub Actions.

Assuming you clicked the "use this template", follow these steps:

  1. Add your .env variables to Settings > Secrets and ensure Actions are enabled.
  2. That's it!

You can verify that everything is working by going to Actions > Health check > Run workflow.

This will perform a dry-run where you can double-check that everything is working correctly.

Contributing

See CONTRIBUTING

License

Distributed under the MIT License. See LICENSE for more information.

Acknowledgements

Project inspired by this tweet

screenshot of tweet

Link to tweet

Image generated thanks to Tweetpik.

Support

ui.dev newsletter - your weekly dose of JS Support the project by signing up for the UI.dev newsletter using our link!

About

A Node script that calculates your total monthly revenue in Stripe and updates your Twitter bio

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published