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

@lark-apaas/coding-templates

v0.1.43

Published

OpenClaw project templates for mclaw CLI

Readme

@lark-apaas/coding-templates

OpenClaw 项目模板包,供 mclaw CLI 使用。

模板列表

| 模板 | 目录 | 类型 | 说明 | |---|---|---|---| | html | template-html/ | 纯前端 | 纯 HTML,零依赖,原型验证 | | vite-react | template-vite-react/ | 纯前端 | Vite + React 19 + Tailwind CSS + shadcn/ui | | apex | template-apex/ | 全栈 | Vite + React + Express + Drizzle + PostgreSQL |

包结构

coding-templates/
├── package.json
├── meta.json                     # 模板元数据
├── template-html/
├── template-vite-react/
└── template-apex/
    ├── client/                   # 前端(Vite + React)
    │   ├── index.html
    │   └── src/
    ├── server/                   # 后端(Express + Drizzle)
    │   ├── index.ts
    │   ├── db/
    │   └── routes/
    ├── shared/                   # 前后端共享类型和 API 契约
    ├── scripts/build.sh          # 构建脚本
    ├── tsconfig.server.json      # 服务端 CJS 编译配置
    └── vite.config.ts

特殊文件命名

npm publish 会忽略 .gitignore.env*,因此模板中使用 _ 前缀:

| 模板中的文件名 | CLI 复制后的文件名 | |---|---| | _gitignore | .gitignore | | _env.local | .env.local |

模板元数据

每个模板的 package.json 包含 mclaw 字段:

{
  "mclaw": {
    "stack": "apex",
    "stackVersion": "0.1.0",
    "features": ["client", "server"]
  }
}

| 字段 | 说明 | |---|---| | stack | 技术栈标识 | | stackVersion | 模板版本 | | features | 应用能力,init 时自动推导 archType |

技术栈

apex(全栈)

  • 前端: Vite 8 + React 19 + TypeScript 5.9 + Tailwind CSS 4 + shadcn/ui
  • 后端: Express 5 + Drizzle ORM + PostgreSQL
  • 平台集成: @lark-apaas/express-core(用户上下文、CSRF、RLS、viewContext)
  • 开发: Vite middleware mode 集成到 Express,单进程 HMR
  • 构建: 前端 Vite build,服务端 tsc CJS 输出
  • 部署: server.zip(服务端 + 裁剪 node_modules + run.sh)→ FaaS

vite-react(纯前端)

  • Vite 8 + React 19 + TypeScript 5 + Tailwind CSS 4 + shadcn/ui
  • ESLint 9 flat config + react-router-dom

html(纯前端)

  • 纯 HTML + Tailwind CDN,零构建依赖

发版

cd packages/openclaw/coding-templates
npm version patch
npm publish