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-template-nestjs-react-fullstack

v0.1.10

Published

NestJS + React fullstack template for miaoda coding

Downloads

2,249

Readme

@lark-apaas/coding-template-nestjs-react-fullstack

妙搭 (Miaoda) NestJS + React 全栈应用模板。archType: 3(application scene)。

用法

通过 miaoda app init 渲染:

MIAODA_APP_TYPE=3 npx @lark-apaas/miaoda-cli@<latest> app init \
  --template nestjs-react-fullstack \
  --app-id app_xxx

本地开发(npm run dev:local

依赖 SDK 自带的 dotenv 加载(@lark-apaas/fullstack-{vite-preset,nestjs-core} ≥ 对应 alpha 版本)。在新生成的应用目录里:

  1. .env.local(从 _env.local 模板渲染而来,注释里写了每个 env 的获取方式)
  2. npm run dev:local

关键 env:

  • MIAODA_LOCAL_DEV=1 —— 由 scripts/dev-local.sh 自动 export
  • FORCE_AUTHN_PREVIEW_SESSION_ID —— 后端下发的 session id(替代浏览器手抠 cookie)
  • SUDA_WEBUSER —— webuser JSON
  • SANDBOX_PUBLIC_URL —— 沙箱公网域
  • CLIENT_BASE_PATH=/app/<app_id>/ —— React Router basename + Vite base

包结构

.
├── package.json          ← 本模板包的发包元数据
├── hooks/                ← miaoda-cli 在 init 阶段调用的 hook(v0.1 全 no-op)
└── template/             ← 渲染到用户应用目录的内容

template/ 内以下划线开头的占位文件(_gitignore / _npmrc / _env.local)在 miaoda app init 渲染时会按 RENAME 映射改回正常名(npm pack 会特殊处理 .gitignore、且 .npmrc 直接放 在包里会污染用户 npm install 行为,所以都要 underscore 前缀)。