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

@soundweave/library

v1.0.2

Published

Templates, snapshots, branches, and favorites for SoundWeave

Readme

@soundweave/库

Soundweave 的模板、快照、分支、收藏夹、集合以及实体比较功能。

其功能范围

  • 模板的创建、实例化、过滤和搜索
  • 快照的创建、恢复和查询
  • 分支的创建、实例化以及溯源
  • 收藏夹的管理和实体书签
  • 集合的增删改查和解析
  • 实体比较和差异分析

主要导出内容

模板 (templates.ts)

  • createTemplate(id, name, kind, data, options?) — 创建可重用的模板
  • instantiateTemplate(template, newId) — 从模板生成新的实体数据
  • templatesOfKind / searchTemplates / templatesByTag

快照 (snapshots.ts)

  • takeSnapshot(id, label, entityId, entityKind, data, notes?) — 冻结实体状态
  • restoreSnapshot(snapshot) — 恢复实体数据
  • snapshotsForEntity / snapshotsOfKind / latestSnapshot / snapshotCounts

分支 (branches.ts)

  • createBranch(id, name, sourceSnapshot, newEntityId, notes?) — 从快照创建分支
  • instantiateBranch(snapshot, branch) — 从分支生成新的实体数据
  • branchesFromSnapshot / branchesOfKind / traceLineage / descendantBranches

收藏夹 (favorites.ts)

  • createFavorite(id, entityId, entityKind, notes?) — 标记一个实体
  • isFavorited(favorites, entityId) — 检查是否已标记
  • favoritesOfKind — 按实体类型过滤
  • createCollection / addToCollection / removeFromCollection / resolveCollection / searchCollections

比较 (compare.ts)

  • compareEntities(a, b, entityKind, labelA, labelB) — 逐字段比较
  • areEqual(a, b) — 结构相等性检查
  • diffCount(a, b) — 不同字段的数量
  • promoteVersion(a, b, choice) — 选择一个版本

不包含的功能

  • 实体持久化或存储
  • 用户界面组件
  • 播放或渲染

依赖项

  • @soundweave/schema — 模板、快照、分支、收藏夹、集合的类型定义