orm-weapp is an ORM framework for WeChat Mini Programs using Tencent CloudBase (TCB) and MongoDB. Current version 1.1.6, released under MIT license. It provides a Model layer abstraction over the cloud database, supporting schema validation, CRUD operations, and query building. Key differentiators: designed specifically for WeChat Mini Programs with cloud development, lightweight and minimal dependencies, uses a clean ActiveRecord-like pattern. Compared to alternatives like wx-server-sdk, it offers higher-level abstractions and validation.
npm install orm-weappNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows defining a User model with schema, creating a record, and querying with a filter.
Replace MyModel.init({...}) with new Model('name', {...})Use model.db instead of Model.collection()
Upgrade to >=1.2.0 or manually validate nested fields.
Run npm install orm-weapp and ensure ESM import syntax.
Use import { Model } from 'orm-weapp'.Use one of the supported types; do not use custom constructors.
No dependency data recorded yet.