@next-work-dashboard/rss-reader
v0.1.0
Published
Reusable RSS reader core, main-process IPC service, and React host boundary
Readme
@next-work-dashboard/rss-reader
Reusable RSS reader core, main-process IPC service, and React host boundary for next-work-dashboard.
The package is host-neutral. Electron preload/IPC, SQLite storage (better-sqlite3), the article readability extractor, and OS-level notifications are supplied through adapters.
// main process
import { registerRssIpc } from '@next-work-dashboard/rss-reader/main';
import Database from 'better-sqlite3';
registerRssIpc({
openDatabase: () => new Database('<userData>/rss-reader.db'),
extractReadability,
notify: (title, body) => { /* electron Notification */ },
});// renderer
import { RssReaderPanel } from '@next-work-dashboard/rss-reader/react';
<RssReaderPanel adapter={adapter} />;Layout
src/core/— pure functions: RSS/Atom parser, types, recommended feeds.src/main/— better-sqlite3 persistence andregisterRssIpc(). Host injectsopenDatabase,extractReadability, andnotify.src/react/—RssReaderPanelplus theRssReaderAdapterinterface that bridges to the host (Electron preload bridge, OS file pickers, etc).src/styles.css— CSS variables and utility classes used by the panel.
