Add an open page to your website in a few minutes. Share your revenue, KPIs, and progress to engage your community, build transparency, and foster trust.
The design of the template is inspired by ghost's
/open
page 👻
Built using Next.js and Sequin - you can connect this /open
template directly to your Stripe data and deploy it to your website using a service like Vercel.
This /open
page pulls revenue and KPI data directly from Stripe and Airtable using Sequin. First, you'll setup your data sources, then you'll spin up the page.
You'll securely connect to your Stripe data using Sequin. Here is a brief overview, but if you need more guidance, read a step-by-step guide here.
- Create a Sequin account.
- Create a new Stripe sync and enter your Stripe credentials.
- Click Create. Sequin will provision a database for you on AWS and begin syncing your Stripe data to the
public
schema.
If you would prefer, you can sync your Stripe directly to your database.
You'll use Airtable as a simple CMS to manage your metrics and KPIs. You'll then connect to your Airtable metrics using Sequin:
- Create a free Airtable account. Then, add the /Open base template to your workspace by clicking Copy Base in the top right corner.
- In the
/Open
base template you just duplicated to your workspace, add your KPIs and metrics. - Now, sync your Airtable data to the same Sequin database that contains your Stripe data:
- Go to the Sequin Console and click Add Sync.
- Select Airtable as your source, enter your Airtable API key, and choose your
/Open
base. - In the destination section, click Change and select Choose Existing. Click Select next to the database that contains your Stripe data and name the schema
airtable
. (Keep your Stripe data in thepublic
schema :) - Click to confirm the changes, and then click the Create button.
Sequin will now sync your Airtable data into the airtable
schema in your Sequin database.
With your data setup, you can spin up your /open
page:
-
Clone this repo.
-
Rename the
.env.example
file to.env.local
replace the placeholders with the credentials for your Sequin database.PG_PASSWORD={{YOUR_DB_PASSWORD}} PG_HOST=evening-soiree.sequindb.com PG_USER={{YOUR_DB_USE}} PG_DATABASE={{YOUR_DB_NAME}} PG_PORT=5432
You can always find your database credentials by going to the Sequin Console and clicking the Connect button on your sync.
-
Install the dependencies by running
yarn
then launch the app by runningyarn dev
and openinghttp://localhost:3000
in your browser.
You're /open
page should load with your revenue metrics and KPIs.
From here, customize your page to your liking and deploy to production:
All your revenue metrics are generated in the lib/metrics.js
file. Out of the box, we provide queries to calculate MRR and ARR by month and by day for standard SaaS business models. You can adjust these queries to match your business needs. File a PR or Issue if you see ways to improve!
To adjust your KPIs, just update the Airtable base.
Use Tailwind CSS to customize the look and feel of your page.
Use Chart JS to adjust the graphs.
When you are ready to deploy, use Vercel or Netlify to set up your /open
domain and page.
If you need any support, please reach out to [email protected].
Learn more about the /Open
startup movement: