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

@ddd-tool/domain-designer-core

v0.3.3

Published

领域设计器核心库

Readme

domain-designer-core

领域设计器核心库

关于 api 命名

  • 多个单词能表示同一个意思时,选择使用频次高的

  • 遵循 ts 命名规范,函数名尽量保持在 8 个字母内,保留前缀,对后缀进行缩写

  • 如果缩写后的名称有明显歧义,那么干脆就不缩写了

功能设计

  • [x] 提供一个 createDomainDesigner 函数,通过该函数能够实现用户在设计时的各种需求

    • [x] 内部提供可链式调用的函数
  • [x] 提供一个 checkDesigner 函数,用于辅助检查完备性

    • [x] 内置字符串相似性算法,用于辅助检查完备性

关于 LinkType

  • Association: 关联关系。默认实线连线,表示稳定的关系,从一个节点到下一个节点

  • Dependency: 依赖关系。虚线连线,表示弱依赖关系。

  • Aggregation: 聚合关系。空心菱形箭头连线,表示从部分组成整体(部分可单独存在)

  • Composition: 组合关系。实心菱形箭头连线,表示从部分组成整体(部分不可单独存在,没有整体就没有部分)

关于 wasm

  • 使用 rust 构建
cd wasm/

wasm-pack build

# -t, --target <TARGET> Sets the target environment. [possible values: bundler, nodejs, web, no-modules, deno] [default: bundler]