Skip to main content

What is MorJS?

MorJS (pronounced /mɔːr/, like “more”) is an extensible cross-platform mini-program development framework built by Ele.me. Write your mini-program once using either WeChat or Alipay DSL, and MorJS compiles it to run natively on any supported platform.

Quick Start

Install MorJS and build your first cross-platform mini-program in minutes.

Architecture

Learn how MorJS’s plugin system and compiler pipeline work together.

Compile Targets

See all supported platforms: WeChat, Alipay, Baidu, ByteDance, Web, and more.

API Reference

Full CLI, configuration, and runtime API documentation.

Key features

Multi-platform

Compile one codebase to WeChat, Alipay, Baidu, ByteDance, QQ, Kuaishou, Taobao, DingTalk mini-programs, and Web.

Native DSL

Use standard WeChat or Alipay mini-program DSL — no new language or framework to learn.

Plugin system

Full lifecycle hooks from source to output. Extend any phase with custom plugins.

Bundle & transform modes

Choose between bundle mode (full npm resolution) or transform mode (source-only conversion).

Runtime normalization

Compile-time and runtime diffing smooths over platform differences for a consistent user experience.

TypeScript & more

First-class support for TypeScript, Less, SCSS, JSONC, and JSON5 file types.

Supported platforms

MorJS can compile your mini-program source to any of these targets:
TargetPlatformDescription
wechatWeChat微信小程序
alipayAlipay支付宝小程序
baiduBaidu百度智能小程序
bytedanceByteDance字节跳动小程序 (Douyin)
qqQQQQ 小程序
kuaishouKuaishou快手小程序
taobaoTaobao淘宝小程序
dingdingDingTalk钉钉小程序
webWebH5 Web application

Get started in minutes

1

Install the CLI

npm install -g @morjs/cli
2

Create a new project

mor create my-app
3

Compile to your target platform

mor compile --target wechat

Read the full getting started guide →

Covers installation, project structure, configuration, and your first compile.

Build docs developers (and LLMs) love