Skip to content

About

A web GUI for bsky-saves that lets a Bluesky user export their saved posts as JSON, a flat Markdown file, or a self-contained HTML/CSS archive.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Bluesky Saves Exporter

A web GUI for bsky-saves that lets a Bluesky user export their saved posts as JSON, a flat Markdown file, or a self-contained HTML/CSS archive.

What it does

  • Exports your Bluesky saved posts as JSON, Markdown, or a navigable HTML archive.
  • Runs entirely in your browser — there is no server that holds your credentials or content.
  • Optional hydration of threads, articles, and images via bsky-saves running under Pyodide.
  • Two persistence modes: persist (default — your Library survives browser quit) and session mode (your Library is wiped on tab close / browser quit, opt in via the "Keep my saved posts in this browser" checkbox at sign-in).

Try it

The reference deployment lives at the domain configured for this build (see VITE_APP_DOMAIN in .env.example). The default is saves.lightseed.net.

How it works

Static SPA. Pyodide loads the published bsky-saves Python package in your browser; AT Protocol requests go directly from your browser to your PDS. Inventory is stored locally (IndexedDB in persist mode, sessionStorage in session mode). Exports are generated and downloaded entirely client-side.

Privacy

No analytics service. No telemetry. The deployer cannot see your credentials, your saved posts, or any post content. Full details in docs/privacy.md.

Self-host / fork

  1. Clone the repo.
  2. cp .env.example .env and edit the VITE_* values for your deployment.
  3. Push to GitHub. Configure GitHub Pages to deploy from GitHub Actions.
  4. Set repository variables (Settings → Secrets and variables → Actions → Variables) for each VITE_* value the deploy workflow needs.
  5. Add a DNS CNAME record at your domain provider pointing your chosen subdomain to <your-username>.github.io.

The full configuration table lives in the design spec: Configuration section.

The helper

The published bsky-saves Python package provides the bsky-saves serve command — a loopback HTTP daemon on 127.0.0.1:47826 that fetches images and extracts article text on the browser's behalf (working around CORS). Install with pipx install bsky-saves and run bsky-saves serve.

Browser compatibility for the local helper

When the GUI is served from the hosted PWA (HTTPS, e.g. saves.lightseed.net) and the helper runs locally at http://127.0.0.1:47826 (HTTP), browsers apply security policies to that cross-origin loopback path. Behavior differs by browser:

  • Chrome / Edge / Brave (Chromium-based): allowed. Newer Chrome versions may show a one-time Private Network Access (PNA) permission prompt; grant it to enable detection.
  • Firefox: allowed. Firefox treats localhost as a potentially-trustworthy origin and exempts it from the mixed-content block.
  • Safari (current macOS + iOS): blocked. Safari enforces the W3C secure-contexts rule strictly and refuses HTTPS-to-HTTP requests even when the target is localhost. The GUI silently degrades to the in-browser Pyodide fallback for fetch; image and article backups won't run unless a Cloudflare Worker proxy is configured (see workaround 3 below).

The behavior is browser-enforced before any JavaScript runs — there is no client-side flag we can set to override it.

Workarounds for Safari users

Pick one based on your priorities:

  1. Use the helper-served GUI directly. Open http://127.0.0.1:47826 in Safari with bsky-saves serve --gui running. The GUI is bundled into the wheel; same features, no mixed-content boundary (the page itself is served over HTTP from localhost). Bookmark it.
  2. Use a different browser for the hosted PWA. Chrome, Edge, Firefox, Brave, Arc — any Chromium-based or Firefox-based browser. Helper detection works there.
  3. Set up a Cloudflare Worker proxy (templates/cf-worker/). The hosted GUI can call your worker over HTTPS for image and article backups, sidestepping the mixed-content rule entirely. ~10 minutes of setup, runs on Cloudflare's free tier, no local helper needed.
  4. Skip image and article backups. JSON / Markdown / HTML export work entirely in-browser on any browser; only the hydration features need a backend.

The proxy templates

Two Cloudflare Worker templates ship under templates/cf-worker/, both deployable to the user's own Cloudflare account:

  • worker.js — image-only proxy. Hand-written, ~200 lines, easy to audit. Sufficient if you only want image backups.
  • dist/worker-with-articles.bundle.js — image proxy + article extraction (Mozilla Readability + linkedom). Pre-built bundle. Pick this one if you also want article-text backups.

Two deployment paths, depending on preference:

  • In-app setup guide — Settings → Backups → "Custom Cloudflare Worker proxy" walks you through the Cloudflare dashboard step-by-step (no CLI required). Source for either worker variant is presented inline with a Copy button. ~10 minutes end-to-end.
  • Command line via wrangler — see templates/cf-worker/README.md for the technical path with wrangler deploy.

The same proxy works around CORS for image and article fetches and serves over HTTPS, so it bypasses the mixed-content limitation that blocks Safari from reaching http://localhost-served helpers.

Development

Requires Node 20 and pnpm 9.

pnpm install
pnpm dev          # local dev server
pnpm test         # run unit tests
pnpm build        # production build to dist/
pnpm check        # svelte-check + tsc
pnpm format       # prettier

Repo layout

.
├── app/                  # Svelte + Vite source
├── tools/                # build-time helpers (e.g. CNAME plugin)
├── templates/cf-worker/  # Cloudflare Worker template
├── docs/
│   ├── superpowers/
│   │   ├── specs/        # design specs
│   │   └── plans/        # implementation plans
│   └── privacy.md        # rendered at #/privacy
└── .github/workflows/    # CI and deploy

License

MIT — see LICENSE.

Status

Pre-1.0. Working title for the product is "Bluesky Saves Exporter"; a final brand name has not been chosen. The implementation rolls out across plans under docs/superpowers/plans/.

About

A web GUI for bsky-saves that lets a Bluesky user export their saved posts as JSON, a flat Markdown file, or a self-contained HTML/CSS archive.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages