Statically self-hosted historical followers data for Bluesky 🦋
bluesky-followers.joebell.studio
Bluesky's API offers public access to a user's followersCount
and followsCount
without authentication; however, there's no way to track these values over time.
This project is a tiny static Astro app that stores values in a Content Collection to track over time and is kept up to date with a scheduled GitHub Action.
-
Click "Use this template" → "Create a new repository" to duplicate this repository to your account
-
Create a new GitHub "Personal Access Token" (PAT) with the following scopes:
repo
workflows
-
Within your duplicate repository's settings, create a new secret with the following configuration:
- Name:
REPO_TOKEN
- Secret:
<INSERT_YOUR_PAT_HERE>
- Name:
-
Replace
src/config.ts
'sbluesky
value with your own handle -
Adjust the
cron
schedule inworkflows/sync.yml
if necessaryBy default, it runs at 03:00 everyday (avoiding 00:00 traffic of other cron-based actions)
-
Deploy to your preferred service!
All commands are run from the root of the project, from a terminal:
Command | Action |
---|---|
pnpm install |
Installs dependencies |
pnpm dev |
Starts local dev server at localhost:4321 |
pnpm build |
Build your production site to ./dist/ |
pnpm preview |
Preview your build locally, before deploying |
pnpm astro ... |
Run CLI commands like astro add , astro check |
pnpm astro -- --help |
Get help using the Astro CLI |
pnpm sync:bluesky |
Add a src/data/bluesky entry for the current time |