@neurowire/web
v0.3.0
Published
Render a Neurowire feed or mesh into a self-contained HTML news page.
Maintainers
Readme
@neurowire/web
Render a Neurowire feed or mesh into a single, self-contained HTML news page: all CSS inline, no external assets, no JS framework. Ideal for a static, scheduled publish (for example to GitHub Pages). This is not a React app.
Install
npm install @neurowire/web
# or use the bin without installing
npx @neurowire/web --mesh ai-news.json --out public/index.htmlCLI
neurowire-web --mesh ai-news.json --out public/index.html
neurowire-web <feed-url> --out public/index.htmlIt fetches the feed or mesh (using @neurowire/ingest and the bundled taps) and writes a complete HTML page.
Library
import { toHtml } from '@neurowire/web'
import { fetchMesh } from '@neurowire/ingest'
const feed = await fetchMesh({
name: 'AI News',
sources: [{ name: 'Claude Blog', url: 'https://claude.com/blog' }],
})
const html = toHtml(feed) // self-contained HTML stringScheduling
Drive the bin from any cron or CI routine to republish on a schedule. The repository ships .github/workflows/pages.yml as one example: it builds the docs and the AI news example and deploys them to GitHub Pages.
License
Apache-2.0
