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

@awesome-markdown/contracts

v1.1.0

Published

Shared Zod v4 schemas, TypeScript interfaces, and HTTP/SSE wire DTOs for the awesome-markdown monorepo. Every cross-package boundary is typed through this package — no duplication.

Downloads

352

Readme

@awesome-markdown/contracts

Shared Zod v4 schemas, TypeScript interfaces, and HTTP/SSE wire DTOs for the awesome-markdown monorepo. Every cross-package boundary is typed through this package — no duplication.

Installation

This package is an internal workspace package. Add it as a dependency:

"@awesome-markdown/contracts": "workspace:*"

Contents

Domain Schemas

| Export | Description | |--------|-------------| | BoardSchema / Board | Board entity (id, slug, title, description, timestamps) | | ColumnSchema / Column | Column within a board (id, boardId, title, order, wipLimit) | | SwimlaneSchema / Swimlane | Swimlane within a board (id, boardId, title, order, color) | | ItemSchema / Item | Kanban card (id, boardId, columnId, swimlaneId, title, body, status, priority, tags, timestamps, dueDate, assignee, customFields) | | ItemPrioritySchema / ItemPriority | 'low' \| 'medium' \| 'high' \| 'urgent' |

Provider Interface

PersistenceProvider is a TypeScript interface (not a Zod schema) implemented by all storage backends:

interface PersistenceProvider {
  capabilities: ProviderCapabilities;          // { type: 'local' } | { type: 'http'; baseUrl: string }

  getBoard(id: string): Promise<Board | null>;
  listBoards(): Promise<Board[]>;
  createBoard(data: CreateBoardInput): Promise<Board>;
  updateBoard(id: string, data: UpdateBoardInput): Promise<Board>;
  deleteBoard(id: string): Promise<void>;

  // same pattern for Item, Column, Swimlane …

  subscribe(handler: ProviderEventHandler): Unsubscribe;
}

Sync-Engine Events

SyncEventSchema — discriminated union of four event shapes:

| type | Fields | Meaning | |------|--------|---------| | change | path, entityId | A file/entity was modified | | conflict | paths[], diffHunks[] | Git merge conflict detected | | synced | — | All commits pushed to remote | | offline | — | Remote unreachable |

HTTP/SSE Wire DTOs

Request/response Zod schemas for the local-fs sidecar REST API and SSE event envelope:

  • CreateBoardRequestSchema, UpdateBoardRequestSchema, BoardsListResponseSchema, …
  • SseEnvelopeSchema — raw SSE message; SsePayloadSchema — decoded SyncEvent payload

Usage Example

import { BoardSchema, type Board, type PersistenceProvider } from '@awesome-markdown/contracts';

const board: Board = BoardSchema.parse(rawData);

Rules

  • No runtime code beyond Zod schema definitions and TypeScript type aliases.
  • No any — use unknown for untyped extension points (customFields).
  • Single source of truth: all cross-package types derive from schemas here.