Suggest new features here
Easy notifications about important events of your backend services. New email signup, payment, user registration - simple call to API and you have it registered.
When launching a new SaaS there are so many things to take care about that we always forget about most important - key metrics and events. How many users have signed up? Was the newly released feature even used? Fire Station is a hustle free way of solving this problem - on key important events just add a simple snippet of code and enjoy all your events in a single place.
https://station.stackonfire.dev
- Create a new project
- Add a new endpoint - rename it to your convenience so it meaningfully represents the event
- Create new Access Token
- Use the endpoint id in calling a simple API request
await axios.post(
`station.stackonfire.dev/api/event/create?endpoint=${YOUR_ENDPOINT_ID}`,
{ metaData: variables.metaData }, // Send any kind of JSON you want to access later in the event information
{
headers: {
Authorization:
"Bearer " +
"YOUR_ACCESS_TOKEN", // get the token form the Access Tokens tab as in screenshot below
},
}
);
Fire station is dead simple to self host! You need to have an instance of Postgres database running, as long as you have the connection string you can safely deploy to Vercel. Environments variables necessary to run the app are listed in .env.example
Fire-station currently offers three methods of authentication - magic link, github and twitter. The auth setup is powered by Next-auth and to make it work you need to provide correct environment variables to the project.
To enable live notifications you will need to setup Pusher with their api and respective env vars.
- Clone the repo
- run
docker-compose up -d
in the terminal to boot up the database - development environment uses MSW to mock session, so you don't need to set up next-auth related env variables to be able to log in. If you need to mimic login workflow - disable service workers in
_app.tsx
- run
yarn run dev