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

fuji-recipes

v1.0.2

Published

A library to extract film simulation data from EXIF

Downloads

34

Readme

Fuji Recipes Parser

A TypeScript library to extract Fujifilm camera recipe data from EXIF maker notes.

Overview

This library parses Fujifilm camera maker notes from EXIF data to extract film simulation recipes and camera settings. It supports extracting various parameters like film mode, grain effects, color settings, white balance, dynamic range, and tone adjustments.

Installation

pnpm add fuji-recipes

Usage

Basic Usage

import getRecipe from 'fuji-recipes'

const makerNote = [] // You can get makerNote using exifr or other tools.
const recipe = getRecipe(makerNote)

Real-world Usage with EXIF Extraction

To extract maker notes from actual photos, you'll need an EXIF parsing library like exifr:

npm install exifr
import fs from 'node:fs/promises'
import exifr from 'exifr'
import getRecipe from 'fuji-recipes'

async function extractRecipeFromPhoto(photoPath: string) {
  const photo = await fs.readFile(photoPath)
  const exif = await exifr.parse(photo, { makerNote: true })

  if (exif.makerNote) {
    const recipe = getRecipe(exif.makerNote)
    return recipe
  }

  throw new Error('No maker note found in the photo')
}

// Usage
const recipe = await extractRecipeFromPhoto('./fuji-photo.jpg')
console.log(recipe)

Example Output

{
  "FilmMode": "Classic Chrome",
  "GrainEffectRoughness": "Off",
  "GrainEffectSize": "Off",
  "ColorChromeEffect": "Off",
  "ColorChromeFxBlue": "Strong",
  "WhiteBalance": "5500K",
  "Red": "-1",
  "Blue": "+1",
  "DynamicRange": "DR400",
  "HighlightTone": "-1",
  "ShadowTone": "-1",
  "Saturation": "+1",
  "Sharpness": "0",
  "NoiseReduction": "0",
  "Clarity": "0"
}

Supported Parameters

The library extracts the following camera settings:

  • FilmMode: Film simulation mode
  • GrainEffectRoughness: Grain effect intensity
  • GrainEffectSize: Grain size
  • ColorChromeEffect: Color chrome effect setting
  • ColorChromeFxBlue: Blue color chrome effect
  • WhiteBalance: White balance setting
  • Red: Red white balance fine-tune
  • Blue: Blue white balance fine-tune
  • DynamicRange: Dynamic range setting
  • HighlightTone: Highlight tone adjustment
  • ShadowTone: Shadow tone adjustment
  • Saturation: Color saturation adjustment
  • Sharpness: Sharpness setting
  • NoiseReduction: Noise reduction level
  • Clarity: Clarity adjustment

API Reference

getRecipe(makerNote: Buffer | number[])

Extracts recipe data from a Fujifilm maker note.

Parameters:

  • makerNote: The maker note data as a Buffer or array of numbers

Returns:

  • An object containing the extracted recipe parameters

Development

Prerequisites

  • Node.js 20+
  • pnpm

Setup

# Install dependencies
pnpm install

# Run tests
pnpm test

# Build the library
pnpm build

Testing

The library includes comprehensive tests with real maker note data:

pnpm test

References

This library is based on the Fujifilm MakerNote tag specifications:

License

MIT

Author

cuvii [email protected]

Keywords

  • fuji
  • fujifilm
  • exif
  • makernote
  • film simulation
  • camera recipes