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

@viamedici-spc/configurator-ts

v3.0.1

Published

TypeScript library to build configurator web applications based on the Viamedici Headless Configuration Engine (HCE).

Readme

configurator-ts

npm version license GitHub Actions Workflow Status

Introduction

This TypeScript library simplifies the process of building configurator web applications using the Viamedici Headless Configuration Engine (HCE).

It offers all the features of the HCE through a strongly typed API, eliminating the need to interact directly with the HCE's REST API.

This library is intended for use in a browser environment and is not compatible with server environments like Node.js.

Framework Independence

The library is designed to be framework-agnostic, allowing you to use any framework of your choice to build your configurator application. The Demo App for example is implemented with Vue.js.

For React users, we offer a dedicated library, configurator-react, which is built on top of this library. It provides easy-to-use components and hooks to streamline your development process.

Features

The library includes additional features that make it even easier to build a configurator.

Session Management

The HCE operates with configuration sessions, requiring a session to be created before starting a configuration.

This library includes built-in session management that handles the session lifecycle automatically, ensuring a seamless user experience. For example, if a session is terminated by the HCE due to user inactivity, a new session is automatically initiated when the user resumes activity. The previous configuration state is fully restored before executing the latest user action.

Optimistic Decisions

Decisions are applied optimistically to the configuration state, enhancing the perceived responsiveness of the configurator application and improving the overall user experience.

When a user selects a value, the configuration state immediately reflects this selection as an explicit inclusion. The UI component — such as a toggle button or a drop-down menu — instantly displays the user’s choice. Once the HCE fully processes the decision, the resulting consequences are applied asynchronously to the configuration state.

Apply Explain Solution

When a configuration conflict is detected and explained, the library makes it easy to apply the desired solution to resolve the conflict.

Store / Restore Configuration

A versioned data format with backward compatibility is provided to store and restore the configuration state.

Demo App

The Demo App is a comprehensive showcase of the features provided by this library and the HCE. It demonstrates how to effectively integrate and utilize this library within a Vue.js-based Single Page Application (SPA).

Getting Started

1. Install Package

This library supports both ESM and CommonJS.

npm install @viamedici-spc/configurator-ts
yarn add @viamedici-spc/configurator-ts

2. Create a Session

Initiate a configuration session by specifying the access token for the HCE and the Configuration Model you want to use.

const session = await SessionFactory.createSession({
    sessionInitialisationOptions: {
        accessToken: "<your access token>"
    },
    configurationModelSource: {
        type: ConfigurationModelSourceType.Channel,
        deploymentName: "Car-Root",
        channel: "release",
    },
});

3. Make a Decision

You can now make your first decision for the Painting Color attribute by selecting (including) the value Green.

await session.makeDecision({
    type: AttributeType.Choice,
    attributeId: {localId: "Painting Color"},
    choiceValueId: "Green",
    state: ChoiceValueDecisionState.Included,
} satisfies ExplicitChoiceDecision)

License

This project is licensed under the MIT License - see the LICENSE file for details.