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

@ch0918/shipany-cli

v1.0.2

Published

CLI工具用于快速创建基于ShipAny模板的项目

Downloads

16

Readme

ShipAny CLI

一个用于快速创建基于 ShipAny 模板的 Next.js 项目的命令行工具。

安装

从npm安装(私有包)

# 需要先登录npm
npm login

# 全局安装
npm install -g @ch0918/shipany-cli

本地开发安装

cd /Users/chdj/my-project/shipany-cli
npm install
npm link

本地包安装

npm install -g /Users/chdj/my-project/shipany-cli

使用方法

创建新项目

# 交互式创建项目
shipany create

# 直接指定项目名称
shipany create my-awesome-project

查看模板信息

shipany info

查看帮助

shipany --help

功能特性

这个 CLI 工具将帮你创建一个包含以下特性的 Next.js 项目:

  • Next.js 15 + TypeScript
  • Tailwind CSS + Shadcn UI 组件
  • NextAuth 认证系统(支持 Google/GitHub)
  • Stripe 支付集成
  • 国际化支持(中英文)
  • AI 功能集成(支持多个 AI 服务商)
  • 管理后台
  • 用户控制台
  • 博客/文档系统
  • 数据库集成(Drizzle ORM + PostgreSQL)
  • 响应式设计
  • 深色/浅色主题

创建项目后的步骤

  1. 进入项目目录

    cd your-project-name
  2. 配置环境变量

    cp .env.example .env.development

    然后编辑 .env.development 文件,配置数据库、认证等信息。

  3. 启动开发服务器

    pnpm dev
  4. 数据库设置(如果需要)

    pnpm db:migrate

项目结构

创建的项目将包含以下主要目录:

your-project/
├── src/
│   ├── app/                # Next.js App Router
│   ├── components/         # React 组件
│   ├── lib/               # 工具函数
│   ├── types/             # TypeScript 类型
│   ├── i18n/              # 国际化文件
│   ├── db/                # 数据库配置
│   └── auth/              # 认证配置
├── public/                # 静态资源
├── CLAUDE.md             # Claude Code 指南
└── README.md             # 项目说明

自定义选项

CLI 工具支持以下自定义选项:

  • 自动检查并使用 pnpmnpm 安装依赖
  • 可选择是否立即安装依赖
  • 自动更新项目名称
  • 清理模板的 Git 历史

依赖项

  • Node.js >= 16.0.0
  • Git
  • pnpm 或 npm

开发

如果你想修改这个 CLI 工具:

git clone <this-repo>
cd shipany-cli
npm install
npm link

许可证

MIT License