Repository navigation
v1.2.0-beta.1
Pre-release
Pre-release
·
18 commits
to main
since this release
[v1.2.0-beta.1] — 2026-08-12
Highlights
- Favourites survive going offline: signing back in merges your local faves with the server copy instead of overwriting them, and an unfave on one device no longer comes back from a device that was offline when you made it.
- Faving reaches the source site: faving in StreamBooru also faves on Danbooru, Moebooru, and e621 when credentials are configured, and cards show how many StreamBooru users faved a post.
- Finding things is easier: tag autocomplete across every enabled source, a grouped artist/copyright/character tag panel in the lightbox, tag chips on cards, and per-site enable/disable for muting a source without deleting its credentials.
- A settings panel: dark/light theme, grid density, square-crop or natural-aspect cards, video autoplay, safe-mode blur, and the default filename template.
- StreamBooru has its own icon, replacing the stock Capacitor placeholder, and the interface is recoloured to the cyan-and-magenta pair that goes with it.
- The hosted web app is generated from the desktop source, so it stops drifting behind the desktop build the way the old hand-maintained copy did.
- Security: stored API keys are masked in Manage Sites, Discord OAuth callbacks require a nonce, the image proxy refuses private network targets, and the sync server refuses to boot on a weak
JWT_SECRETorENC_SECRET.
Self-hosting the sync server?
ENC_SECRETmust now be set to a real value or the server will not start — see the deployment notes below.
Added
- Tag autocomplete in the search box (desktop and mobile menu), querying all enabled sources per engine (Danbooru, Moebooru, Gelbooru/Rule34, e621, Derpibooru) with keyboard navigation and category colouring.
- Collapsible tag panel in the lightbox grouped by artist/copyright/character/general with click-to-search, plus tag chips on card hover.
- Per-site enable/disable toggle in Manage Sites and a source-chip row above the feed for muting a source without deleting its credentials; the flag syncs across devices via Account Sync (server migration
0006_site_enabled, with a local fallback against older servers). - Settings panel: dark/light theme, grid density, square-crop vs natural-aspect card layout, video-thumbnail autoplay, safe-mode blur for non-safe thumbnails, and the default filename template.
- Bulk downloads report live progress with a cancel button on Electron, web, and Android.
- Toast notifications replace every blocking
alert()dialog. - First-run, no-results, and empty-favourites states with actionable buttons, plus skeleton cards while feeds load.
- Adapters now surface artist/copyright/character tag categories (Danbooru, e621, Derpibooru), powering the
{artist}{copyright}{character}filename tokens and the tag panel. - Cards show how many StreamBooru users faved each post (public
/api/favourites/countsendpoint, batch-fetched, with a supporting index in migration0007_favorites_key_index). - Faving a post also favourites it on the source site when API credentials are configured (Danbooru, Moebooru, e621 — including a new e621 favourites endpoint in the adapter), and the lightbox's "Fave on site" button now works for those sites.
- Derpibooru sites accept an optional API key (applies your account's content filters) and Filter ID in Manage Sites; the key is sent with every request.
- Lightbox prefetches neighbouring images, and supports pinch zoom, double-tap zoom, swipe left/right to navigate, and swipe down to close on touch screens.
- Android hardware back button closes the lightbox, menus, and modals before exiting the app.
- The Electron window remembers its size, position, and maximized state.
npm run webapp:buildregeneratesserver/webapp/fromrenderer/; CI runs it, and the Nixpacks deploy uses the same script instead of an inline copy command.- StreamBooru has its own icon at last, replacing the stock Capacitor placeholder that shipped as the Android launcher icon and splash. The mark is four gallery tiles around a play cut-out; vector masters live in
branding/, and the generated assets cover the desktop build (build/icon.png), every Android launcher density including the adaptive foreground and round variants, all eleven splash sizes, and the web favicon.
Changed
server/webapp/is a generated artifact ofrenderer/; the stale hand-maintained local copy (including the orphanedbulk-download.js) is replaced by the build script, which also prunes removed files.- Popular-feed re-sorts reuse existing cards through keyed DOM reconciliation instead of rebuilding the grid, so images no longer re-decode and playing video thumbnails survive; far-offscreen cards skip rendering work.
- Folder-picker and save dialogs are async so they no longer freeze feed loading, autocomplete, and sync while open; the scroll handler is coalesced to one layout read per frame; the natural-aspect grid batches its layout reads and writes; favourite bulk-sync inserts in one round trip; and web/Android thumbnails on hotlink hosts skip a guaranteed-to-fail direct request.
- Body scrolling locks behind the lightbox, modals, and menu, and infinite scroll pauses while an overlay is open.
- Modals and the lightbox trap focus, restore it on close, and tabs expose
role="tab"/aria-selected. - Remote site sync no longer clobbers local-only config (settings, filename template), and
/api/sitesnow stores and returns each site's enabled state. - Recoloured the interface to match the new icon: a cyan-and-magenta accent pair replaces the periwinkle blue, applied through theme tokens (
--accent,--accent-2,--accent-grad,--ring) rather than the hardcoded literals that were scattered through the stylesheet, so the wordmark, active tab, Download All button, and download progress all carry the brand gradient. The light theme uses a deeper teal and magenta to stay legible on white, and the modal surfaces lose their navy tint. - Dependencies updated to current releases (Electron 43.4, Capacitor CLI 8.5, and server-side Express 4.22, pg 8.23, jsonwebtoken 9.0.3, dotenv 16.6), with
uuidandbody-parserpinned through overrides to clear the remaining advisories;npm auditandbun auditare clean. - The server's own pages — the landing page, the health page, and the OAuth callback — follow the same palette as the app and carry the icon and favicon, instead of keeping the old periwinkle blue on a navy background.
Security
- The server refuses to start with a weak or placeholder
JWT_SECRET(forgeable tokens) unlessALLOW_INSECURE_JWT_SECRET=1is set for local development; JWT verification is pinned to HS256. - Breaking (deployments):
ENC_SECRETis held to the same standard and is now checked at startup instead of on the first credential write, withALLOW_INSECURE_ENC_SECRET=1as the local-dev escape hatch. A deployment running without one, or with the placeholder from.env.example, will refuse to boot until it is set. - Browsers connect to the event stream with a 60-second, stream-only ticket from
POST /api/stream/ticketinstead of putting the 90-day account token in a URL that proxy and CDN logs retain. Tickets are rejected everywhere else in the API, the stream endpoint rejects account tokens presented as tickets, and it now pins HS256 like the rest of the API. Older clients passingaccess_tokenstill work. - Manage Sites masks API keys and password hashes instead of rendering them as plain text, with a per-field Show/Hide toggle. Non-secret fields (login, user ID, Derpibooru filter ID) are unchanged.
- Postgres TLS verifies the server certificate by default (
PGSSL_REJECT_UNAUTHORIZED, opt out only for self-signed managed databases). - The Electron window blocks in-app navigation to remote origins and routes external links to the OS browser, keeping the privileged preload bridge off untrusted pages.
- Discord OAuth callbacks now require a client-generated nonce — on the desktop loopback listener (which also rejects requests carrying an
Originheader) and the Androidstreambooru://deep link — blocking login-CSRF/token injection. - The image proxy refuses loopback, private, and link-local targets (SSRF hardening); bulk/single downloads reject
..path segments; the login route no longer accepts passwords via query string; DB error logs no longer include query parameters.
Fixed
- Logging back in no longer overwrites favourites saved while offline: sync now merges the server copy with local faves and uploads the local-only ones, on Electron, web, and Android. Live removals from other devices still apply through targeted sync events.
- Unfaving no longer comes back. Merge sync treated every local-only favourite as something to re-upload, so a device that was offline when another one unfaved a post pushed it straight back. Removals are now recorded server-side for 180 days and the newer timestamp wins, so a genuine re-fave still beats an older deletion. The server enforces this on bulk upload rather than trusting clients.
- Favourites synced through the server keep their
artist,copyrightandcharactertags and their video fields — the server's post allowlist predated all five and silently dropped them, degrading the grouped tag panel and losing grid autoplay on any favourite that had made a round trip. - Electron keyed favourites off the raw site URL while the renderer normalized it, so a trailing slash or different host casing in an older config produced two keys for one post. Keys are normalized in one place now, and existing favourites are re-keyed and de-duplicated on load.
- Restored the desktop Gelbooru XML fallback (the adapter was handed a JSON parser instead of a text fetcher), the desktop "Unlink Discord" action, and the correct app version in Settings (all were silently no-ops).
- Linux: Chromium's disk/GPU/code caches and web storage no longer pollute
~/.config/streambooru.sessionDatais redirected to~/.cache(honouringXDG_CACHE_HOME) while durable config stays in~/.config, and stale cache directories left by older builds are pruned once on launch. - The card and lightbox "Save" buttons are now "Fave" (they never wrote files to disk; Download does that), with clearer tooltips.
- Derpibooru's Manage Sites card claimed authentication was optional but offered no way to enter it.
- The "Name format" download options popover is now reachable (right-click or Shift-click Download All) and actually applies and persists the chosen template, including custom formats.
- Keyboard zoom (
+/-) in the lightbox no longer throws aReferenceError. - Lightbox Prev/Next track the current post by key, so Popular-feed re-sorts can no longer jump navigation to unrelated posts.
user_favoritedsurvives post normalization, restoring the remote-favourite button state in the lightbox.- Opening Account from the mobile menu no longer opens the modal twice.
Deployment notes
Only relevant if you run your own sync server. Desktop, Android, and web users need do nothing.
ENC_SECRETmust be set to a real value of at least 16 characters — the placeholder from.env.exampleis rejected — or the server exits at startup instead of failing later on the first credential write.ALLOW_INSECURE_ENC_SECRET=1bypasses it for local development. Do not change an existing value: site credentials already encrypted with it become unreadable.JWT_SECRETis held to the same standard. Changing it invalidates every issued token, so everyone is signed out.PGSSL_REJECT_UNAUTHORIZEDnow defaults totrue. Set it tofalseonly if your managed Postgres presents a self-signed certificate without a CA bundle.- Migrations
0006_site_enabled,0007_favorites_key_index, and0008_favorite_deletionsapply on startup. - Clients from 1.1.x keep working against this server, and this release's clients keep working against a 1.1.x server — favourite deletion tracking, fave counts, and the stream ticket simply stay dormant until both sides are updated.