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

@soullink-emotion/profile-generator

v0.1.0-beta.1

Published

Node.js Live2D CDI3 profile generation, validation, calibration, and native-animation discovery for Soullink Emotion.

Readme

@soullink-emotion/profile-generator

Node.js SDK for building and validating soullink.profile.json from Live2D .model3.json, .cdi3.json, .exp3.json, and .motion3.json files.

It provides deterministic Cubism-ID and CDI-name mapping first, with optional OpenAI-compatible refinement. LLM output is validated against real CDI parameter IDs before it can be persisted.

import { Live2DProfileAutoGenerator } from "@soullink-emotion/profile-generator";
import { OpenAICompatibleClient } from "@soullink-emotion/planner-openai";

const generator = new Live2DProfileAutoGenerator({
  modelsRoot: "/srv/soullink/models",
  modelsBaseUrl: "https://assets.example.com/models",
  client: new OpenAICompatibleClient({
    apiKey: process.env.OPENAI_API_KEY,
    baseURL: process.env.OPENAI_BASE_URL,
    model: process.env.OPENAI_MODEL
  }),
  useConfiguredOpenAI: true
});

const result = await generator.ensure({
  modelDir: "my-model",
  force: false
});

The package never reads environment variables and never exposes an HTTP server. The host owns authentication, upload policy, modelsRoot, and API keys. It is a Node-only package because profile discovery and persistence use node:fs.

Set useConfiguredOpenAI: false (the default) for deterministic heuristic-only generation. A request-level openAI.apiKey still explicitly enables refinement. Use saveCalibratedProfile() to validate and persist manually edited mappings.

Generated profiles may include privateEmotionMap. These declarative rules map arbitrary model-specific parameters to dominant emotions and/or VAD ranges, with explicit active/neutral values, intensity, priority, and exclusive groups. The generator recognizes high-confidence labels such as 困惑, 生气, 星星, face shadows, and surprise effects; optional LLM refinement handles ambiguous labels. Every target is filtered against the actual CDI3 parameter set.