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

@vcp-dev/contracts

v0.10.20

Published

VCP 对外共享的 TypeScript 合同包,承载站点编辑、render document、patch plan、Agent / Workspace 相关 schema 与事件类型。

Readme

@vcp-dev/contracts

VCP 对外共享的 TypeScript 合同包,承载站点编辑、render document、patch plan、Agent / Workspace 相关 schema 与事件类型。

环境要求

  • Node.js >=24

安装

npm install @vcp-dev/contracts

适用场景

  • 校验 site edit operation / patch plan 输入输出
  • 复用 site edit runtime fallback 标签集合与能力 fallback helper
  • 复用 site_id、snapshot_id、tenant_id 等稳定边界字段
  • 复用 FORM_SPEC、表单模板、CMS 字段投影、canonical hash 与保存 operation 合同
  • 在服务端、工具链或外部集成中共享 Zod schema 与推导类型

示例

import {
  SiteEditOperationRequestSchema,
  type SiteEditOperationRequest,
} from "@vcp-dev/contracts";

const request: SiteEditOperationRequest = SiteEditOperationRequestSchema.parse({
  id: "op_123",
  siteId: "018f6f4d-a9b8-7401-8401-0123456789ab",
  baseSnapshotId: "018f6f4d-a9b8-7402-8402-0123456789ab",
  kind: "update-text",
  target: { kind: "node", key: "hero-title" },
  documentVersion: 3,
  params: { kind: "update-text", segmentIndex: 0, value: "Hello VCP" },
});

非目标

@vcp-dev/contracts 只提供合同、schema 与共享类型,不负责:

  • 执行源码编辑
  • 管理 snapshot 持久化
  • 启动 preview / sandbox
  • 触发站点发布