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

@uwmd/core

v2.13.0

Published

Reference implementation of the UW Markdown standard — parser, validator, renderer, and CLI for .uw.md underwriting files.

Readme

@uwmd/core

Reference TypeScript implementation of the UW Markdown (.uw.md) underwriting standard.

Install

npm install @uwmd/core

Basic use

import { parseUWFile, validateUWFile, render } from '@uwmd/core';

const parsed = parseUWFile(source);
const validation = validateUWFile(parsed);
const summary = render(parsed, { format: 'summary' });

Browser-safe exports are available from @uwmd/core/browser. The pdf and docx core render targets throw UnsupportedRenderFormatError; use @uwmd/report for PDF generation.

Specification, examples, and conformance fixtures: github.com/UWMD-OSP/UW-Markdown.

Machine interchange

UW Document Envelope 1.0 is the shared model behind deterministic UW JSON 1.0, UW XML 1.0, and normalized UW CSV Bundle 1.0. All three preserve provenance, prose, extensions, arrays, and superseded history and verify the same semantic SHA-256 digest.

import {
  CORE_CODEC_REGISTRY,
  parseUWFile,
  parseUWXmlVerified,
  stringifyUWXml,
  encodeUWCSVZip,
  toUWEnvelope,
} from '@uwmd/core';

const envelope = toUWEnvelope(parseUWFile(markdown));
const xml = await stringifyUWXml(envelope);
const verified = await parseUWXmlVerified(xml);
const csvZip = await encodeUWCSVZip(verified);
const json = await CORE_CODEC_REGISTRY.encode<string>('uw-json', verified);

See the UW XML Mapping 1.0 and UW CSV Bundle 1.0 specifications.

HTTP and MCP bindings

The optional transport helpers preserve the same registry and semantic digest:

import {
  createUWHTTPResponse,
  createUWMCPGetDocumentResult,
  createUWMCPResource,
} from '@uwmd/core';

const http = await createUWHTTPResponse(envelope, {
  accept: 'application/vnd.uwmd.document+xml',
  ifNoneMatch: request.headers.get('if-none-match') ?? undefined,
});
const toolResult = await createUWMCPGetDocumentResult(envelope, dealId, {
  representation: 'uw-json',
});
const resource = await createUWMCPResource(envelope, dealId, {
  representation: 'uw-json',
});

Tool results contain compact structuredContent plus JSON text fallback and a resource link. Complete JSON/XML, CSV views, and binary CSV ZIP bytes are read through resources. See HTTP Binding 1.0 and MCP Binding 1.0.

Explicit lease-up cash-flow projection (2.8.0)

await projectLeaseUpCashFlows(parsed, plan) copies verified stated lease-up amounts into a dated candidate stream. The plan requires an exact source_variant, registered day_count, and one { period, date } cash-date mapping per source period. The result includes semantic source-digest and binding evidence. It never edits the document or infers full DCF economics. The browser-safe export also lives in @uwmd/core/browser.

See the worked API/CLI guide for the contract and typed refusals. This API is included in the 2.8.0 release line.