@rungent/react
The frontend of rungent: the assistant dock, approval cards, forms,
⌘K search and help viewer for React 19, and the typed HTTP client any frontend can use. It talks to
a rungent runtime over HTTP and installs none of it.
npm install @rungent/react
| Import |
What it is |
Runs on |
@rungent/react |
RungentProvider, RungentDock, RungentThread, ApprovalCard, RungentForm, SearchPalette, HelpViewer, ModelSettings, hooks and strings |
browser (React 19) |
@rungent/react/styles.css |
The components' styles |
browser |
@rungent/react/client |
createClient, the typed client of the HTTP API, and reduceThread, the AG-UI thread reducer; no React |
browser, Node |
react and react-dom are optional peer dependencies, needed only for @rungent/react.
import { createClient } from '@rungent/react/client';
import { RungentDock, RungentProvider, SearchPalette } from '@rungent/react';
import '@rungent/react/styles.css';
const client = createClient(); // same origin; the client adds /rungent/v0
export function Shell({ children }: { children: React.ReactNode }) {
return (
<RungentProvider client={client} onOpen={(path) => router.push(path)}>
<RungentDock>{children}</RungentDock>
<SearchPalette />
</RungentProvider>
);
}
⌘/Ctrl+J toggles the dock and ⌘/Ctrl+K opens search. Theme with the --rungent-* CSS variables.
The guides are at rungent.dev.
Development
pnpm --filter @rungent/react test # client and component tests
pnpm --filter @rungent/react example # the components against a fake server
License: Apache-2.0.