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

ffpr

v0.8.0

Published

save editor for games of Final Fantasy Pixel Remaster

Readme

ffpr

Node.js library for decoding and encoding Final Fantasy Pixel Remaster save files from Nintendo Switch, PC and PlayStation.

GitHub License GitHub Created At NPM Version NPM Downloads NPM Unpacked Size Lines of code Codecov

  • All six games: Final Fantasy I–VI.
  • Saves from Nintendo Switch, PC and PlayStation through one API.
  • Save slots, bestiary and game settings.
  • Nested JSON strings are unpacked into a plain object tree and packed back.
  • TypeScript types for the save structure: characters, jobs, abilities, items, party, map, story flags and more.
  • Works with files or with buffers.
  • Two runtime dependencies, no native addons.

Saves can also be edited in the browser with an editor built on this library. Files are decoded locally and are not uploaded.

Usage

import { load, save } from 'ffpr';

const data = await load('path/to/save', 'pc');
data.userData.owendGil = 9999999;
await save('path/to/save', data, 'pc');

All functions are async. type is the platform: 'switch', 'pc' or 'playstation', 'switch' by default.

  • load(filename, type?) reads and decodes a save file.
  • save(filename, data, type?) encodes data and writes it to a file.
  • unpack(buffer, type?) decodes file contents from a Buffer or a Uint8Array.
  • pack(data, type?) encodes data into a Buffer.

load and unpack throw an error if the file is not a save of the given platform.

All functions and types of save data are described in the API reference.

Installation

npm i ffpr

or

pnpm add ffpr

or

yarn add ffpr

or

bun add ffpr

Data

A save file is JSON in which nested objects are stored as JSON strings, several levels deep. load and unpack parse them all into a single object tree, save and pack encode them back. pictureData is decoded from base64 into a Buffer.

Key names are exactly as the game writes them, including the developers' typos: owendGil, importantOwendItemList, owendCrystalFlags, ownedKeyWaordList, numberOfButtles, resolutionHight and others. These are not mistakes in the library, do not "fix" them: the game will not recognize renamed keys.

The structure is described by TypeScript types: Master (save slot), Bestiary and Config (settings). load returns their union, so cast the result:

import { load } from 'ffpr';
import type { Master } from 'ffpr';

const data = (await load('path/to/save', 'pc')) as Master;

Formats

  • Switch: JSON compressed with raw deflate and encrypted with Rijndael-256-CBC.
  • PC: the same, encoded in base64.
  • PlayStation: plain JSON.

Support

If something doesnt work, or you just wanna talk to the creator or his mom, write @arelive. There also accepted kicks from volunteer project managers.

https://github.com/arebaka/ffpr/issues

Patreon Ko-fi Telegram