rudra-js

Open-source TypeScript library for LLM product recommendations

Version support

Every @rudra-js package is released at the same version, at the same time. Before 1.0, a minor version can change the API. The changelog lists every change.

PackageVersionDependenciesPeer dependencies
@rudra-js/core0.9.0zod ^4.6.7@rudra-js/attested ^0.9.0
@rudra-js/react0.9.0none@rudra-js/core ^0.9.0, react ^18.2.0 || ^19.0.0
@rudra-js/anthropic0.9.0zod ^4.6.7@rudra-js/core ^0.9.0
@rudra-js/attested0.9.0nonenone
@rudra-js/a2ui0.9.0zod ^3.25.76@a2ui/react ^0.14.0, @a2ui/web_core ^0.14.0, @rudra-js/core ^0.9.0, @rudra-js/react ^0.9.0, react ^18.2.0 || ^19.0.0

Runtime

RequirementSupportedNotes
Node>=22.12.0Node 20 is end of life. The packages aren't built or tested on it. The library's CI runs every check on Node 22.12.0 and on the latest Node 22.
zod^4.6.7, and ^3.25.76 for @rudra-js/a2uiYou don't install zod yourself. @rudra-js/core and @rudra-js/anthropic depend on zod 4. An app on zod 4 shares that copy. In an app on zod 3, npm puts a zod 4 under each one you install. Your zod 3 can't be mixed with the schemas core exports. See z.array(productSchema) fails in an app on zod 3. @rudra-js/a2ui depends on zod 3. On pnpm, read zod on pnpm. Up to 0.6.0, zod was a peer dependency of core and anthropic, so you installed zod 4 yourself. In an app on zod 3, npm stopped the install with ERESOLVE. From 0.7.0 to 0.7.6, core and anthropic depended on ^4.0.0.
React^18.2.0 || ^19.0.0A peer of @rudra-js/react and @rudra-js/a2ui. The block renders as a Server Component, with renderToString or in the browser. Its HTML needs no JavaScript in the browser. The A2UI component runs only in the browser, because @a2ui/react needs a DOM.