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

@pylonts/dsl

v1.1.22

Published

Schema definition DSL with drivers: MySQL DDL, TS enum, TypeBox schema codegen.

Readme

@pylonts/dsl

Schema 定义与产物生成分离的 DSL 系统:先写 DSL 元数据(表 / DTO / 原型 / 项目 / 词典),再由 driver 翻译成目标产物(SQL、TS 枚举、TypeBox 源码)。

分层结构

从概要设计到详细设计的自顶向下链路:

concepts(概念:名词 + 名词解释——先于一切存在的名字层)
  → project(地图:应用与 API 拓扑)
    → dictionary(词典:词根与字段命名标准,概念派生)
      → prototype(概要设计:页面与字段)
        → table / dto(详细设计)
          → driver 生成产物(SQL / 枚举 / TypeBox)

文档

  • concepts.md — 概念层(名词 + 名词解释,蓝图的名字层;设计草案)
  • project.md — 项目拓扑(地图)
  • dictionary.md — 短语词典(命名标准)
  • prototype.md — 页面原型(概要设计)
  • table.md — 定义表(详细设计)
  • dto.md — 定义 DTO
  • curd.md — 管理端 CRUD 页面标准(CurdSchema)
  • task.md — 系统任务(TaskSchema:scheduled 定时 / async 异步,action 闭包成员)
  • utils.md — 工具模块与领域规则(UtilsSchema:防御 guard / 判断 / 计算)
  • aggregate.md — 聚合/仓储 DSL 扩展规划(声明层已落地:DomainAggregate/RepositorySchema + 存储校验,生成器待选型)
  • domain-event.md — 领域事件 DSL 扩展规划(声明层已落地:DomainEventSchema + event_schema 存储校验,发布/订阅待实现)
  • ddd-principles.md — DDD 落地原则(已决策)
  • trans-reentrant.md — @Trans 可重入改造(已实现)
  • enum.md — 定义枚举
  • driver.md — driver 模式与产物生成
  • mysql-connection.md — MySQL 连接说明