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

genesis-tools

v0.2.2

Published

auto generate business structure

Readme

genesis-tools

辅助工具,构建以 vue vue-router vuex 为基础的项目骨架,通过配置自动生成页面目录

npm i genesis-tools

配置文件 genesis.json, 需要新建此目录并配置如下:

{
    "name": "genesis", // 工程名字:optional
    "sourceFolder": "src", // 代码目录: required
    "moduleFolder": "modules", // 模块存储位置: 默认为src/modules required
    "store": "store.js", // store配置的目录: 工程名字:optional 默认为 src/store.js
    "router": "router.js", // router配置的目录 optional 默认为 src/router.js
    "hardCopyBase": false, // 是否需要硬拷贝所有base文件:optional
    "update": true, // 是否需要更新配置文件
    "modules": [{ // 业务模块:required
        "name": "school",  // 业务名称:required
        "update": false, // 是否强制更新为初始化内容:optional
        "apis": { // apis配置:required
            "list": "school/list", // 列表API:required
            "detail": "school/detail", // 详情API:required
            "edit": "school/detail", // 创建和编辑API:required
            "delete": "school" // 删除功能的API:required
        }
    }, {
        "name": "students",
        "update": false,
        "apis": {
            "list": "students/list",
            "get": "students/detail",
            "edit": "students/detail",
            "delete": "students"
        }
    }]
}

注意 modules 是你需要创建的模块,具体用法参见项目 genesis

TODO:

  1. 传递参数放入 url request 中 -- get list detail done
  2. axios 的全局拦截,异常处理,及配置默认的错误页面
  3. 建立 global 的 store 数据模型,及预加载还是懒加载模式