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

aimsn-frontend-scaffold

v1.0.1

Published

前端项目脚手架,支持Vue3和React,多种UI框架和单元测试

Readme

前端项目脚手架

一个功能丰富的命令行工具,用于快速创建现代化前端项目。支持 React 和 Vue 3,并提供多种 UI 框架和功能选项。

特性

  • 🚀 支持 React 和 Vue 3 框架
  • 🎨 集成多种 UI 框架(Ant Design、Chakra UI、Element Plus 等)
  • 📦 TypeScript/JavaScript 双语言支持
  • 🔧 内置 ESLint + Prettier 代码规范
  • 🌐 Axios 请求封装
  • 🔐 完整的认证系统
  • 🧪 单元测试支持(Jest、React Testing Library、Vitest)
  • 🌍 国际化支持(可选)
  • 📱 响应式布局
  • 🎭 暗黑模式支持

安装

npm install -g aimsn-frontend-scaffold
# 或
yarn global add aimsn-frontend-scaffold

使用方法

创建一个新项目:

aimsn-frontend-scaffold my-app

或者直接运行,然后按照提示操作:

aimsn-frontend-scaffold

可用选项

创建项目时,脚手架将引导您完成以下选择:

  1. 项目名称:为您的项目命名
  2. 前端框架:选择 React 或 Vue 3
  3. 开发语言:选择 TypeScript 或 JavaScript
  4. UI 框架
    • React: Ant Design、Chakra UI 或不使用 UI 框架
    • Vue 3: Element Plus、Ant Design Vue 或不使用 UI 框架
  5. 单元测试:选择适合您框架的测试工具
  6. 其他功能:ESLint + Prettier、Axios 请求封装、国际化支持等

项目结构

生成的项目具有以下结构:

├── public/              # 静态资源目录
├── src/                 # 源代码目录
│   ├── api/             # API 请求模块
│   ├── assets/          # 资源文件
│   ├── components/      # 公共组件
│   │   ├── common/      # 通用组件
│   │   └── layout/      # 布局组件
│   ├── context/         # React Context(仅 React)
│   ├── hooks/           # 自定义 Hooks
│   ├── layouts/         # 布局文件
│   ├── pages/           # 页面组件
│   │   ├── login/       # 登录页面
│   │   └── dashboard/   # 仪表盘页面
│   ├── routes/          # 路由配置
│   ├── services/        # 服务层(API 封装)
│   ├── store/           # 状态管理
│   ├── utils/           # 工具函数
│   └── App.[tsx|jsx]    # 根组件
├── .eslintrc.js         # ESLint 配置
├── .prettierrc          # Prettier 配置
├── package.json         # 项目依赖
└── README.md            # 项目说明

内置功能

认证系统

脚手架生成的项目包含完整的认证系统,包括:

  • 登录/注销流程
  • 令牌管理
  • 路由保护
  • 用户信息管理

API 请求封装

基于 Axios 的请求封装,包括:

  • 请求/响应拦截器
  • 统一错误处理
  • 令牌自动附加
  • 请求取消支持

主题切换

支持亮色/暗色主题切换,使用 Context API(React)或 Provide/Inject(Vue)实现。

自定义

生成项目后,您可以根据需要自由修改和扩展。脚手架提供的是一个起点,而不是限制。

贡献

欢迎贡献代码、报告问题或提出改进建议!

  1. Fork 本仓库
  2. 创建您的特性分支 (git checkout -b feature/amazing-feature)
  3. 提交您的更改 (git commit -m 'Add some amazing feature')
  4. 推送到分支 (git push origin feature/amazing-feature)
  5. 打开一个 Pull Request

许可证

MIT