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

@parallel-7/slicer-meta

v1.5.3

Published

<div align="center">

Downloads

550

Readme

Slicer Meta Parser

A TypeScript library for parsing metadata from 3D printing slicer files

npm version Node.js Version TypeScript License


Quick Start

Install the package:

npm install @parallel-7/slicer-meta

Use the parseSlicerFile function — it automatically handles all supported formats:

import { parseSlicerFile } from '@parallel-7/slicer-meta';

const metadata = await parseSlicerFile('path/to/your/file.gcode');

console.log('Slicer:', metadata.slicer);
console.log('File info:', metadata.file);

if (metadata.threeMf) {
  console.log('3MF data:', metadata.threeMf);
}

Features

  • Three file formats — G-Code (.gcode, .g), FlashForge binary (.gx), and 3MF archives (.3mf)
  • Four slicers detected — FlashPrint, Orca-FlashForge, OrcaSlicer, and Legacy GX, identified from file headers
  • Thumbnail extraction — Base64 thumbnails from G-Code and 3MF; binary thumbnails from GX files
  • Filament tracking — Usage in mm, meters, and grams; per-filament color and type for multi-material prints
  • 3MF-specific data — Support detection, plate preview images, and model file names from the archive
  • Single unified API — parseSlicerFile dispatches to the right parser automatically; individual parsers also exported for direct use

API

| Parser | File Types | Notes | |--------|-----------|-------| | GCodeParser | .gcode, .g | Auto-detects FlashPrint vs Orca-FlashForge vs OrcaSlicer | | FlashPrintParser | .gcode | FlashPrint-specific files | | OrcaFlashForgeParser | .gcode | Orca-FlashForge files | | GXParser | .gx | FlashForge binary format | | ThreeMfParser | .3mf | 3MF archives (optimized for OrcaSlicer) |

For full return type definitions (Slicer Metadata, File Metadata, 3MF Specific Data), see docs/api.md.

For per-parser examples and multi-filament usage, see docs/usage.md.


Development

npm run build   # compile TypeScript
npm test        # run tests