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

spine-file-parser

v0.1.0

Published

Inspect Spine .spine project files and export them to typed JSON through the official Spine CLI.

Readme

spine-file-parser

TypeScript library for Spine files:

  • built and packaged with Vite 8;
  • inspect compressed Spine Editor .spine project files in browsers or Node.js;
  • read embedded editor version and diagnostic strings;
  • inspect official exported .skel headers;
  • parse exported Spine JSON with TypeScript types;
  • export complete Professional project data through the official Spine CLI.

.spine is Spine Editor's private, version-dependent project format. Its semantic schema is not public. This package does not pretend to reverse engineer that schema: pure TypeScript APIs safely inspect its raw-DEFLATE envelope, while spine-file-parser/node uses Spine's supported CLI export path for complete bones, slots, constraints, skins, meshes, events, and animations.

Install

npm install spine-file-parser

Inspect a .spine project

import { inspectSpineProject } from "spine-file-parser";

const bytes = new Uint8Array(await file.arrayBuffer());
const project = inspectSpineProject(bytes);

console.log(project.spineVersion);
console.log(project.compressedBytes, project.uncompressedBytes);
console.log(project.strings);

Export and parse a Spine Professional project

Requires a locally installed and licensed Spine Editor. The library never bundles Spine, Spine Runtimes, or a license.

import { exportSpineProject } from "spine-file-parser/node";

const result = await exportSpineProject("./character.spine", {
  // Optional. Defaults to Spine.com on Windows, Spine elsewhere.
  executable: "D:/IDE/Spine/Spine.com",
  // Optional: pin the editor line used by your runtime.
  editorVersion: "4.3.xx"
});

for (const document of result.documents) {
  console.log(document.fileName);
  console.log(document.parsed.data.bones);
  console.log(document.parsed.data.animations);
}

Use SPINE_EXECUTABLE instead of passing executable in every call:

SPINE_EXECUTABLE=/Applications/Spine.app/Contents/MacOS/Spine node app.js

For nonessential editor data, save a JSON export settings file in Spine and pass it as exportSettings.

Other formats

import {
  detectSpineFile,
  inspectSkeletonBinary,
  parseSpineJson
} from "spine-file-parser";

detectSpineFile(bytes);
inspectSkeletonBinary(skelBytes);
parseSpineJson(jsonText);

Safety

inspectSpineProject limits decompressed output to 256 MiB by default. Change it only for trusted, known-large projects:

inspectSpineProject(bytes, { maxUncompressedBytes: 512 * 1024 * 1024 });

Compatibility

  • ESM
  • Node.js 18+
  • modern browsers for pure inspection APIs
  • Spine CLI availability and license required only by spine-file-parser/node

License

MIT. Spine is a trademark of Esoteric Software LLC. Spine Editor and Spine Runtimes have their own licenses.