Files
MosaicIQ/MosaicIQ/README.md

1.1 KiB

Tauri + React + Typescript

This template should help get you started developing with Tauri, React and Typescript in Vite.

Documentation

Local-First News

The news runtime lives in src-tauri/src/news/ and stores feed state plus articles in a local SQLite database under the app data directory. Reads are local-first: the UI and /news terminal command render cached articles immediately, while refreshes update the local cache in the background.

Frontend example:

import { useNewsFeed } from './src/news';

const { articles, refresh, toggleSaved, markRead } = useNewsFeed({
  onlyHighlighted: true,
  limit: 20,
});

Terminal usage:

/news
/news NVDA

/news never fetches the network at read time. It filters articles already persisted in the local news database.