npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@appthen/react-renderer

v0.1.0

Published

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.

Downloads

112

Readme

@appthen/react-renderer

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.

Features

  • 🚀 High Performance: Optimized rendering engine for complex low-code pages.
  • ⚛️ React 18 & SSR Ready: Fully supports Server-Side Rendering (SSR) and React 18 concurrent features.
  • 🎨 Ant Design Integration: Native support for Ant Design components (ConfigProvider integration).
  • 📦 Lightweight: Removed heavy dependencies like @alifd/next, focusing on a modern stack.
  • 🔌 Extensible: Easy to inject custom components and utilities.

Installation

npm install @appthen/react-renderer
# or
pnpm add @appthen/react-renderer
# or
yarn add @appthen/react-renderer

Usage

Basic Usage (Recommended)

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
        },
      }}
    />
  );
};

Advanced Usage (Custom Schema)

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} />;
};

Server-Side Rendering (SSR)

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}
  />,
);

Configuration

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',
  },
});

APIs

LowcodeRenderer

The 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. |

Dependencies

  • Peer Dependencies:
    • react >= 18
    • react-dom >= 18
    • antd >= 5
    • react-router-dom >= 6

License

MIT