A service for subscribing to RSS/Atom feeds, receiving real-time updates via WebSub/PubSubHubbub, and delivering those updates to a developer-defined webhook.
This service acts as a WebSub client, subscribing to external hubs when discovered. Developers can register their webhook endpoints to receive notifications when subscribed feeds are updated.
There is also a developer friendly API for real-time updates to RSS feeds delivered directly to a developer defined endpoint.
WebSub (formerly PubSubHubbub) is a protocol that enables real-time notifications for content updates. It involves three main components:
- Publishers: Content creators who publish feeds (e.g., blogs, news sites).
- Hub: An intermediary server that facilitates communication between publishers and subscribers. Publishers notify the hub of updates, and the hub pushes those updates to subscribers. Super Duper Feeder acts as a subscriber to these external hubs.
- Subscribers: Services or applications (like Super Duper Feeder, or the developer's webhook registered with it) that want to receive real-time updates about content changes from a hub.
The flow works as follows:
- A subscriber (like Super Duper Feeder) discovers the hub URL from a publisher's feed.
- The subscriber sends a subscription request to the external hub.
- The hub verifies the subscription request with the subscriber (using the
/callback/:idendpoint of Super Duper Feeder). - When the publisher updates content, they notify their designated hub.
- The hub fetches the updated content and sends it to all its verified subscribers (including Super Duper Feeder).
- Super Duper Feeder receives the update and forwards it to any developer-registered webhooks for that feed.
- Feed Subscription Management: Subscribe to RSS/Atom feeds via a simple API or UI.
- WebSub Client: Automatically discovers and subscribes to external WebSub hubs for real-time updates.
- Handles WebSub subscription verification (
/callback/:idendpoint). - Receives content pushes from external hubs.
- Handles WebSub subscription verification (
- Webhook Delivery: Forwards feed updates from WebSub to developer-registered webhook URLs.
- Callback URL verification for security.
- Simple UI & Admin Panel:
- Manage feed subscriptions.
- Basic documentation access.
- Runtime: Deno
- Hosting: Deno Deploy
- Database: DenoKV
- Scheduling: Deno cron jobs for periodic tasks
# Start the server locally
deno task devThe server will be available at http://localhost:8000.
The project includes a comprehensive test harness for unit and integration testing:
# Run all tests
deno task testSee the tests/README.md file for more details on the test harness.
The documentation is available at http://localhost:8000/docs when running locally.
GET /: Redirects to/uiGET /api: Provides basic API information (name, version, description)GET /health: Health check endpoint
POST /api/webhook: Allows developers to subscribe their service (callback URL) to a feed topic. Handles hub discovery and subscription requests.ALL /callback/:id: Endpoint used by external WebSub hubs to verify subscriptions initiated by this service (GETwithhub.mode,hub.topic,hub.challenge) or deliver content updates (POST). This service receives the updates here.
GET /ui,GET /ui/:path*: Serves the main user interface files fromui/public/ui/.GET /admin,GET /admin/:path*: Serves the admin panel files fromui/public/admin/.GET /docs,GET /docs/:path*: Serves the documentation files fromui/public/docs/.
The service is deployed to Deno Deploy at: superduperfeeder.deno.dev
/
├── .gitignore
├── config.ts # Configuration settings
├── deno.json # Deno configuration (tasks, imports)
├── deno.lock # Dependency lock file
├── deps.ts # Centralized dependency management
├── LICENSE
├── main.ts # Application entry point
├── prompt.md # (Likely related to AI/LLM interaction)
├── README.md # This file
├── models/ # Data models (DenoKV schema)
│ ├── external_subscription.ts # Model for subscriptions made via this service to external hubs
│ ├── queue.ts # Model for background job queue
│ ├── user_callback.ts # Model for developer-provided callback URLs
│ └── user.ts # User model (if authentication is implemented)
├── routes/ # API route definitions (using Oak router)
│ ├── index.ts # Main router, basic routes (/api, /health)
│ ├── static.ts # Static file serving (/ui, /docs, /admin)
│ └── webhook.ts # Webhook endpoints (/api/webhook, /callback/:id)
├── services/ # Business logic layer
│ └── webhook.ts # Service for handling webhook subscriptions and callbacks
├── tests/ # Test suite
│ ├── README.md # Documentation for running tests
│ ├── run_tests.ts # Main test runner script
│ ├── test_config.ts # Configuration for tests
│ ├── test_setup.ts # Setup logic for tests
│ ├── integration/ # Integration tests (directory exists)
│ ├── mocks/ # Mock objects for testing
│ │ └── mock_feed.ts
│ ├── unit/ # Unit tests
│ │ └── crypto_test.ts
│ └── utils/ # Utility functions for tests
│ └── test_database.ts
├── ui/ # Parent directory for UI assets
│ └── public/ # Root directory for served static assets
│ ├── admin/ # Admin panel interface
│ │ ├── feeds.html
│ │ ├── index.html
│ │ ├── items.html
│ │ ├── styles.css
│ │ └── subscriptions.html
│ ├── docs/ # Documentation site
│ │ ├── index.html
│ │ └── styles.css
│ └── ui/ # Main user-facing interface
│ ├── index.html
│ ├── styles.css
│ ├── subscribe.html
│ ├── subscriptions.html
│ └── unsubscribe.html
└── utils/ # Utility functions
├── crypto.ts # Cryptographic utilities (hashing)
└── database.ts # DenoKV database interaction utilities
The service provides an API for managing feed subscriptions and receiving updates via webhooks:
- Subscribe to a Feed: Provide a feed URL (
topic) and optionally your webhook URL (callback). - Automatic Hub Discovery: The service attempts to find and subscribe to an external WebSub hub for the feed.
- Callback Verification: If a
callbackURL is provided, it must be verified before receiving updates.
- WebSub Verification: Handles
GETrequests from external hubs to verify subscriptions initiated by this service. - Content Delivery: Receives
POSTrequests from external hubs containing feed updates.
See the documentation (or /docs when running locally) for detailed API usage, including request/response formats, callback verification details, error handling, and best practices.
This project uses the Web Crypto API for password hashing instead of bcrypt because bcrypt is not
compatible with Deno Deploy. The implementation in utils/crypto.ts provides:
- Secure password hashing using PBKDF2 with SHA-256
- AES-GCM encryption for password verification
- A drop-in replacement for bcrypt's
hashandcomparefunctions - Automatic salt generation for each password
- Compatibility with the existing user authentication system
The implementation has been thoroughly tested and provides the same level of security as bcrypt while being compatible with Deno Deploy's runtime environment.
See the LICENSE file for details.