A monorepo for React JSONR - a library that allows you to create React components from JSON definitions.
packages/react-jsonr/- The core libraryapps/docs/- Documentation website built with Next.js and Fumadocs
This repository uses pnpm for package management.
# Install dependencies
pnpm install
# Build the library
pnpm build
# Run the documentation site
pnpm docs:devReact JSONR is built around a few key concepts:
- JSON Nodes - A JSON structure describing UI components with their properties and children
- Component Registry - A whitelist of allowed components that can be referenced in the JSON
- Transformation Pipeline - A system to process and modify the JSON before rendering
- Plugins - Modular transformers that can alter the JSON tree
- Event Handler Mapping - A secure approach to map string-based event references to actual functions
For detailed documentation, visit the documentation site by running pnpm docs:dev or see the README in the packages/react-jsonr directory.
MIT