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

@meticulous-home/espresso-profile-converter

v0.1.0

Published

Validate simplified espresso profiles and convert them to Meticulous node JSON.

Readme

@meticulous-home/espresso-profile-converter

A TypeScript/JavaScript library for:

  • validating simplified JSON against the schema maintained in ../espresso-profile-schema
  • expanding $... variables the same way the current backend does
  • converting simplified JSON into the node JSON currently produced by profile_converter/

Installation

npm install @meticulous-home/espresso-profile-converter

Usage

import {
  convertSimplifiedToNodeProfile,
  processVariables,
  validateSimplifiedProfile,
} from "@meticulous-home/espresso-profile-converter";

const validation = validateSimplifiedProfile(profile);

if (!validation.valid) {
  throw new Error(validation.errors.join("\n"));
}

const expanded = processVariables(profile);

const nodeProfile = convertSimplifiedToNodeProfile(expanded, {
  clickToPurge: true,
  endNodeHead: 1000,
  initNodeTail: 7000,
  allowStageSkipping: false,
  partialRetraction: 45,
  maxPistonPosition: 75,
  validate: false,
  processVariables: false,
});

CLI

After building the package, you can convert a simplified profile from the command line:

npm run build
npm run convert -- ./test/fixtures/simplified-json-example.json

To write the result to a file instead of stdout:

npm run convert -- ./test/fixtures/simplified-json-example.json \
  --output ./node-profile.json

If the package is installed globally or exposed through npx, the binary name is:

espresso-profile-convert ./profile.json --output ./node-profile.json

API

  • validateSimplifiedProfile(profile): returns { valid, errors }
  • assertValidSimplifiedProfile(profile): throws SchemaValidationError
  • processVariables(profile): mirrors ProfilePreprocessor.processVariables(...)
  • convertSimplifiedStagesToNodeStages(profile, options?): converts only the dynamic stages
  • convertSimplifiedToNodeProfile(profile, options?): builds the full { name, stages } node profile

Conversion Options

  • clickToPurge: default true
  • endNodeHead: default 1000
  • initNodeTail: default 7000
  • allowStageSkipping: default false
  • partialRetraction: default 45
  • maxPistonPosition: default 75
  • validate: default true
  • processVariables: default true

clickToStart is accepted by the interface for compatibility with the current Python signature, but it does not affect the output today because it is not used in profile_converter.py either.

Schema Sync

The package includes a copy of the schema so it can be published to npm independently. To sync it again from the sibling repository:

npm run sync:schema

This copies ../../espresso-profile-schema/schema.json into src/schema/simplified-profile.schema.json.