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

@broke_wire/crud

v2.0.0

Published

Reusable CRUD core runtime

Readme

@broke_wire/crud

@broke_wire/crud 是一个 core-only 的 CRUD 逻辑内核库。

导出入口

  1. @broke_wire/crud
  2. @broke_wire/crud/core

两者均导出核心能力。

核心能力

  1. 契约与版本握手:CORE_CONTRACT_VERSION、runVersionHandshake、assertVersionHandshake
  2. 三大控制器:createListController、createFormController、createActionController
  3. 内核装配:createCrudKernel
  4. 生命周期与事件总线:createLifecycleHub、createEventBus、runLifecycleProtocol
  5. 插件机制:createPluginHost
  6. Schema 与权限审计:createCrudSchemaPack 等
  7. 调试能力:createCrudDevtools
  8. 列状态持久化:createColumnStateManager 等
  9. 统一错误码:CRUD_REASON_CODES、createReasonError

最小接入示例

import { createCrudKernel } from '@broke_wire/crud'

const kernel = createCrudKernel({
  list: {
    fetchList: (payload) => api.queryList(payload),
  },
  form: {
    createApi: (payload) => api.create(payload),
    updateApi: (payload) => api.update(payload),
  },
  action: {
    deleteApi: (payload) => api.remove(payload),
  },
})

await kernel.listController.commands.loadList()

使用原则

  1. 核心只做行为流程,不做视觉和组件实现。
  2. 业务项目自行决定 UI 框架与样式规范。
  3. 复杂交互通过插件、Hook、Schema 扩展,不改核心内核。

参考文档

  1. ../../docs/02-architecture-overview.md
  2. ../../docs/03-core-contract-v1.md
  3. ../../docs/13-version-handshake-v1.md
  4. ../../docs/19-error-code-reference-v1.md