A Java 21+ service that polls RSS/Atom feeds and posts new entries as JSON to
webhook endpoints. An embedded Jetty server provides the configuration interface.

./run.sh --password 'choose-a-password'
# Windows: run.cmd --password "choose-a-password"
Open http://127.0.0.1:28215/ and enter the supplied password on the sign-in
page. Use the tabs to add feed URLs and webhook URLs and set polling intervals;
+ Add feed inserts a new feed at the top of the list and focuses its URL field.
Feeds added through the interface are named from their RSS/Atom title when available;
changing a feed's URL replaces its name with the new feed's title (keeping the current
name if the new feed has none). Names can be edited afterwards, and a failed title
lookup does not prevent saving. Choose the feeds for each webhook by name (or URL for
unnamed feeds; hover a choice to see its URL). Feed icons appear beside each feed
name and these choices; the application's icon is shown until a feed's icon has
been imported.
The Settings button opens global settings. Public URL is the externally
reachable address of the admin page, including any reverse-proxy path (for example
https://openstatic.org/rsstowebhook/); Fetch from browser fills it in from the
current page address. When set, webhook payloads include an iconUrl for the
feed's cached icon, and cached icons under res/ can be fetched without signing in
so webhook receivers can display them. Edits remain in place when switching
tabs; Save configuration (at the bottom of the form or beside Settings at the
top of every tab) saves both lists. The Delivery status tab shows
fetch errors, known entry counts, and pending delivery failures.
The Imported entries tab lists saved entries (including the initial baseline)
newest first by publication date (or updated date, or import time for undated
entries), with feed filtering, pagination, and expandable JSON payloads. Select a configured
Test endpoint and use an entry's Test send button to send it immediately.
Disabled endpoints can be tested before enabling automatic delivery.
The Webhook logs tab lists every triggered webhook (automatic deliveries,
retries, and test sends), newest first, with the HTTP status or error, attempt
number, duration, and delivery ID. Filter by endpoint or show only failures.
| Option | Default | Meaning |
|---|---|---|
-p, --port <port> | 28215 | Jetty HTTP port (1–65535) |
-d, --config-dir <path> | .rss-to-webhook/ | Directory for configuration, state, logs, and icons |
--password <password> | none | Require this password on the admin sign-in page; protects the UI and API |
--bind-address <address> | 127.0.0.1 | Listen address; non-loopback addresses require a password |
-?, --help | Show usage |
Without --config-dir, the directory is .rss-to-webhook/ inside the launch
directory. If it cannot be written there, the default is .rss-to-webhook/ in
the user's home directory. Startup prints the directory in use. It contains
rss-to-webhook.json (configuration), state.json (polling and delivery state),
log.json (webhook log), entries/ (one file per imported
entry), and res/ (feed icons).
On the first default-directory launch, an existing .rss-to-webhook.json and its
state/log sidecars are copied into the new directory without deleting the old
files. Existing new configuration is never overwritten. The old --config-file
option is no longer supported. For a previously customized file, copy it into
your chosen directory as rss-to-webhook.json, and copy its .state.json and
.log.json sidecars as state.json and log.json before
starting with --config-dir.
Jetty informational messages are hidden by default; warnings and errors remain
visible. When running the JAR, restore Jetty's informational logs for troubleshooting
with java -Dorg.slf4j.simpleLogger.log.org.eclipse.jetty=info -jar target/rss-to-webhook-1.0.jar.
Without a password, the interface is accessible only on localhost by default.
For remote access, use e.g. --bind-address 0.0.0.0 --password ..., and place Jetty
behind an HTTPS reverse proxy or access it over an SSH tunnel. Plain HTTP does
not encrypt the password or session cookie. Command-line passwords may be visible in
process listings. Only trusted administrators should have access: configured
feed/webhook URLs can reach services accessible to this machine.
Signing in creates an HttpOnly, SameSite=Strict session cookie (marked Secure
over HTTPS, including behind a proxy sending X-Forwarded-Proto: https). Sessions
expire after 12 hours of inactivity, end on Sign out, and are cleared when the
service restarts. After 5 failed attempts from one address within 5 minutes,
further sign-ins are refused with HTTP 429 until the window passes.
The admin UI uses only relative URLs, so it can be mounted below any path. Include
the trailing slash in the proxy_pass URL so nginx strips the prefix, and forward
the original host and scheme so cross-origin protection works with HTTPS:
location = /rsstowh { return 301 /rsstowh/; }
location /rsstowh/ {
proxy_pass http://127.0.0.1:28215/;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
Open the UI as https://example.com/rsstowh/ (with the trailing slash).
Forwarded headers are honored, so keep Jetty bound to localhost or otherwise
reachable only through the proxy.
The configuration is created automatically, including parent directories, and
saved atomically by the web interface:
{
"feeds": [
{
"url": "https://example.org/feed.xml",
"name": "Example news",
"intervalSeconds": 900,
"enabled": true
}
],
"webhooks": [
{
"url": "https://example.org/webhook",
"enabled": true,
"feedUrls": ["https://example.org/feed.xml"]
}
],
"publicUrl": "https://openstatic.org/rsstowebhook/"
}
URLs must be absolute HTTP(S) URLs without embedded credentials or fragments.
publicUrl is optional, must not include a query string, and is saved with a
trailing /.
Intervals default to 15 minutes, with a 60-second minimum and 24-hour
maximum. Omitted enabled fields default to true. Invalid configurations are
rejected without replacing the saved configuration. Manual file edits require a
restart; web interface changes are picked up automatically.
Feed names are optional and do not affect routing; URLs identify feeds. When
feedUrls is omitted, a webhook receives all enabled feeds, including feeds
added later, preserving the behavior of older configurations. An explicit array
selects only the listed configured feed URLs; an empty array selects none. Each
selected URL must be unique and match a configured feed. Renaming a feed keeps
its selections; changing its URL is treated as removing the old feed and adding
a new one.
entries/<id>.json and available after restart.X-RSS-Delivery-IDtest- and an X-RSS-Test: true header.ETag/If-None-Match, andLast-Modified/If-Modified-Since. HTTP 304 avoids reprocessing unchanged feeds.Retry-After is honored (up to 24 hours).<link rel="icon">, apple-touch-icon, and msapplication-TileImage tags,data: icons, and by its web app manifest. The smallest PNG/ICO icon offavicon.ico is tried alongside the feed URL,<head>) and 256 KiB of a manifest are read.res/; images are limited to 2 MiB. ICO bitmap frames support<use>/<symbol>, simple CSSX-RSS-Delivery-ID header. A 2xx response acknowledges delivery.State is stored in state.json in the configuration directory, retaining
known entry fingerprints, conditional request headers, scheduled scans, and
pending deliveries across restarts. Imported entries are stored separately in
entries/, one <id>.json file per entry, where <id> is the entry's ID in the
Imported entries tab and API (a SHA-256 of the feed URL and the entry's own ID,
so identical entry IDs in different feeds do not collide). Each file contains id,
feedUrl, key (the entry's fingerprint in state.json), importedAt, and
payload. Removing a feed deletes its entry files; unreadable entry files are
skipped with a warning. Back up the configuration directory and run only one
instance per configuration. A corrupt state.json fails startup rather than
silently resetting state. Entry history and persistent failures are retained, so
the directory can grow over time.
Versions before state.json stored state, including all imported entries, in
rss-to-webhook.json.state.json. On startup that file is converted: entries are
written to entries/, the rest is saved as state.json, and the old file is
removed. The webhook log, previously rss-to-webhook.json.log.json, is renamed to
log.json.
The webhook log is kept separately in log.json (the
most recent 500 calls); an unreadable log is ignored at startup rather than blocking it.
Passwords are never written to either file.
Each POST has Content-Type: application/json and represents one normalized entry:
{
"feedUrl": "https://example.org/feed.xml",
"feedTitle": "Example news",
"id": "story-123",
"title": "A new story",
"link": "https://example.org/story-123",
"author": "Alice",
"publishedAt": "2026-01-01T12:00:00Z",
"updatedAt": null,
"summary": "<p>A short summary</p>",
"content": [{"type": "text/html", "value": "<p>Full story</p>"}],
"categories": ["news"],
"iconUrl": "https://openstatic.org/rsstowebhook/res/1ce44b4dc89ed392c872acc9a61ed843a9fe21a40363e3a1cb4b6bc9b14a2a33.png"
}
iconUrl is present only when a public URL is configured and the feed's icon has
been imported; it is added when each request is sent, so it reflects the current
setting. Missing scalar fields are null; content/categories are arrays. Dates are UTC
ISO-8601 strings. This is an entry-oriented RSS/Atom normalization, not a
lossless conversion of every vendor-specific XML extension.
Scripts can authenticate with POST /login and {"password":"..."}, then send the
returned rsswh_session cookie; POST /logout ends the session. The authenticated
API supports:
GET /api/config and PUT /api/config to read/save configuration. A savedpublicUrl keeps the current public URL.GET /api/settings and PUT /api/settings with {"publicUrl":"https://..."}POST /api/feed-title with {"url":"<feed URL>"} to look up a feed's title{"title":"..."} (an empty string if no title);GET /api/status for polling/delivery status; feedIcons maps feed URLs toGET /api/entries?offset=0&limit=20&feedUrl=... for imported entries. The optionalfeedUrl filter is an exact match; limit defaults to 50 and is capped at 100.publishedAt, then updatedAt, then import time.entries, total, offset, and limit; each entry containsid, feedUrl, importedAt (epoch milliseconds), and payload.POST /api/test-send with {"entryId":"<browser id>","webhookUrl":"<configured URL>"}statusCode anddeliveryId; receiver/network failures return HTTP 502 with an error.GET /api/deliveries?offset=0&limit=25&webhookUrl=...&failed=true for the webhookat (epoch milliseconds),webhookUrl, feedUrl, title, link, success, statusCode (when a responseerror, attempt, durationMs, deliveryId, and test.Write requests require Content-Type: application/json. Cross-origin write
requests are rejected. Older state files without payload history are upgraded
by importing entries still present in the next successful feed scan, without
replaying already-seen entries.
mvn test
# Portable executable JAR, without platform-specific native installers:
mvn package -P '!linux-build,!windows-build,!mac-build'
java -jar target/rss-to-webhook-1.0.jar
mvn package retains the project's platform-specific GraalVM native image and
installer builds, requiring their native toolchains. On Linux it produces
target/rss-to-webhook-<version>-native-<arch>.deb, where <arch> is the build
machine's Debian architecture (for example amd64 or arm64). Source launchers
(run.sh and run.cmd) compile and run without building the native installers.
Native builds do not download the shared GraalVM reachability metadata repository.
Metadata for third-party libraries (Jetty, Jackson, SLF4J, Commons CLI, and Jakarta
APIs) is vendored under src/main/resources/META-INF/native-image/<group>/<artifact>/,
copied from repository version 1.0.20 (CC0). When upgrading one of these libraries,
refresh its file from the
GraalVM reachability metadata repository.
PNG decoding uses PNGJ under the
Apache License 2.0.
Some Text
If you are feeling generous and would like to support this project
Latest Update: November 29 2026 02:09:49 PM EST
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.