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-dev-to

v1.7.2

Published

快速创建集成 `@dev-to/react-plugin` 的前端项目脚手架。 Release test marker: create-dev-to ci.

Readme

create-dev-to

快速创建集成 @dev-to/react-plugin 的前端项目脚手架。 Release test marker: create-dev-to ci.

特性

  • 🎯 多框架支持 - 支持 React/Vue(其他框架即将推出)
  • 美观的安装体验 - 分阶段进度显示、渐变色、实时统计
  • 🚀 自动配置 - 自动注入 @dev-to/react-plugin 到项目
  • 🎨 丰富的模板 - TypeScript、JavaScript、SWC 等多种选择
  • 📦 包管理器无关 - 支持 pnpm、npm、yarn、bun

使用方法

方式一:使用 create 命令(推荐)

# 使用 pnpm
pnpm create dev-to

# 使用 npm
npm create dev-to

# 使用 yarn
yarn create dev-to

# 使用 bun
bun create dev-to

方式二:直接使用 npx/dlx

# 使用 pnpm
pnpm dlx create-dev-to

# 使用 npm
npx create-dev-to

# 使用 yarn
yarn dlx create-dev-to

# 使用 bun
bunx create-dev-to

交互式创建流程

运行命令后,你将看到:

  1. 📝 项目名称 - 输入你的项目名称
  2. 📦 包管理器 - 选择 pnpm、npm、yarn 或 bun
  3. 🎯 框架选择 - 选择 React/Vue(其他框架即将支持)
  4. 🎨 模板变体 - 选择 TypeScript、JavaScript、SWC 等
  5. ⚡ Rolldown - 选择是否使用实验性的 Rolldown 打包器
  6. ✨ 自动安装 - 美观的进度显示和实时统计

支持的框架

| 框架 | 状态 | |------|------| | React | ✅ 已支持 | | Vue | ✅ 已支持 | | Svelte | 🚧 即将推出 | | Solid | 🚧 即将推出 | | Preact | 🚧 即将推出 | | Lit | 🚧 即将推出 | | Qwik | 🚧 即将推出 | | Vanilla | 🚧 即将推出 |

React 模板

当选择 React 框架时,你可以选择:

  • TypeScript - 使用 TypeScript 的 React 项目
  • TypeScript + SWC - 使用 SWC 编译的 TypeScript React 项目(更快的构建速度)
  • JavaScript - 使用 JavaScript 的 React 项目
  • JavaScript + SWC - 使用 SWC 编译的 JavaScript React 项目

创建完成后会自动在 vite.config.* 中注入 @dev-to/react-plugindevToReactPlugin()),并在 package.json 中加入 build:libdev-to build,等价于 vite build --mode lib)。

Vue 模板

当选择 Vue 框架时,你可以选择:

  • TypeScript - 使用 TypeScript 的 Vue 项目
  • JavaScript - 使用 JavaScript 的 Vue 项目

创建完成后会自动在 vite.config.* 中注入 @dev-to/vue-plugindevToVuePlugin())。

安装进度展示

我们重新设计了依赖安装体验,提供:

  • 📊 三阶段进度 - 解析(🔍)、下载(⬇️)、安装(📦)
  • 🌈 渐变色进度条 - 美观的视觉反馈
  • 📈 实时统计 - 包数量、耗时、下载速度
  • 💾 磁盘占用 - 显示 node_modules 大小
  • 🎨 自动降级 - 在 CI/CD 环境自动使用简化输出

环境变量

你可以通过环境变量自定义行为:

# 禁用美观的日志输出
INSTALL_LOGGER=false pnpm create dev-to

# 使用简化的日志样式
INSTALL_LOGGER_STYLE=simple pnpm create dev-to

示例

$ pnpm create dev-to

┌  create-dev-to
│
◆  Project name:
│  my-awesome-app
│
◆  Select a package manager:
│  ● pnpm
│
◆  Select a framework:
│  ● React
│  ○ Vue
│  ○ Svelte (Coming soon)
│
◆  Select a variant:
│  ● TypeScript
│
◆  Use Rolldown for bundling? (Experimental)
│  No
│
◆  Installing Dependencies
│
│  🔍 ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ Resolving packages   100%
│  ⬇️  ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ Downloading          100%
│  📦 ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ Installing           100%
│
│  Packages: +245  Time: 8.5s  Speed: 2.5 MB/s
│
✨  Installation Complete!
│
│  Packages: +245 added
│  Duration: 8.5s
│  Avg Speed: 2.5 MB/s
│  Disk Usage: 142.8 MB
│
└  Done

License

MIT