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

create-operations-app

v1.0.0

Published

Create a new operations app with Next.js, TypeScript, and Material-UI

Readme

create-operations-app

快速创建一个基于 Next.js 的运营管理应用模板。

特性

  • ⚡ Next.js 15 with App Router
  • 🎨 Material-UI (MUI) 组件库
  • 🌐 内置国际化支持 (i18n)
  • 📱 响应式设计
  • 🔧 TypeScript 支持
  • 📦 静态导出就绪
  • 🎯 ESLint 和 Prettier 配置

使用方法

# 使用 npx (推荐)
npx create-operations-app my-app

# 或者使用 npm
npm create operations-app my-app

# 或者使用 yarn
yarn create operations-app my-app

# 或者使用 pnpm
pnpm create operations-app my-app

然后进入项目目录并启动开发服务器:

cd my-app
npm install
npm run dev

项目结构

my-app/
├── src/
│   ├── app/                 # Next.js App Router
│   ├── components/          # 可复用组件
│   ├── contexts/           # React 上下文
│   └── i18n/              # 国际化配置
│       ├── locales/       # 翻译文件
│       └── config-lang.ts # 语言配置
├── public/                 # 静态资源
├── package.json
├── next.config.ts
└── tsconfig.json

可用脚本

  • npm run dev - 启动开发服务器
  • npm run build - 构建生产版本
  • npm run start - 启动生产服务器
  • npm run lint - 运行代码检查

自定义

您可以通过修改以下文件来自定义应用:

  • src/i18n/locales/ - 添加或修改翻译
  • src/components/ - 更新 UI 组件
  • src/app/ - 修改页面和布局

许可证

MIT

发布到 npm 的完整流程:

1. 准备发布

cd /Users/zhangshun/Documents/BoQuan/create-operations-page/create-operations-app

# 运行准备脚本
npm run prepare

# 确保没有语法错误
node index.js --help

2. 检查包名是否可用

npm view create-operations-app

如果返回 404 错误,说明包名可用。

3. 登录 npm

npm login

4. 发布到 npm

# 首次发布
npm publish

# 如果是作用域包(可选)
npm publish --access public

5. 验证发布

# 测试安装
npx create-operations-app test-app

6. 后续更新

每次更新时:

# 更新版本号
npm version patch  # 或 minor, major

# 重新发布
npm publish

测试本地版本

在发布前,您可以本地测试:

# 在 create-operations-app 目录中
npm link

# 在其他目录测试
npx create-operations-app test-project

您的包结构看起来很好!主要修正了命名不一致的问题和准备脚本。现在可以安全地发布到 npm 了。