lumen-grid
v0.1.2
Published
A grid that lights up the bits of your data you couldn't see at a glance.
Downloads
23
Maintainers
Readme
lumen-grid
Publish with npm publish from this directory.
A grid that lights up the bits of your data you couldn't see at a glance.
Open-source React data grid with virtualiser, inference cache, LLM adapters, and UI in a single dependency. Peer deps only: react and react-dom (>=18).
pnpm add lumen-grid
npm install lumen-gridimport { Grid } from 'lumen-grid'
export function Demo() {
return (
<Grid
data={rows}
columns={[
{ field: 'photo', header: 'Image', width: 96 },
{ field: 'notes', header: 'Review', width: 360 },
]}
getRowId={(r) => r.id}
aiConfig={{ provider: 'anthropic', apiKey: '…' }}
height={560}
/>
)
}OpenAI in the browser: set openaiChatCompletionsUrl to a same-origin path (e.g. '/api/openai/chat-completions') so your server can hold the API key. Anthropic supports anthropicMessagesUrl the same way.
Advanced use (engines + plugins): re-export surface from the same package — export * from ./engine and ./llm is available via the main barrel. See DOCS.md for InferenceCache, visionPlugin, applyFilters, and more.
Source / issues: https://github.com/rbnnghs/lumen
