Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Next.js + TypeScript + Tailwind starter for importing and displaying your OneBio Thought Stream on your own site.
The OneBio Next.js Starter is a boilerplate project for displaying a OneBio member's Thought Stream on a custom website, built with Next.js, TypeScript, and Tailwind CSS.
This starter is a Next.js application created by OneBio (oneb.io) that fetches a user's Thought Stream through the OneBio API and renders it on a website the member controls. The required inputs are an API key and a username (including the '@' prefix), both stored as environment variables. The output is a fully styled Thought Stream page that can be customized to match the site's existing design. The project includes examples for importing a Thought Stream and is intended to be deployed to Vercel.
ONEBIO_API_KEY and ONEBIO_USERNAME (the username must include the '@' symbol)..env.local file.To get a local copy, clone the repository and run yarn install from the project directory. Before running, sign in to oneb.io, generate an API key on the Settings page at https://oneb.io/settings, then add ONEBIO_API_KEY and ONEBIO_USERNAME to your .env file. When deploying, set the same values in Vercel's Environment Variables section.
The starter project itself can be cloned and used at no cost. Using it requires a OneBio account to generate an API key; OneBio's own pricing is separate from this template.
Sign in to your account at https://oneb.io, go to the Settings page at https://oneb.io/settings, and copy the API key from there. Then add it along with your OneBio username (including the '@') to your environment variables.
Two variables are required: ONEBIO_API_KEY and ONEBIO_USERNAME. The username must include the leading '@', for example @username. These should be stored in a .env file locally and in your deployment provider's environment settings.
Yes. Push the project to GitHub, GitLab, or Bitbucket, import it into Vercel, and add the environment variables in the Vercel dashboard. The readme notes that the environment variables on Vercel must match your local .env.local file.