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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@egdata/manifests-parser

v1.0.10

Published

A Node.js native addon for parsing Epic Games manifest files

Readme

Epic Games Manifest Parser

A high-performance parser for Epic Games manifest files, available as both a Rust library and a Node.js native addon.

Features

  • Parse Epic Games manifest files (.manifest files)
  • Support for both synchronous and asynchronous operations
  • Handles compressed and uncompressed manifests
  • SHA-1 hash verification
  • Comprehensive error handling
  • High-performance native implementation
  • Cross-platform support (Windows, macOS, Linux)

Installation

Node.js Package

npm install @egdata/manifests-parser

Rust Library

Add this to your Cargo.toml:

[dependencies]
egdata-manifests-parser = "0.1.1"

Usage

Node.js

Synchronous Example

import { parseManifestSync } from '@egdata/manifests-parser';

try {
    const manifest = parseManifestSync('path/to/manifest.manifest');
    
    console.log('Manifest version:', manifest.header.version);
    if (manifest.meta) {
        console.log('App name:', manifest.meta.appName);
        console.log('Build version:', manifest.meta.buildVersion);
    }
    
    console.log('Files count:', manifest.fileList?.count || 0);
    console.log('Chunks count:', manifest.chunkList?.count || 0);
} catch (error) {
    console.error('Error parsing manifest:', error.message);
}

Asynchronous Example

import { parseManifestAsync } from '@egdata/manifests-parser';

async function parseManifest() {
    try {
        const manifest = await parseManifestAsync('path/to/manifest.manifest');
        
        console.log('Manifest version:', manifest.header.version);
        if (manifest.meta) {
            console.log('App name:', manifest.meta.appName);
            console.log('Build version:', manifest.meta.buildVersion);
        }
    } catch (error) {
        console.error('Error parsing manifest:', error.message);
    }
}

parseManifest();

Parse from Buffer

import { parseManifestBuffer } from '@egdata/manifests-parser';
import { readFileSync } from 'fs';

const buffer = readFileSync('path/to/manifest.manifest');
const manifest = parseManifestBuffer(buffer);

Rust Library

Synchronous Example

use egdata_manifests_parser::Manifest;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let manifest = Manifest::load("path/to/manifest.manifest")?;

    println!("Manifest version: {}", manifest.header.version);
    if let Some(meta) = &manifest.meta {
        println!("App name: {}", meta.app_name);
        println!("Build version: {}", meta.build_version);
    }

    Ok(())
}

Asynchronous Example

use egdata_manifests_parser::Manifest;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let manifest = Manifest::load_async("path/to/manifest.manifest").await?;

    println!("Manifest version: {}", manifest.header.version);
    if let Some(meta) = &manifest.meta {
        println!("App name: {}", meta.app_name);
        println!("Build version: {}", meta.build_version);
    }

    Ok(())
}

API Reference

Node.js Functions

  • parseManifestSync(path: string): Manifest - Parse manifest file synchronously
  • parseManifestAsync(path: string): Promise<Manifest> - Parse manifest file asynchronously
  • parseManifestBuffer(buffer: Buffer): Manifest - Parse manifest from buffer

Data Structures

Manifest

interface Manifest {
    header: ManifestHeader;
    meta?: ManifestMeta;
    chunkList?: ChunkDataList;
    fileList?: FileManifestList;
}

ManifestHeader

interface ManifestHeader {
    headerSize: number;
    dataSizeUncompressed: number;
    dataSizeCompressed: number;
    sha1Hash: string;
    storedAs: number;
    version: number;
    guid: string;
    rollingHash: number;
    hashType: number;
}

ManifestMeta

interface ManifestMeta {
    dataSize: number;
    dataVersion: number;
    featureLevel: number;
    isFileData: boolean;
    appId: number;
    appName: string;
    buildVersion: string;
    launchExe: string;
    launchCommand: string;
    prereqIds: string[];
    prereqName: string;
    prereqPath: string;
    prereqArgs: string;
    buildId?: string;
}

ChunkDataList

interface ChunkDataList {
    dataSize: number;
    dataVersion: number;
    count: number;
    elements: Array<Chunk>;
    chunkLookup: Record<string, number>;
}

FileManifestList

interface FileManifestList {
    dataSize: number;
    dataVersion: number;
    count: number;
    fileManifestList: Array<FileManifest>;
}

Chunk

interface Chunk {
    guid: string;
    hash: string;
    shaHash: string;
    group: number;
    windowSize: number;
    fileSize: string;
}

FileManifest

interface FileManifest {
    filename: string;
    symlinkTarget: string;
    shaHash: string;
    fileMetaFlags: number;
    installTags: Array<string>;
    chunkParts: Array<ChunkPart>;
    fileSize: number;
    mimeType: string;
}

ChunkPart

interface ChunkPart {
    dataSize: number;
    parentGuid: string;
    offset: number;
    size: number;
    chunk?: Chunk;
}

Development

Building the Node.js Package

# Install dependencies
npm install

# Build for current platform
npm run build

# Build for all platforms
npm run universal

Building the Rust Library

cargo build --release

License

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