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

@cmtlyt/create-origin

v0.2.1

Published

一个用于创建 **项目** / **npm** 包的命令行工具

Readme

起源命令行

一个用于创建 项目 / npm 包的命令行工具

添加框架流程

  1. 补充解析插件信息 (src/constant/plugin-map.ts)
  2. 补充导入插件语句 (src/constant/import-expression.ts)
  3. 调整 tsconfig (template-source/other-config/tsconfig.ts)
  4. 调整 env (template-source/other/${builder}-env.d.ts)
  5. 添加框架支持 (src/constant/frame-support.ts)

使用示例

# 创建项目
npm create @cmtlyt/origin [<project-name>]
# 创建 npm 包
npm create @cmtlyt/origin <package-name> --package

# 下列方法需要全局安装本 npm 包才支持

# 创建项目 (等价于 npm create @cmtlyt/origin)
origin create [<project-name>]
# 创建 npm 包 (等价于 npm create @cmtlyt/origin <package-name> --package)
origin create <package-name> --package
# 获取配置
origin fetch --config
# 获取模板
origin fetch --template
# 获取所有
origin fetch --all
# 从 github 获取所有
origin fetch --all --registry=github

安装

npm

npm i -g @cmtlyt/create-origin

yarn

yarn global add @cmtlyt/create-origin

pnpm

pnpm add -g @cmtlyt/create-origin

更新

v0.2.0

安装本包后

新增 fetch , templatecreate 命令

fetch 用于持久化远端配置到本地, 减少创建项目时下载资源的时间

template 用于管理自定义配置, 包含 创建/删除/查看/清空 配置

create 用于创建项目

v0.1.1

添加更多进度

v0.1.0

支持生成 npm 包

支持生成 vite, rsbuild 两个构建器所支持的框架包括: vue, react, preact, svelte, solid