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

@extole/specification

v1.1.2

Published

Extole API OpenAPI specifications and Postman collections.

Downloads

456

Readme

extole-specification

OpenAPI 3 specifications, Postman collections, and TypeScript types for Extole evaluatable expression contexts.

Installation

npm install @extole/specification

Usage

OpenAPI specs (CommonJS)

const management = require('@extole/specification/openapi/management.json');
const managementExpert = require('@extole/specification/openapi/management-expert.json');
const integrationServer = require('@extole/specification/openapi/integration-server-to-extole.json');
const integrationConsumer = require('@extole/specification/openapi/integration-consumer-to-extole.json');

OpenAPI specs (ES Modules)

import management from '@extole/specification/openapi/management.json' with { type: 'json' };
import managementExpert from '@extole/specification/openapi/management-expert.json' with { type: 'json' };
import integrationServer from '@extole/specification/openapi/integration-server-to-extole.json' with { type: 'json' };
import integrationConsumer from '@extole/specification/openapi/integration-consumer-to-extole.json' with { type: 'json' };

Postman collections

const managementCollection = require('@extole/specification/postman/management.json');

Published bundles

| File | Description | | ------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | | management.json | Administrative configuration: campaigns, components, audiences, persons, rewards, reporting setup, and admin tooling. | | management-expert.json | Advanced expert-only configuration: campaign controllers, typed actions and triggers, advanced component types, and other expert surfaces. | | integration-server-to-extole.json | Backend server-to-Extole integration: event submission, person lookup, zone rendering, token management, and reward retrieval. | | integration-consumer-to-extole.json | Consumer-to-Extole integration: consumer event submission, zone rendering, profile management, and SDK-backing operations. |

Expression context types

Many Extole configuration fields accept evaluatable values — static literals, Handlebars templates, or JavaScript functions that run at buildtime (when a campaign or component is saved) or runtime (when a step, trigger, or webhook executes). The OpenAPI bundles describe each field's allowed formats; JavaScript evaluatables receive a context object whose methods and properties are defined by these types.

This repository publishes TypeScript declaration files (.d.ts) under openapi/expression-context/ that document those contexts. They are published alongside the OpenAPI bundles above and updated when the API specs change.

| What | Where | | ---------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | All context types | openapi/expression-context/com/extole/api/ | | Per-field context link | externalDocs on evaluatable oneOf branches in the OpenAPI bundles (also linked from ReadMe API reference) | | Example | AudienceBuildtimeContext.d.ts, StepContext.d.ts |

Finding the right context: open the request schema for the API field you are configuring, locate the evaluatable oneOf branch you need (handlebars@buildtime, javascript@runtime, etc.), and follow its externalDocs link to the matching .d.ts file. Walk the extends chain in that file to see every method available on context.

Using the types locally: clone or browse this repo, or reference the GitHub URLs embedded in the OpenAPI specs. Point your editor or TypeScript tooling at openapi/expression-context/ for autocomplete when authoring JavaScript evaluatables. Handlebars evaluatables use variable names only ({{variableName}}) — the .d.ts files apply to JavaScript branches that call context methods.

Interactive documentation

Development

npm ci
npm run build    # regenerate Postman collections from OpenAPI
npm run lint     # Spectral lint

Publishing to Postman

The Publish to Postman workflow (publish-to-postman.yml) keeps the public Extole API workspace in sync with main. It regenerates Postman collections from OpenAPI, publishes them via the Postman API, and runs verification checks.

export POSTMAN_API_KEY=<your-postman-api-key>
npm run publish:postman
npm run verify:postman

Collection and workspace UIDs are stored in postman/.postman-publish.json so publishes are idempotent.

Manual follow-ups (Postman UI only):

  • Submit the workspace to the Postman API Network for catalog discoverability.
  • Add team branding (logo, description) under Postman team settings.
  • Optionally rename the team from Admin's Team to Extole for a cleaner public URL.

Publishing to npm

Release Please (release-please.yml) bumps version and publishes @extole/specification to npm on merge to main.

Follow-up required before first publish:

  1. Create the @extole npm organization (or confirm it exists) at npmjs.com.
  2. Add an automation token as the NPM_TOKEN repository secret on extole/extole-specification.
  3. Enable GitHub Pages for this repo (Settings → Pages → GitHub Actions).

Until NPM_TOKEN is configured, release-please will still open version-bump PRs but the publish job will fail at npm publish.

Repository secrets

| Secret | Used by | | ----------------- | --------------------------------------------------------- | | NPM_TOKEN | release-please.yml publish job | | POSTMAN_API_KEY | publish-to-postman.yml — publish and verify collections |

License

MIT