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

@prata.ma/anvil-schema

v3.1.0

Published

Shared schema parsing and authored schema package for Anvil workspaces.

Downloads

465

Readme

@prata.ma/anvil-schema

Shared schema package for Anvil workspaces.

Overview

@prata.ma/anvil-schema owns shared schema parsing utilities plus the shared runtime schema contracts consumed across published packages. It exists to stop parser and runtime-schema ownership from fragmenting across catalog blocks, individual consumer packages, and Hub-side target adapters.

The package owns the shared *.schema.yaml parser, manifest schemas, the runtime-facing Zod schemas still consumed across packages, and shared AI metadata helpers. Block-owned authored YAML sidecars and doctrine-only schemas may live with their owning catalog blocks when they no longer serve as shared package contracts.

Installation

Install from npm or consume it through a workspace dependency while developing inside this monorepo.

npm

pnpm add @prata.ma/anvil-schema

Workspace

{
  "dependencies": {
    "@prata.ma/anvil-schema": "workspace:*"
  }
}

Layout

  • src/format/ - shared schema-format parser and types for *.schema.yaml
  • src/schemas/ - shared runtime and manifest schema folders
  • src/schemas/{domain}/{artifact}/ - per-artifact folders where shared runtime schemas, variants, and supporting files live together
  • test/ - package tests for shared schema parsing and validation behavior

Conventions

  • Keep one artifact folder per shared schema concern, for example src/schemas/manifest/anvil/
  • Colocate shared runtime schemas, variants, and supporting schemas in the same artifact folder
  • Use artifacts/ in framework docs for artifact specification, but keep block-owned authored YAML sidecars with the owning catalog block when they are no longer shared package inputs
  • Treat this package as the shared schema source for consumers such as @prata.ma/anvil-eslint, @prata.ma/anvil, @prata.ma/anvil-ai, and later @prata.ma/anvil-hub
  • Prefer shared exported constants when multiple consumers need the same durable contract, such as the AI rule-budget limits and prohibited constructs

Surface

  • src/format/template-schema.ts supports parser-level artifact constraints such as maxChars, maxLines, maxTokens, and prohibited markdown constructs
  • src/schemas/ai/managed.ts exports the shared managed deployment marker contract used across reparsed deployable artifacts
  • src/schemas/ai/agent/agent.ts owns the one-file markdown agent frontmatter contract used by sync-owned agent deployment

Development

pnpm --filter @prata.ma/anvil-schema release:check
pnpm --filter @prata.ma/anvil-schema build
pnpm --filter @prata.ma/anvil-schema lint
pnpm --filter @prata.ma/anvil-schema test
pnpm --filter @prata.ma/anvil-schema test:type

Notes

  • @prata.ma/anvil-schema now participates in the repo's Changesets, npm publish, and GitHub Release automation.
  • The package remains the shared parser and runtime-schema source for @prata.ma/anvil, @prata.ma/anvil-eslint, @prata.ma/anvil-ai, and @prata.ma/anvil-hub.