add or update alt text on your media forked from psingletary.com/verifier
README.md

Altifier #

Scan your Bluesky posts for missing alt text and fix them with AI-generated descriptions.

Features #

  • Scan your posts: Enumerate all your Bluesky posts and replies, finding images that lack alt text
  • AI-powered alt text: Generates descriptive alt text using vision AI, following Section 508 guidelines
  • Review and edit: Preview generated alt text, edit inline, and approve before applying
  • Bluesky OAuth login: Authenticate securely with your Bluesky/ATProto account

What this does #

Altifier scans the image posts (app.bsky.feed.post records with app.bsky.embed.images) in your PDS, identifies images missing alt text, generates descriptions via AI, and lets you apply them by recreating your posts with alt text included.

Note: Recreating a post with alt text deletes the original and creates a new one. Likes, reposts, quotes, and replies on the original post are lost.

Development #

npm install
npm start

Build #

npm run build

The build/ directory contains the static site ready for deployment.

Deployment #

This app is a fully static React SPA and can be deployed to:

  • Wisp.place: ~/dev/_shared/bin/oauth-app-ship.zsh altifier — tests, builds, deploys, verifies the live bundle and metadata, and probes PAR. It uses the Bitwarden app password; there is no keychain session.
  • Any static host: Serve the build/ directory with SPA fallback to index.html

AI Setup #

Altifier uses Google Gemini (BYO-key) for alt text generation. The exact model lives in one place: src/utils/altGenerator.js (GEMINI_MODEL).

The key is never bundled or baked into the build. Each user pastes their own key once in the app's AI Settings; it is stored only in localStorage key altifier.geminiKey and sent directly to Google's API in the x-goog-api-key header. If no key is set, Generate buttons are hidden and manual alt-text entry still works.

Get a free API key at aistudio.google.com.

OAuth #

OAuth identity is declared once, in scripts/oauth-config.mjs. npm run gen:metadata writes public/client-metadata.json (the PDS fetches it) and src/generated/client-metadata.js (bundled, gitignored). The app never fetches the metadata at runtime; do not edit either copy by hand.

npm run check:scope runs inside npm run build and fails when the copies differ, when the scope carries a transition: blanket or a repo grant without explicit actions, when there is more than one redirect URI, or when the source uses a collection, an AppView call or a blob upload the scope does not grant (and the reverse).

Scope: app.bsky.feed.post create + delete. Posts are recreated, never edited in place — the Bluesky AppView ignores putRecord edits — and images are re-referenced from the original post, so there is no blob grant.

Sign-in works on https://altifier.psingletary.com only. Every build writes build/version.json; the app offers a reload when a newer bundle is deployed.

License #

MIT