
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
@appthen/react-renderer
Advanced tools
A lightweight, powerful React renderer for Low-Code schemas, designed for high performance and SSR support. Built on top of `@alilc/lowcode-renderer-core` but optimized for modern React applications using Ant Design.
A lightweight, powerful React renderer for Low-Code schemas, designed for high performance and SSR support. Built on top of @alilc/lowcode-renderer-core but optimized for modern React applications using Ant Design.
@alifd/next, focusing on a modern stack.npm install @appthen/react-renderer
# or
pnpm add @appthen/react-renderer
# or
yarn add @appthen/react-renderer
Simply provide the projectId (or appId) and fileName, and the renderer will automatically fetch the schema, load dependencies, and render the page.
import { LowcodeRenderer } from '@appthen/react-renderer';
const App = () => {
return (
<LowcodeRenderer
projectId="your-project-id"
fileName="your-page-name"
// Optional: Pass custom appHelper or override components
appHelper={{
utils: {
// Custom utilities
},
}}
/>
);
};
You can also pass schema and components directly if you want to manage loading manually or use static schemas.
import { LowcodeRenderer } from '@appthen/react-renderer';
const App = () => {
const schema = {
componentName: 'Page',
children: [
{
componentName: 'Button',
props: {
type: 'primary',
children: 'Click Me',
},
},
],
};
const components = {
Button: ({ children, ...props }) => <button {...props}>{children}</button>,
};
return <LowcodeRenderer schema={schema} components={components} />;
};
The renderer is designed to work seamlessly in SSR environments (e.g., Next.js, Remix, or custom Express/Vite SSR setups).
// server-entry.tsx
import { renderToString } from 'react-dom/server';
import { LowcodeRenderer } from '@appthen/react-renderer';
const html = renderToString(
<LowcodeRenderer
projectId="your-project-id"
fileName="your-page-name"
// For SSR, you might want to preload data and pass it
// schema={preloadedSchema}
// components={preloadedComponents}
/>,
);
You can configure the global behavior of the renderer (e.g., API domains, authentication tokens) using setConfig.
import { setConfig } from '@appthen/react-renderer';
// Set global configuration
setConfig({
// Override base API domain
apiDomain: 'https://api.your-domain.com',
// Custom token retrieval logic
getAuthToken: () => {
return 'your-auth-token';
},
// Or override specific API endpoints
apis: {
getProject: 'https://custom-api.com/get-project',
},
});
LowcodeRendererThe main component for rendering low-code schemas.
| Prop | Type | Description |
| --- | --- | --- | --- |
| projectId | string | The project ID to load. |
| fileName | string | The specific page/component file name to render. |
| schema | IPublicTypeRootSchema | (Optional) Directly pass schema, overrides auto-loading. |
| components | Record<string, ComponentType> | (Optional) Custom or preloaded components. |
| appHelper | object | (Optional) Helper utilities. Will be merged with the internal default appHelper. |
| designMode | 'design' | 'live' | Rendering mode. |
react >= 18react-dom >= 18antd >= 5react-router-dom >= 6MIT
FAQs
A lightweight, powerful React renderer for Low-Code schemas, designed for high performance and SSR support. Built on top of `@alilc/lowcode-renderer-core` but optimized for modern React applications using Ant Design.
The npm package @appthen/react-renderer receives a total of 3 weekly downloads. As such, @appthen/react-renderer popularity was classified as not popular.
We found that @appthen/react-renderer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.