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

@rchh/lowcode-code-generator

v1.1.9

Published

Code generation engine for LowCode Engine

Readme

Code generation

Code generation parses a low-code schema and converts it into executable application code. This module ships Icejs and Rax solutions, plus a flexible extension mechanism.

Usage

1) Try quickly via CLI

npx @rchh/lowcode-code-generator -i example-schema.json -o generated -s icejs

You can download example-schema.json from here.

2) Try quickly via designer plugin

  1. Install: npm install --save @alilc/lowcode-plugin-code-generator
  2. Register the plugin:
import { plugins } from '@rchh/lowcode-engine';
import CodeGenPlugin from '@alilc/lowcode-plugin-code-generator';

// In your init function:
await plugins.register(CodeGenPlugin);

// If you do not want the codegen button added automatically:
await plugins.register(CodeGenPlugin, { disableCodeGenActionBtn: true });

Then run your low-code editor — a Codegen button appears in the designer toolbar. Click it to generate and preview in the browser.

3) Server-side codegen

This generator was designed for Node.js. Use it like this:

  1. Install: npm install --save @rchh/lowcode-code-generator
  2. Import:
import CodeGenerator from '@rchh/lowcode-code-generator';
  1. Create a project builder:
const projectBuilder = CodeGenerator.solutions.icejs();
  1. Generate code:
const project = await projectBuilder.generateProject(
  schema, // schema produced by the designer
);
  1. Write output to disk (or a zip):
// Write to disk
await CodeGenerator.publishers.disk().publish({
  project, // from the previous step
  outputPath: '/path/to/your/output/dir',
  projectSlug: 'your-project-slug',
});

// Write a zip
await CodeGenerator.publishers.zip().publish({
  project,
  outputPath: '/path/to/your/output/dir',
  projectSlug: 'your-project-slug', // produces your-project-slug.zip
});

Note: server-side codegen often pairs with GitHub/GitLab, CI, and CD for performance.

4) Browser-side codegen

With modern browsers and Web Workers, codegen can run in the browser:

  1. Install: npm install --save @rchh/lowcode-code-generator
  2. Import:
import * as CodeGenerator from '@rchh/lowcode-code-generator/standalone-loader';
  1. (Optional) warm up the generator:
// Init early so later calls are faster (prepares worker resources)
await CodeGenerator.init();
  1. Generate:
const project = await CodeGenerator.generateCode({
  solution: 'icejs', // built-in: icejs | rax
  schema, // designer schema
});

console.log(project); // recursive by default; pass flattenResult: true for a flat result

Note: browser codegen is a good fit for instant preview.

  1. Download a zip:
await CodeGenerator.publishers.zip().publish({
  project,
  projectSlug: 'your-project-slug', // downloads your-project-slug.zip
});

5) Custom codegen

Frontend frameworks vary, so built-in solutions may not fit every case. This generator supports plugins — see ./src/plugins/xxx for examples, then compose them in ./src/solutions/xxx into a solution for your product.

Contributing

See ./CONTRIBUTING.md.