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

wok-server

v0.6.0

Published

一个基于 NodeJs 和 TypeScript 的后端框架,轻量级、克制、简洁。A lightweight, restrained, and concise backend framework based on Node.js and TypeScript.

Readme

English | 简体中文

Wok Server

npm version license TypeScript

一个基于 Node.js 和 TypeScript 的后端框架,轻量、克制、简洁。

功能概览

  • 基础设施 — 配置管理、日志、国际化、缓存
  • Web 层 — 路由、参数校验、MVC
  • 数据库 — MySQL、MongoDB
  • 其他 — 周期任务

为什么选择 Wok Server

  • 函数式为主,少量面向对象,学习成本低
  • 保持克制,不引入代理、装饰器等增强技术
  • 轻量封装,兼容第三方 HTTP 生态
  • 完整的类型定义,配合 IDE 智能补全,开发效率高
  • 注释即文档,方法及参数均有详细说明
  • 内置国际化支持,可扩展多语言

快速开始

npm i wok-server
import { startWebServer } from 'wok-server'

startWebServer({
  routers: {
    '/': async exchange => exchange.respondText('Hello world!')
  }
}).catch(e => {
  console.error('Start server failed', e)
})

启动后访问 http://localhost:8080 即可看到输出。

更多配置通过环境变量设置,详见完整文档

AI 技能安装

wok-server 提供了 AI 技能,安装后可以让 AI 编程助手更好地理解和使用 wok-server 组件。

npx skills add peaktai/wok-server --all

国内用户访问 github 速度慢,可以使用 gitee 仓库地址来安装。

npx skills add https://gitee.com/tai/wok-server.git --all

FAQ

为什么内置 MySQL 和 MongoDB 驱动?

mysql2 和 mongodb 驱动已直接集成,安装一个包即可使用,避免多个包的版本冲突和维护成本。对于后端应用,包体积的增加影响有限。

为什么 WebSocket、文件上传等功能需要自行引入?

这些功能基于 Node.js 原生 http 模块,天然兼容框架,无需专门适配。由用户按需引入第三方库,可以充分利用社区生态,同时减少框架的维护负担。