Repository navigation
Releases
Releases · ElleryHe/FeedCourier
FeedCourier v0.3.1
Added
- In-Process JS Plugin Engine (
boa_engine) & One-Click WebUI Plugin Center (migrations/0004_js_plugins.sql,src/plugins/,ElleryHe/FeedCourier-Plugins):- Embedded a pure-Rust JavaScript sandbox (
boa_engine) running single-file ES moduleplugin.jsplugins (runtime: "js", Plugin API v1) directly inside the FeedCourier binary — zero Docker Compose sidecars, zero extra ports, and zero external runtimes — supporting custom delivery channels (kind: "channel",ChannelKind::Plugin), delivery-time render processors (kind: "processor",onRender), and post-delivery callbacks (onDelivered). - Exposed a hardened
globalThis.fchost API (fc.fetch,fc.sha256,fc.hmacSha256,fc.md5,fc.base64Encode,fc.base64Decode,fc.base64UrlEncode,fc.utf8ByteLength,fc.truncateUtf8Bytes,fc.htmlToText,fc.unixNow,fc.uuid) with zero filesystem/shell/env access.fc.fetchenforces a strict dual allowlist: cloud metadata literal IPs (169.254.169.254,169.254.170.2,100.100.100.200,fd00:ec2::254, including IPv4-mapped IPv6/NAT64 forms), metadata hostnames (metadata.google.internal,metadata.goog,instance-data), unspecified addresses (0.0.0.0,::), and HTTP 3xx redirects are unconditionally blocked across direct and proxied calls (direct and local-DNSsocks5://connections also validate resolved DNS IPs, while remote-DNShttp:///https:///socks5h://proxies enforce client-side hostname & literal-IP checks); only non-emptyformat: "uri"origins explicitly submitted by an administrator enter the private/LANadmin_uri_originsallowlist (schemadefaultvalues onformat: "uri"are only auto-filled/pre-filled when their host is a public domain declared inmeta.allowed_hostsand stay on the public SSRF path without private-origin bypass;validate()normalized_configcannot introduce or alterformat: "uri"origins); plugin-declaredmeta.allowed_hostsroute throughProtectedHttpClientwith connect-time DNS SSRF protection and fail-closeduse_proxysupport onChannelKind::Pluginaccounts. Enforced a global concurrency cap of 4 simultaneous JS executions, per-hook wall-clock deadlines with cancellation checked at everyfc.*host call (clampingfc.fetchtimeouts to remaining hook budget), and a 3-consecutive-timeout automatic circuit breaker counting only genuine hook deadline overruns (never slot-wait or shorter per-requestfc.fetchtimeoutMsexpirations;plugins.disabled_reasonsurfaced as an Auto-disabled alert banner in the WebUI). HTML returned byonRenderis always re-sanitized throughammonia, anddelivercheckpoints are capped at16 KiB. - Added persistent, at-least-once
on_deliveredevent dispatch (plugin_eventstable committed atomically inside the task delivery transaction, dispatched by a dedicated background worker with exponential backoff up to 5 attempts). - Added one-click Marketplace installation & version upgrades (
POST /api/v1/plugins/installwithdry_runpreview, SHA-256 checksum verification,allowed_hostssecurity badges, version changelogs, and409 Conflict/replace_customoverwrite protection for custom-uploaded plugins), custom single-file.jsupload (POST /api/v1/plugins/upload), source inspection (GET /api/v1/plugins/{id}/source), and safe uninstall (DELETE /api/v1/plugins/{id}with409 Conflict+?cascade=truereference guard) alongside fullChannelKind::Pluginsupport and typed schema-driven route/account/destination forms (SchemaFormFields). - Published the official
ntfyandBark(Telegram Compact Card-style summary layout with UTF-8 byte-budget truncation) single-file JS channel plugins inElleryHe/FeedCourier-Pluginswith automatednode --testCI checks and SHA-256 versioned index generation.
- Embedded a pure-Rust JavaScript sandbox (
- Unified Redacting Structured Logging & Isolated Log Storage (
src/logging/,src/config.rs):- Added a unified single-pass redacting
tracinglayer driving bothstdout(LOG_FORMAT=text|json) and bounded non-blocking async log storage (isolated<DATA_DIR>/logs.dbSQLite WAL database by default with 7-day / 100k-row retention, or optional ClickHouse HTTPJSONEachRowbackend viaLOG_STORE=clickhouse&LOG_CLICKHOUSE_*formattingDateTime64(3, 'UTC')tsstrings alongsidets_msepoch milliseconds), with structured keyword-search guardrails (2–128characters, default 24-hour lookback window when unbounded, and 5-second query timeout). - Automatically masks email addresses, sensitive field values (
token/password/secret/signature/api_key/authorization/cookie), URL query strings/userinfo, Telegram bot tokens, and chat IDs across stdout and stored logs, with structuredfeed_id/task_id/route_id/channel_id/destination_id/plugin_idinstrumentation across the full pipeline.
- Added a unified single-pass redacting
Changed
- Outbox Restart & Graceful Shutdown Hardening (
src/db/repo.rs,src/scheduler/mod.rs,src/main.rs):- Automatically reclaims any orphaned
deliveringoutbox leases immediately on startup (Database::reclaim_orphaned_deliveries) while preserving checkpoints and attempt counts, and checks the shutdown cancellation token between outbox tasks so in-flight deliveries finish cleanly without claiming new work (recommendedstop_grace_period: 30s).
- Automatically reclaims any orphaned
- Plugin Kernel Optimizations (
src/plugins/mod.rs,web/src/views/RoutesView.tsx,web/src/views/PluginsView.tsx):- Cached plugin enabled states and loaded JS plugin manifests/scripts in an in-memory
RwLockinvalidated on every mutation; added route-level processor execution ordering (RouteOptions.plugin_orderwith up/down arrows in the route editor), per-plugin 15son_rendertimeouts with non-strict error isolation, localizeddescription_i18nrendering, andmin_core/api_versionmarketplace compatibility checks.
- Cached plugin enabled states and loaded JS plugin manifests/scripts in an in-memory
- WebUI Outbox Table & MCP Settings Redesign (
web/src/views/TasksView.tsx,web/src/views/SettingsView.tsx):- Rebuilt the Outbox queue table with
table-fixed+<colgroup>(zero horizontal overflow at≥ lg, merged Status & Timing column, 2-line clamped Diagnostics with full hover tooltip, structuredDeliveryTaskDto.has_warningswarning badges, fixed Retry All Dead-Letter button state, icon action buttons, and vertical card layout on< lgviewports). - Compacted the System Settings MCP panel with a copyable Endpoint pill, single-row token issuance bar with segmented scope toggle and expandable public tool chips, compact token rows, and a tabbed client configuration reveal modal (Claude Desktop / Cursor / Generic JSON).
- Rebuilt the Outbox queue table with
What's Changed
Maintenance & Dependencies
- feat(release): v0.3.1 — In-Process JS Plugin Engine (boa_engine), Redacted Logging & Outbox/WebUI Hardening by @ElleryHe in #25
Full Changelog: v0.3.0...v0.3.1
FeedCourier v0.3.0
Added
- Built-In Plugin Framework (Protocol v1) & Marketplace (
src/plugins/,migrations/0003_plugins_and_smtp_compliance.sql,ElleryHe/FeedCourier-Plugins):- Introduced FeedCourier Plugin Protocol v1 (
api_version: "1") with delivery-timeon_renderhooks (and reservedon_ingest/on_deliveredhook contracts for future releases), non-destructiveRenderOverrides(content_html,primary_link,warnings), per-route plugin configuration stored inRouteOptions.plugins, and SQLite tablesplugins,plugin_instances(ChaCha20-Poly1305 encrypted), andplugin_link_cache(automatically pruned after 90 days of inactivity). - Added
/api/v1/plugins,/api/v1/plugins/{id},/api/v1/plugins/{id}/instances*(with single-transaction409 Conflictroute-reference delete protection, live connectivity tests, automatic cache clearing onapi_urlchange, and per-provider cache controls), and/api/v1/plugins/market(SSRF-guarded remote index loader with 6-hour remote cache, 60-second negative cache on compiledsrc/plugins/market_snapshot.jsonfallback,PLUGIN_INDEX_URLoverride, and stricthttp(s)://validation onhomepage/repositorylinks). - Scaffolded the independent
ElleryHe/FeedCourier-Pluginsregistry repository (schema/manifest.schema.json,registry/link-rewrite.json, zero-dependency Node.js 24 validator/index builder, and GitHub Actions workflows validatingregistry/**,schema/**, and rootindex.jsonwith--check --verify-index). - Added the WebUI Plugins console (Installed + Marketplace tabs, bespoke YOURLS form plus a generic
instance_schema-driven dynamic provider form renderer for non-YOURLS plugins, provider CRUD/test/cache controls, schema-driven collapsible route plugin options, optional plugin selector in the Feed Preview Debug Push bar, route card plugin badges, and amber partial-rewrite warnings in the Outbox view).
- Introduced FeedCourier Plugin Protocol v1 (
- First-Party Link Rewrite (YOURLS) Plugin (
src/plugins/link_rewrite.rs):- Added built-in YOURLS link rewriting supporting multiple encrypted provider instances,
signature(recommended),timed_signature(md5(timestamp + token)), andpasswordauthentication modes, duplicate-URL (code: "error:url") handling,exclude_domains(*.example.comwildcard matching with trailing-dot normalization + automatic provider self-host skip),pass_title, fail-closeduse_proxy, andstrict_mode(whole-task retry on failure vs. default per-URL graceful degradation with task warnings). - Enforced a 50-uncached-URL per-article cap (after batch
IN (...)cache lookup), 4-way concurrency, 5-second per-URL timeout,64 KiBresponse limit, and SQLite short-link caching (plugin_link_cache). Uses an HTML5 attribute state machine (skipping<script>and<style>blocks, preserving trailing/on unquotedhref) to rewrite only HTTP/HTTPS<a href>and primary links—preserving all mediasrcURLs, Telegramlink_preview_options.url, SMTP compliance links, and Notion's originalLinkcolumn.
- Added built-in YOURLS link rewriting supporting multiple encrypted provider instances,
- SMTP Per-Recipient Compliance, Double Opt-In & RFC 8058 One-Click Unsubscribe (
src/channels/smtp.rs,src/api/public.rs,src/crypto.rs):- Switched outbox SMTP delivery to individual per-recipient envelopes (single
To:address, deterministic per-recipientMessage-ID, 1-second inter-recipient delay with lease renewal, andsent_recipientscheckpoint resume; quota ledger continues counting 1 per article task). Destinationtestand feed previewdebug_pushstrictly deliver only toverifiedrecipients via isolated single-To:envelopes with compliance headers (returning an error when 0 verified recipients exist), while account-leveltest(withoutdestination_id) sends a self-test email only tofrom_address. - Added
smtp_recipients(keyed by HKDF-derivedaddress_hmacwith zero plaintext emails stored in table),channel_destinations.auto_paused, and/api/v1/destinations/{id}/recipients*endpoints for manual-trigger double opt-in verification: 6-digit SHA-256 hashed codes (30-minute TTL, max 5 attempts that atomically clear the active code and invalidate/v/{token}, atomic write-pool 60-second resend cooldown and 5/hour cap withRetry-Afterheader and WebUI countdown), optional/v/{token}confirmation links whenPUBLIC_URLis configured, immediate wakeup of deferred tasks upon verification, administrator unsubscribe/reactivate controls, recipient-only 5xx hard-bounce classification (5.1.1/5.1.2/5.1.3/5.1.6/5.1.10or recipient-unknown550/551/553markbounced, while auth/quota/content 5xx abort without harming verified subscribers), andauto_pausedautomatic recovery (when all recipients unsubscribe or hard-bounce, destinations transition toenabled = false, auto_paused = trueand automatically resume upon re-verification while manually disabled destinations remain paused). - Added
PUBLIC_URL(environment variable or WebUI Settings),TRUST_PROXY(defaultfalse), optional CAN-SPAMsender_identityon SMTP accounts, RFC 8058 headers (List-Unsubscribe,List-Unsubscribe-Post: List-Unsubscribe=One-Click,List-Id: <dest-{id}.{from_domain}>,Auto-Submitted: auto-generated), and unauthenticated/u/{token}&/v/{token}endpoints registered before SPA fallback (with bare/u/&/v/returning public404and relativeaction=""forms for subpath compatibility). - Added automatic pre-v0.3.0 online
VACUUM INTOsnapshot backup (<DATA_DIR>/pre-v0.3.0-backup.db) before migration0003whenever any business table (feeds,channels,channel_destinations) is non-empty (cleaning up partial backups/sidecars on failure), plus idempotent startup backfill (backfill_legacy_smtp_recipients,status = 'verified',consent_method = 'legacy', marked bysystem_settings.smtp_recipient_model_version = 1).
- Switched outbox SMTP delivery to individual per-recipient envelopes (single
- MCP
list_plugins& Route Plugin Configuration (src/mcp/tools.rs):- Expanded
/mcpto 10 tools by addingreadonlysecret-freelist_plugins(exposing only plugin/provider IDs, names, hooks, and enabled status), and addedpluginssupport toconfigure_routeandlist_feeds_status.
- Expanded
- Bilingual Plugins & SMTP Compliance Documentation (
docs/):- Added the Plugins / 插件 documentation section with a build-time VitePress marketplace loader (
docs/.vitepress/plugins.data.ts, remote fetch with snapshot fallback), YOURLS setup &SSRF_ALLOWLISTguide, Protocol v1 development reference, and Nginx/Caddy reverse-proxy examples exposing only/u/and/v/.
- Added the Plugins / 插件 documentation section with a build-time VitePress marketplace loader (
Changed
- Telegram Rich Message & Compact Card Typography Polish (
src/channels/telegram.rs):- Rich Message: Demoted article titles one notch further to plain-foreground
<h3>(removing full-title hyperlink blue in favor of the bottom "Read original" pill button), raised body heading offset toheading_offset = 3(h1→h4,h2→h5,h3+→h6), compacted<footer>timestamps toYYYY-MM-DD HH:MMin the route timezone (SMTP emails retain explicit(UTC±HH:MM)offsets), and automatically degraded content/entity400 Bad Requesterrors once toCompactCard. - Compact Card: Redesigned into an editorial card layout — bold title at top,
<blockquote>summary (auto-upgrading to collapsible<blockquote expandable>above300UTF-16 units, cleanly grapheme-cluster / word-boundary truncated at<= 800units with smooth entity-expansion budget backoff, omitting duplicate title summaries, and inserting invisible zero-width non-joiners to stop false-positive blue highlights on/commands,@scoped/packages, and explicit filenames likeREADME.md/sku.gowhile preserving inlinehttp(s)://URLs, email addresses, and bare domains likenotion.so), bottom italicSource · Author · YYYY-MM-DD HH:MMmetadata, and a native inline URL button (reply_markup) matching Rich Message while keepinghttp(s)://-validatedlink_preview_options.urlon the original canonical URL.
- Rich Message: Demoted article titles one notch further to plain-foreground
- Account & Destination Delete Reference Guard (
DELETE /api/v1/channels/{id},DELETE /api/v1/destinations/{id}): Deleting a channel account or destination still referenced by one or more routes now atomically returns409 Conflictlistingreferencing_routes, requiring explicit?cascade=trueto cascade-delete it together with its referencing routes. - Fail-Closed
use_proxy& Direct TCP/TLS SMTP Clarification (src/net/mod.rs,src/channels/smtp.rs,web/): Enablinguse_proxy: trueon any feed, HTTP channel, preview, or plugin without a configured globalOUTBOUND_PROXYnow fails closed with an explicit error instead of silently leaking the host's direct egress IP. Clarified that SMTP accounts connect over native TCP/TLS directly (HTTP/SOCKS outbound proxies do not apply) and hid the SMTP proxy toggle in the WebUI. - Notion 8-Column Standard Schema (
Short URL):POST /api/v1/channels/notion/init-dbnow provisions an optionalShort URL(url) property alongside the 7 existing columns (NotionColumnMapping::standard_8_column(), whileNotionColumnMapping::default()leavesshort_url: Nonefor backward compatibility with existing 7-column databases) so Notion destinations preserve the original article permalink inLinkwhile recording shortened URLs from route plugins inShort URLwhen mapped (inspect-schemadetects and optionally patches it).
Security
- Zero-PII HKDF/HMAC Public Compliance Tokens,
TRUST_PROXYRate Limiting & Strict Email Auto-Escaping (src/crypto.rs,src/api/public.rs,src/channels/smtp.rs):- Derived domain-separated HKDF-SHA256 subkeys (
fc-smtp-addr-v1,fc-unsub-v1,fc-verify-v1) withstd::hint::black_boxconstant-time validation, keptGET /u/{token}andGET /v/{token}strictly read-only against mail-scanner prefetch, and masked recipient emails acrossdiagnostic_log,bounce_diagnostic, and default SMTP destination n...
- Derived domain-separated HKDF-SHA256 subkeys (
FeedCourier v0.2.0
Breaking Changes
- Two-Layer Delivery Channel Model (
Channel Account+ MultipleDestinations):- Split delivery channels into a Channel Account (
channels— storing encrypted account credentials, outbound proxy toggle, shared pacing/jitter, rolling hourly/daily quotas, and shared cooldowns) and one or more child Destinations (channel_destinations— storing independently encrypted Telegramchat_id/message_thread_id, SMTPto_addresses/reply_to, or Notiondata_source_id/column_mapping, each with its own enable toggle and connectivity test). - Automatic Atomic SQLite Migration & Pure Pre-DDL Backup: On first startup against an existing
v0.1.xdatabase,Database::connectcreates a consistent onlineVACUUM INTOsnapshot at<DATA_DIR>/pre-v0.2.0-backup.dbbeforemigrations/0002_channel_destinations.sqlruns—producing a purev0.1.xSQLite snapshot compatible with rolling back directly tov0.1.6(if a backup already exists, a UTC-timestampedpre-v0.2.0-backup-<timestamp>.dbfile is written without overwriting it).Database::migrate_channels_to_v2then splits all pre-v0.2.0 channels inside a single SQLite transaction: legacy SMTP rows merge only whenhost,port,username,password,security, andfrom_addressall match, SMTPcredential_group_keyincludes the password SHA-256 digest (keeping distinct API keys under a shared username such as SendGrid'sapikeyisolated), merged quotas/pacing/cooldown/proxy are aggregated from enabled legacy channels (falling back to all rows only when every merged channel is disabled), trailing 24-hour deliveries are backfilled intodelivery_quota_ledger, allroutesanddelivery_tasks(includingdeliveredanddead_letterhistory) are repointed with a post-migrationdestination_id IS NOT NULLintegrity check, andsystem_settings.channel_model_version = 2is recorded for idempotency. - Telegram Bot API SSRF Enforcement (Upgrade Note for Local Bot API Servers): All Telegram Bot API requests—including official
https://api.telegram.organd customapi_base_url/ self-hosted Local Bot API servers—now enforce connect-timeSsrfPolicyDNS validation (sharing the hot-reloadableSSRF_ALLOWLIST) with automatic redirects disabled, andapi_base_urlonly allowshttp/httpsURLs without userinfo, query, or fragment (SSRF denials return403 ssrf_blocked). Existing internal Local Bot API endpoints are not auto-allowlisted: operators running a Local Bot API server on a private/loopback/Docker address must explicitly add its hostname or IP/CIDR toSSRF_ALLOWLIST. - Shared Account-Level Rate Limiting & Persistent Quota Ledger (
delivery_quota_ledger): Minimum interval, random jitter, rolling hourly/daily quotas, and upstream429cooldowns are enforced across all destinations belonging to the same Channel Account and any sibling accounts sharingcredential_group_key(applying the strictest effective quota across the group). Rolling 1h/24h quota counts andlast_completed_atpacing timestamps are stored in the newdelivery_quota_ledgertable (without business foreign keys, pruned after 24 hours), so deleting feeds, routes, or destinations—or clearing feed cache—never resets quota usage or pacing timestamps. - REST API & MCP Destination Targeting: Route creation/updates (
POST/PATCH /api/v1/routes, MCPconfigure_route) and debug pushes (POST /api/v1/feeds/preview/push, MCPtest_push_feed_entry) now takedestination_idas the primary target. Legacychannel_idpayloads remain accepted when the account owns exactly one destination and return a validation error when multiple destinations exist. Added/api/v1/channels/{id}/destinations,/api/v1/destinations/{id}, and/api/v1/destinations/{id}/test;POST /api/v1/channels/{id}/testnow verifies account credentials whendestination_idis omitted.
- Split delivery channels into a Channel Account (
Added
- Auto-Fetched Account & Destination Default Names: Leaving the display name blank when creating a Channel Account or Destination automatically derives it from Telegram
getMe(@username) /getChat(group or channel title), SMTPfrom_address/ first recipient address, or Notion/v1/users/meintegration name / database title. - Per-Route Timezone Override (
RouteOptions.timezone): Routes now accept an optional IANA timezone (e.g.,Asia/Shanghai,America/New_York) that overrides the system timezone for that route's delivery time windows/weekdays, SMTP email article timestamps, and Telegram rich-message<footer>timestamps—formatted with explicit UTC offsets such as2026-11-08 11:00 (UTC+08:00). Configurable in the WebUI route editor, REST API, debug push, and MCP (configure_route,test_push_feed_entry). - Feeds List Tag Filter, Persistent Sort & Pagination: Narrowed the Feeds search box to feed title and URL; added a single-select Tag filter dropdown (with per-tag counts and an Untagged option), a persistent Sort control (added time or
Intl.CollatorCJK/Latin-aware title, ascending/descending), and 15 / 30 / 50 per-page pagination persisted inlocalStorage. - Channels & Routes Page Filters: Added a Channel Kind filter (
All/Telegram/SMTP/Notion) to the Channels view and cascading Channel Kind → Account filters to the Routes view. - Semantic Outbox Queue Status Colors: Standardized Outbox badges, HTTP/SMTP status codes, attempt-count escalation (
1neutral,≥ 2amber, maxed red), and status-matched diagnostic log text so successful delivery logs no longer render in red.
Changed
- Telegram Rich Message Typography (
telegram-rich 0.0.2): Upgraded totelegram-rich 0.0.2and refinedrich_messagelayout—demoting article titles from<h1>to<h2>, movingSource · Author · Localized Publish Timeinto a native Telegram<footer>below the title, inserting an<hr>divider before the body, enablingheading_offset = 2(h1→h3,h2→h4, …, up toh6), and enablinggroup_consecutive_media = trueto merge 2+ consecutive images into<tg-collage>(or<tg-slideshow>when exceeding collage limits). - Redacted MCP Destinations Discovery (
list_feeds_status): Exposed secret-freedestinationssummaries (id,channel_id,name,kind,enabled) both nested under each channel and as a top-level list without ever leaking credentials, email addresses,chat_id, ordata_source_id;inspect_failed_deliveriesnow includesdestination_idanddestination_name. - Pacing & Jitter Documentation: Clarified that random jitter (
0..=jitter_max_secs) is sampled independently after every delivered task (never shared across a batch) and held in memory only (after a restart, the first delivery enforcesmin_interval_secsfrom SQLitedelivery_quota_ledgerlast_completed_at). - In-Flight Task Synchronization on Route Updates (
PATCH /api/v1/routes/{id}, MCPconfigure_route): Changing a route's target destination atomically repoints pendingqueued,deferred, andretryingtasks to the newdestination_id(clearingcheckpoint_jsonand resettingattempt_count = 0, while leaving activedeliveringtasks untouched). Changingactive_windows,active_weekdays, ortimezoneimmediately resetsnext_attempt_at = nowonqueuedanddeferredtasks and wakes the outbox dispatcher. - Explicit SMTP Password Clearing (
PATCH /api/v1/channels/{id}): Omittingpasswordcontinues to preserve the existing encrypted SMTP password, while explicitly passing"password": nullclears an optional SMTP password.
Fixed
- DST-Safe Delivery Windows & Strict Equal-Boundary Validation (
src/schedule.rs): Handled Daylight Saving Time transitions cleanly—spring-forward gaps clamp window boundaries forward to the first valid local instant, and fall-back ambiguous intervals use the earliest occurrence for window starts and the latest occurrence for window ends. Restricted all-day equal-boundary windows strictly to00:00–00:00(or an emptyactive_windowslist), rejecting any otherstart == endwindow with400 Bad Request. - SMTP Responsive Images, Figures, Tables & Code Blocks (
src/channels/smtp.rs): Rewrote<img>tags in email bodies with Outlook-compatiblewidth="592"(preserving explicitly narrower widths and relative percentage widths), stripped fixedheightattributes, and added responsive inline CSS (max-width:100%;height:auto) alongside<figure>/<figcaption>,<table>, and<pre>width/overflow rules and<head>CSS fallbacks so wide feed images and tables no longer overflow the640pxemail card.
What's Changed
Maintenance & Dependencies
- feat(release): v0.2.0 - two-layer channels, rich typography, WebUI upgrades, and security hardening by @ElleryHe in #23
Full Changelog: v0.1.6...v0.2.0
FeedCourier v0.1.6
Added
- Feed Debug Push (
POST /api/v1/feeds/preview/push, WebUI preview modal, MCPtest_push_feed_entry): send the latest (or any previewed) live item of a subscribed or ad-hoc feed straight to a chosen channel with a chosen Telegram mode and delivery language. Stateless — no fingerprints, queue tasks, or quota usage; Notion pages use atest-prefixedFC-ID, so the same item can be re-pushed while tuning. - Per-Feed Cache Clearing (
POST /api/v1/feeds/{id}/clear-cache, MCPmanage_feedclear_cache): wipes a feed's entries/fingerprints/history tasks and HTTP validators, and optionally re-polls immediately to queue the full backlog again. - Global Queue Pause & Scheduled Resume (
GET/PUT /api/v1/tasks/queue, MCPmanage_outbox_queue): pause delivery now or until a time/duration while feeds keep polling and tasks accumulate; on resume everything is delivered as one merged chronological stream. - Route Delivery Windows & System Timezone: routes accept daily
active_windows(HH:MM–HH:MM, midnight-wrapping) andactive_weekdays; outside a window tasks stay queued withnext_attempt_atset to the next window start. The IANA system timezone is configured viaTIMEZONE/TZor Settings (defaultAmerica/Los_Angeles; the English quick start setsTZ=America/Los_Angeles, the Chinese oneTZ=Asia/Shanghai). - Administrator Username & TOTP Two-Factor Authentication: the WebUI login now uses a username (default
Courier, override withADMIN_USERNAME) so password managers autofill correctly. Settings → Account & Security adds RFC 6238 TOTP (QR + manual secret, encrypted at rest, replay protection), 10 single-use recovery codes, password/username changes (other sessions are revoked on password change), a two-step login challenge with failure throttling, andRESET_2FA=truefor emergency recovery. - MCP:
configure_routegainslocale,active_windows,active_weekdays;list_feeds_statusreportstimezoneand queue state; two new admin toolsmanage_outbox_queueandtest_push_feed_entry(9 tools total).
Changed
- Chronological Backlog Delivery: new/backlog items are now stored and enqueued oldest → newest (reverse feed order or explicit
published_at), and the outbox claims tasks byCOALESCE(published_at, discovered_at), so a non-silent new subscription no longer pushes the newest article first and several feeds merge into one ordered stream. - Delivery Language Is Per Route:
RouteOptions.locale(default = the WebUI language when the route is created) controls SMTP/Telegram template language; routes created before this release inherit the previous system language. The WebUI language switcher is a browser-local preference again (sidebar bottom-left / mobile top bar) and no longer changes delivery. - Channel connectivity tests use the current WebUI language.
What's Changed
Maintenance & Dependencies
- chore(release): v0.1.6 — debug push, chronological queue, pause/resume, route windows & language, and username + TOTP 2FA by @ElleryHe in #20
- ci(release): switch binaries-macos runner from macos-26 to macos-15 by @ElleryHe in #21
- ci(release): switch binaries-macos runner to macos-15-intel by @ElleryHe in #22
Full Changelog: v0.1.5...v0.1.6
FeedCourier v0.1.5
Added
- Release Changelog RSS 2.0 & Atom 1.0 Feeds (
docs/.vitepress/config.mts,CHANGELOG.md):- Added static build-time generation of
/feed.xml(RSS 2.0) and/atom.xml(Atom 1.0) directly fromCHANGELOG.md, complete with<link rel="alternate" type="application/rss+xml">andapplication/atom+xmlauto-discovery headers, top-bar RSS social link, and README links so users can subscribe to FeedCourier's own release notes.
- Added static build-time generation of
- Documentation Site SEO Hardening, IndexNow &
llms.txt(docs/,.github/workflows/indexnow.yml):- Added build-time generation of
/llms.txt(structured English documentation index and page summaries) and/llms-full.txt(complete single-file plain-text Markdown documentation) with<link rel="alternate" type="text/plain" href="https://feedcourier.ellery.me/llms.txt" />discovery. - Added Cloudflare Workers Static Assets
docs/public/_headers(X-Robots-Tag: noindex, nofollowon*.workers.dev/*) and set"workers_dev": falseindocs/wrangler.jsoncso preview/worker subdomains cannot compete withhttps://feedcourier.ellery.mein search rankings. - Added legacy version route isolation (
noindex, follow, canonical rewrite to the latest version path, andsitemap.xmlexclusion for/v<N>/*orversion: legacyfrontmatter). - Added optional IndexNow key-file emission (
/<INDEXNOW_KEY>.txt) at build time and.github/workflows/indexnow.ymlto automatically push modified documentation and feed URLs tohttps://api.indexnow.org/indexnowafter merges tomain.
- Added build-time generation of
- Automated Release Tagging on
main(.github/workflows/release.yml):- Updated the release workflow to trigger on
pushtomain(alongside manualv*tag pushes): when[package].versioninCargo.tomldoes not yet have a correspondingv<version>Git tag, the workflow automatically creates and pushes the tag before building multi-platform binaries, multi-arch Docker images, and the GitHub Release.
- Updated the release workflow to trigger on
Changed
- Unified Console & Delivery Language Setting in System Settings (
web/src/views/SettingsView.tsx,web/src/components/AppShell.tsx,web/src/App.tsx):- Relocated the console language selector (
English/简体中文) from the sidebar footer and mobile top bar into System Settings, accompanied by an explicit helper notice explaining that switching the console language also updates the delivery template language for newly dispatched SMTP, Telegram, and Notion notifications (AuthGateViewretains a login-screen language toggle prior to authentication). - Hydrated the active WebUI locale from
/api/v1/settings(system_settings.locale) upon authentication so new browser sessions reflect the server's configured language.
- Relocated the console language selector (
- GitHub Actions Runner Upgrades (
.github/workflows/release.yml,.github/workflows/ci.yml):- Upgraded the macOS release binary runner from
macos-latesttomacos-26(aarch64-apple-darwin+x86_64-apple-darwincross-compilation), upgradedactions/upload-artifactto@v7, and pinnedubuntu-24.04across all Linux CI and release jobs.
- Upgraded the macOS release binary runner from
Fixed
- Scheduled Feed Polling Stall & UTF-8 HTML Entity Slice Panic (
src/ingest/html.rs,src/scheduler/mod.rs,src/db/repo.rs,web/src/views/FeedsView.tsx):- Fixed a byte-index slice panic in
decode_basic_html_entities(&s[i..limit]wheni + 12landed inside a multi-byte UTF-8 character after an unescaped&in feed titles or author names) that terminated the background scheduler loop and leftnext_poll_attimestamps frozen in the past. - Isolated each scheduled feed poll inside its own
tokio::spawntask with a hard90stimeout and outercatch_unwindrecovery so a slow or panicking feed can never stall the scheduler loop or block sibling feeds in the same batch. - Clamped overdue
next_poll_attimestamps tonowwhen updating a feed'spoll_interval_minutes, and added a30srefetchIntervalon the WebUI Feeds view so background scheduler polls update relative timestamps live.
- Fixed a byte-index slice panic in
- WebUI Theme Mode Reactivity & Dark-Mode Text Selection Contrast (
web/src/components/AppShell.tsx,web/index.html):- Replaced per-component
useThemeModestate with a shareduseSyncExternalStoretheme store and livematchMedia('(prefers-color-scheme: dark)')listener so desktop and mobile theme controls stay synchronized andsystemmode reacts immediately to OS appearance changes. - Added explicit dark-mode text selection styling (
dark:selection:bg-emerald-500/30 dark:selection:text-emerald-50) on<body>inweb/index.htmlso highlighted text remains clearly legible on dark backgrounds.
- Replaced per-component
What's Changed
Maintenance & Dependencies
- chore(release): v0.1.5 — scheduler poll isolation, docs SEO/IndexNow & changelog RSS feeds by @ElleryHe in #19
Full Changelog: v0.1.4...v0.1.5
FeedCourier v0.1.4
Added
- System Locale Persistence & Localized Push Templates (
src/channels/,src/api/,web/):- Added
AppLocale(en/zh-CN) backed by SQLitesystem_settings.locale(with optionalLOCALEenvironment variable preset and partial{ "locale": ... }hot-updates onGET/PUT /api/v1/settings), automatically synchronized whenever the administrator signs into the WebUI or switches UI languages. - Localized fixed notification strings across Telegram (
Link/链接,Media N/媒体 N,Read original/阅读原文, truncation notice, and channel test messages) and SMTP email templates (Read original →/阅读原文 →, truncation notice, and footer).
- Added
Changed
- Native Multi-Runner Container Builds & Cargo Dependency Layer Caching (
.github/workflows/release.yml,Dockerfile):- Replaced QEMU user-mode
linux/arm64emulation in the release workflow with parallel native builds onubuntu-24.04(linux/amd64) andubuntu-24.04-arm(linux/arm64) usingpush-by-digest, followed bydocker buildx imagetools createmulti-arch manifest merging. - Added a version-neutral
cargo-recipemanifest sanitization stage inDockerfileso Cargo dependency compilation layers remain cached across semantic version bumps.
- Replaced QEMU user-mode
- Telegram
media_modeHyperlink Captions (src/channels/telegram.rs):- Switched
MediaModecaptions and zero-media fallback messages toparse_mode: "HTML", rendering the source permalink as a clean<a href="...">Link</a>(链接inzh-CN) hyperlink and compactly appending oversized media fallbacks on the same line (· Media N/· 媒体 N).
- Switched
- Minimalist OpenGraph & Social Preview Banner (
docs/):- Replaced
docs/public/og-image.pngwith a streamlined1280×640(2:1) dark topographic signal-wave brand banner (og:image:width = 1280,og:image:height = 640).
- Replaced
Fixed
- Telegram
media_modeInline Video Playback & Pure-Rust MP4 Metadata Extraction (src/channels/telegram.rs):- Bypassed Telegram's direct URL pass-through for
Videoattachments and ambiguous/extensionless<enclosure>items so origin CDNs omitting.mp4extensions or servingapplication/octet-streamnever cause Telegram to silently downgrade videos into unpreviewableDocumentfiles. - Added magic-byte container sniffing (
sniff_media_bytes) to promote misclassified attachments and normalize video multipart uploads tovideo/mp4+.mp4, paired with a zero-dependency ISO-BMFF (MP4/MOV/M4V)moov -> mvhd / tkhd / stsdparser (parse_mp4_metadata, including 90°/270° portrait rotation matrix handling) sosendVideoandsendMediaGroup(InputMediaVideo) always carrysupports_streaming: true,width,height, andduration.
- Bypassed Telegram's direct URL pass-through for
What's Changed
Maintenance & Dependencies
- chore(release): release v0.1.4 with native multi-arch Docker builds, Telegram video streaming, localized captions, and updated OG banner by @ElleryHe in #18
Full Changelog: v0.1.3...v0.1.4
FeedCourier v0.1.3
Added
- WebUI Bilingual (
English/简体中文) Internationalization (web/):- Added zero-dependency, strongly typed English and Simplified Chinese dictionaries (
web/src/i18n/en.ts,web/src/i18n/zh.ts,web/src/i18n/index.tsx) with automatic browser language detection (zh*→zh-CN, fallbacken),localStorage(fc-locale) persistence, and live<html lang>, page title, and relative-time formatting synchronization. - Added one-click language switching and full bilingual UI coverage across
AuthGateView,AppShell(desktop sidebar and mobile top bar),OverviewView,FeedsView,ChannelsView,RoutesView,TasksView,SettingsView, and shared UI primitives while preserving raw backend diagnostic logs intact.
- Added zero-dependency, strongly typed English and Simplified Chinese dictionaries (
- Documentation Site
robots.txt& Static Build-Time SEO (docs/):- Added
docs/public/robots.txt(Allow: /,Sitemap: https://feedcourier.ellery.me/sitemap.xml) and a1200×630static social preview card (docs/public/og-image.png). - Added unique
descriptionfrontmatter across all 34 English and Simplified Chinese documentation pages, and configured VitePresstransformHeadto inject<link rel="canonical">, bidirectionalhreflang(en-US,zh-CN,x-default), Open Graph / Twitter Card metadata,404noindex, and home-pageSchema.orgSoftwareApplicationJSON-LD at static build time.
- Added
Changed
- Container Entrypoint Automatic Bind-Mount Ownership & Privilege Drop (
Dockerfile,docker-entrypoint.sh):- Added
docker-entrypoint.shusing pre-installedsetpriv(util-linuxindebian:bookworm-slim) so containers started asrootautomatically create/fix ownership on$DATA_DIR(/data) andexecas non-root10001:10001(PID 1) with--inh-caps=-all, while passing through directly when started with--user. - Added
shellchecklinting and a root-owned0755bind-mount privilege-drop verification step to.github/workflows/ci.yml.
- Added
What's Changed
Maintenance & Dependencies
- chore(release): release v0.1.3 with WebUI bilingual i18n, docs static SEO, and Docker setpriv entrypoint by @ElleryHe in #17
Full Changelog: v0.1.2...v0.1.3
FeedCourier v0.1.2
Added
- Dedicated Architecture & Development Manual Topics (
docs/):- Split the VitePress documentation site into two independent sections with dedicated sidebars—User Guide and Architecture Manual—and added quick top-bar navigation links for Overview and Quick Start.
- Added dedicated bilingual technical reference pages for Channel Protocols & Delivery (SMTP
minijinjarendering, Telegram Bot API 10.4sendRichMessage/ media batching, and Notion2026-03-11Markdown v2 / async tasks) and Security & Isolation (ChaCha20-Poly1305credential storage, WebUI destination lock,<untrusted_feed_content>sanitization, and connect-time DNS SSRF guards).
- CI Dockerfile Build Verification:
- Added
docker-web-stageverification in.github/workflows/ci.ymlto validate theDockerfilefrontend build stage on every push and pull request.
- Added
Changed
- Documentation & README Tone Refinement:
- Rewrote
README.md,README.zh-CN.md, and all bilingual User Guide pages in a clear, factual, user-oriented style, keeping channel setup and MCP guides focused on practical credentials and configuration while relocating low-level API version headers and internal implementation details to the Architecture Manual. - Streamlined README header badges (
CI,Releaseversion shield,Docker Hub, andLicense: AGPL-3.0), unified human-facing license labels toAGPL-3.0across WebUI, REST API, MCP metadata, and documentation, and updated the documentation footer toCopyright © <currentYear> FeedCourierwith automatic build-time and client-side year synchronization.
- Rewrote
- Container Build & CI Runtime Upgrades:
- Upgraded
DockerfileStage 1 builder image fromnode:24-alpinetonode:26-alpine(Node.js 26 LTS) usingnpm install -g pnpm@10in place of the removed bundledcorepack. - Upgraded GitHub Actions workflows to
actions/checkout@v7,pnpm/action-setup@v6, anddocker/login-action@v4, and removed the redundant rootwrangler.jsoncand unuseddockerhub-descriptionrelease step.
- Upgraded
What's Changed
Maintenance & Dependencies
- chore(release): release v0.1.2 with restructured docs, Node 26 builder, and CI updates by @ElleryHe in #16
Full Changelog: v0.1.1...v0.1.2
FeedCourier v0.1.1
Added
- Bilingual VitePress Static Documentation Site (
docs/):- 32 bilingual pages (
/English and/zh/Simplified Chinese) covering Quick Start, Configuration & Proxy/SSRF, Operations & Hot Backup, Pacing & Quota Guardrails, SMTP Newsletters, Telegram Bot API 10.4, Notion2026-03-11, MCP Client Setup, 7 MCP Tools Reference, MCP Security & Trust Boundaries, System Architecture, SQLite Database Schema,/api/v1/*REST API, and Releasing & CI/CD. - Cloudflare Workers Static Assets deployment configuration (
docs/wrangler.jsonc) serving feedcourier.ellery.me with native local search and client-only Mermaid diagram rendering.
- 32 bilingual pages (
- Unified Brand Logo Suite:
- Transparent geometric vector brand assets (
logo-light.svg,logo-dark.svg,favicon.svg, andlogo.png) integrated across GitHub<picture>dark/light README headers, the VitePress documentation site, and the embedded React 19 WebUI (AppShellsidebar header,AuthGateViewlogin/bootstrap card, and browser favicon).
- Transparent geometric vector brand assets (
- CI Documentation Verification & Dependabot Coverage:
- Added
Docs Site Build & Link CheckCI job in.github/workflows/ci.ymlto verify VitePress static builds and fail on dead internal links. - Added
/docsnpm dependency update tracking and non-LTS Node.js Docker major ignores in.github/dependabot.yml.
- Added
Changed
- Streamlined Root README Entrypoints:
- Rewrote
README.mdandREADME.zh-CN.mdinto concise bilingual entrypoints (<100 lines) with architecture overview, Docker Quick Start, and structured deep links tofeedcourier.ellery.me, while removing the legacy rootfeedcourier.mddesign draft.
- Rewrote
- GitHub Actions Native
node24Runtime Upgrades:- Upgraded CI and Release workflow actions to native
node24major releases (actions/setup-node@v7,actions/download-artifact@v8,docker/setup-qemu-action@v4,docker/setup-buildx-action@v4,docker/metadata-action@v6,docker/build-push-action@v7, andsoftprops/action-gh-release@v3).
- Upgraded CI and Release workflow actions to native
What's Changed
Maintenance & Dependencies
- chore(release): release v0.1.1 with VitePress docs site, vector logo suite, and CI upgrades by @ElleryHe in #10
Full Changelog: v0.1.0...v0.1.1
FeedCourier v0.1.0
Added
- Guarded Feed Ingest & Ephemeral Storage Pipeline:
- RSS, Atom, and JSON Feed polling (
feed-rs) with conditional HTTP caching (ETagandLast-Modified), keyword/regex route filters, and OPML 2.0 import/export. - Optional per-feed Readability full-text extraction (
dom_smoothie) behind bounded concurrency semaphores with graceful fallback to feed summaries. - Permanent 4-tier anti-drift SHA-256 deduplication (native entry ID, canonicalized permalink stripped of tracking parameters, explicit published timestamp + title, and sanitized plain-text prefix).
- Silent initialization (
silent_init) for newly added and OPML-imported feeds, zero-refcountNOT EXISTSpayload garbage collection (RETENTION_HOURS), and onlineVACUUM INTOSQLite backups.
- RSS, Atom, and JSON Feed polling (
- Lease-Based SQLite WAL Outbox & Scheduler:
- Split SQLite WAL connection architecture pairing a serialized single-writer pool (
max_connections = 1) with a concurrentquery_only = ONread pool. - Atomic
lease_untiltask claiming and crash-safecheckpoint_jsonstate reconciliation without startup scan races (queued,delivering,retrying,deferred,delivered,dead_letter). - Shared-credential anti-spam pacing with configurable minimum interval, random jitter,
429 Retry-Aftercooldowns, and rolling hourly/daily quota guardrails.
- Split SQLite WAL connection architecture pairing a serialized single-writer pool (
- SMTP Newsletter Delivery Channel:
- Responsive inline-CSS single-column HTML emails (
minijinja) withmultipart/alternativeplain-text fallback (html2text) sized below Gmail's102 KBclipping threshold. - SPF/DKIM/DMARC-safe
Force-Fromsender alignment,Auto-Submitted: auto-generatedand per-feedList-Idheaders, and deterministic fingerprint-derivedMessage-IDheaders for client-side deduplication.
- Responsive inline-CSS single-column HTML emails (
- Telegram Bot API 10.4 Delivery Channel:
rich_messagemode powered bytelegram-rich(sendRichMessageRich HTML normalization, block-boundary truncation within Bot API 10.4 limits, runtime capability probing, and automatic fallback to Compact Card on older Local Bot API Servers).compact_cardmode (sendMessagedigest within4,096chars with route-levellink_previewcontrol).media_modewith<enclosure>,media:content, and inline media extraction, Unicode-segmented 3-line captions, zero-disk anti-hotlink multipart streaming fallback, and checkpointed 10-itemsendMediaGroupbatch recovery.
- Notion
2026-03-11Delivery Channel:- Zero-friction 7-column database auto-provisioning via
initial_data_source.properties(Title,Link,Source,Published,State,Tag,FC-ID) or binding/patching of an existingdata_source_id. - HTML-to-Markdown v2 normalizer (
htmd) with dynamic outer code-fence expansion,5,000-block boundary truncation,allow_async: truebackground task polling (/v1/async_tasks/{id}), andFC-IDquery reconciliation for effective-once crash recovery.
- Zero-friction 7-column database auto-provisioning via
- Embedded React 19 WebUI & REST API:
- Single-binary embedded React 19 + TypeScript + Vite management console (
rust-embed) and/api/v1/*REST API for feeds, encrypted channels, routes, outbox diagnostics, dead-letter retries, selective HTTP/SOCKS5 proxy routing (OUTBOUND_PROXY), and database backups.
- Single-binary embedded React 19 + TypeScript + Vite management console (
- Native Streamable HTTP MCP Server (
/mcp):- Built-in
rmcpStreamable HTTP endpoint withreadonly(list_feeds_status,inspect_failed_deliveries,preview_feed_latest) andadmin(manage_feed,configure_route,reset_and_poll_feed,retry_dead_tasks) permission scopes.
- Built-in
- Multi-Arch Packaging:
- Non-root Debian Bookworm runtime container image (
UID/GID 10001,/datavolume) and prebuilt release binaries for Linux and macOS (x86_64andaarch64).
- Non-root Debian Bookworm runtime container image (
Security
- Connect-Time DNS SSRF & Redirect Guard (
src/net/ssrf.rs): All outbound requests to user-supplied or feed-derived URLs validate resolved IPv4/IPv6 addresses prior to TCP connect (blocking loopback, link-local, cloud metadata169.254.169.254, and private RFC1918/ULA ranges against DNS rebinding), re-validate every30xredirect hop, enforce strict response stream caps, and support explicitSSRF_ALLOWLISTCIDR/hostname exceptions. - Encrypted Credential Vault & Scoped Auth: Channel credentials are encrypted at rest with
ChaCha20-Poly1305AEAD (master.key,0600); WebUI administrator passwords useArgon2idPHC hashing withHttpOnlysession cookies (fc_session); and/mcpBearer tokens are stored exclusively asSHA-256hashes. - MCP Trust Boundaries & Untrusted Content Framing: Channel secrets and recipient targets (email addresses,
chat_id,data_source_id) are strictly locked to the WebUI and opaque to/mcptools, while untrusted external feed text surfaced to AI agents is sanitized, truncated, and isolated inside<untrusted_feed_content>XML boundary tags (src/mcp/sanitize.rs), complemented byammoniaHTML sanitization across ingest and delivery pipelines.
What's Changed
Maintenance & Dependencies
- chore(release): add community governance files and refine Docker Hub release workflow by @ElleryHe in #1
New Contributors
Full Changelog: https://github.com/ElleryHe/FeedCourier/commits/v0.1.0