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

@pulp-engine/template-model

v0.85.0

Published

TypeScript types for Pulp Engine template definitions. Used by @pulp-engine/sdk and by any code that needs to type-check or construct Pulp Engine template documents.

Readme

@pulp-engine/template-model — TypeScript types for Pulp Engine templates

Typed TypeScript shapes for PulpEngine template definitions. Used by @pulp-engine/sdk for typed .definition fields on template operations, and by any code that needs to type-check or construct Pulp Engine templates directly.

When to install this directly

If you're using @pulp-engine/sdk, you don't need to install @pulp-engine/template-model explicitly — the SDK lists it as a regular dependency and your package manager pulls it in automatically. Install it directly only if:

  • You want to author Pulp Engine templates in TypeScript (e.g. a template-authoring tool, a custom editor, or a code-generator that emits template JSON).
  • You need the types in a non-SDK context (e.g. validating template JSON in a build step before uploading it to Pulp Engine).
  • You want to build a template at runtime without constructing the full SDK client.

Install

npm install @pulp-engine/template-model
# or
pnpm add @pulp-engine/template-model
# or
yarn add @pulp-engine/template-model

Requires Node.js 18 or later. No runtime dependencies — pure TypeScript types compiled to .d.ts + a thin .js file for compatibility.

What's exported

import type {
  TemplateDefinition,   // The root template shape
  DocumentNode,         // Top-level container
  BlockNode,            // Block-level nodes (paragraph, heading, table, image, chart, ...)
  InlineNode,           // Inline nodes (text, link, mark)
  RenderConfig,         // Page size, margins, header/footer, pagination
  FieldMapping,         // Data adaptation rules
  // ... and all the per-node type definitions
} from '@pulp-engine/template-model'

See Pulp Engine's template guide for the full node-type reference and the template authoring model.

Versioning

@pulp-engine/template-model is version-locked with the Pulp Engine server release cadence — every release ships a matching version. Installing @pulp-engine/[email protected] pairs with Pulp Engine server 0.64.0, @pulp-engine/[email protected], and pulp-engine==0.64.0 (Python).

License

MIT