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

bluej_cli_koa2

v0.1.3

Published

蓝景脚手架工具

Readme

蓝景脚手架

koa2 是一个非常简洁的基于 nodejsweb 框架,但他的"简洁"甚至有点"简陋",很多 web 框架需要的最基本功能都没有实现,例如路由/session等. 基于此情况,我公司(广州蓝景)基于 koa2 开发了自己的脚手架,集成了常用 web 开发功能,快速建立中后端环境.具体功能如下:

功能

  1. 清晰的 MVC 结构层次
  2. 自动路由合并,不用修改主路由配置情况下,快速建立子路由
  3. controller 层构造函数进行改造,继承 Base 基类后,稳定 this 指向(this 始终指向当前控制器对象实例),结合 router 实现 __before 前置执行功能(在任意路由调用前先执行 __before 方法).
  4. 可选择的数据库.MySQLMongoDB 数据库的 ORM 框架使用分别为 sequelizemongoose.
  5. 利用 koa-body 实现 post 表单和文件上传.
  6. 利用 koa-cors 实现跨域请求白名单.
  7. 利用 koa-jsonp 实现开发 jsonp 接口 API.
  8. 利用 koa-jwt 实现前后端分离接口时 token 令牌的生成与核验.
  9. 利用 koa-static 实现静态服务.
  10. 利用 svg-captcha 实现验证的生成与核验.
  11. 利用 tracer 实现日志的按日记录.
  12. 利用 koa-session 实现 session 功能.
  13. 利用 koa-art-template 实现 art-template 模板引擎功能.
  14. 利用 koa-onerror 将错误信息输出到页面.
  15. 自定义 missPage 中间件,监听 404/403 页面.
  16. 内置基于 layui 的后台模板.
  17. 利用 pm2 实现进程守卫.
  18. 其他功能

使用方法

下载框架主体

npm i bluej_cli_koa2 -g
bluejKoa2 init 或则 bluejKoa2 i

依赖安装完成以后,进入项目文件夹,执行

npm run dev
或则
npm run pro

生成路由

...