# Tauri + React + Typescript

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

## Documentation

- [Rig Agent Harness Architecture](./docs/rig-agent-harness.md)

## 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:

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

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

Terminal usage:

```text
/news
/news NVDA
```

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

## Recommended IDE Setup

- [VS Code](https://code.visualstudio.com/) + [Tauri](https://marketplace.visualstudio.com/items?itemName=tauri-apps.tauri-vscode) + [rust-analyzer](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer)
