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

neatpic

v0.2.0

Published

CLI to organize Fujifilm trip photos into a central library

Downloads

232

Readme

neatpic

CLI to organize Fujifilm photo collections into a central library.

Install

npm install
npm run build

Run in dev

npm run dev -- status --library /path/to/Photos

Library layout

Photos/
  library.toml
  2026/
    collections.toml
    May Shanghai/
      Capture/
      Selected/
      Output/
      Trash/

library.toml

timezone = "Asia/Shanghai"

2026/collections.toml

[[collection]]
folder = "May Shanghai"
start = "2026-05-10"
end = "2026-05-18"
timezone = "Asia/Shanghai"

User config

Default library resolution order:

  1. --library <path>
  2. NEATPIC_LIBRARY
  3. $XDG_CONFIG_HOME/neatpic/config.toml
  4. ~/.config/neatpic/config.toml
  5. current working directory

User config format:

library = "/path/to/Photos"

Commands

Create a new collection folder and config entry:

neatpic collection new --library /path/to/Photos

Reorganize a year to match the current collections.toml mapping:

cd /path/to/Photos/2026
neatpic collection sort --dry-run
neatpic collection sort
neatpic collection sort --all

Or resolve the library root first, then target a year explicitly:

NEATPIC_LIBRARY=/path/to/Photos neatpic collection sort --year 2026 --dry-run

collection sort workflow

  1. Update YEAR/collections.toml to reflect the new collection date ranges or folder names.
  2. Run a preview first:
cd /path/to/Photos/2026
neatpic collection sort --dry-run
  1. Review the planned moves.
  2. Apply the changes:
neatpic collection sort
  1. Use --all when you want to reorganize the full year, including files already inside named collections:
neatpic collection sort --all
  1. Use --year when your current directory is outside the year folder and the library root comes from normal neatpic resolution:
NEATPIC_LIBRARY=/path/to/Photos neatpic collection sort --year 2026

Behavior:

  • default scope: Unsorted/ only
  • --all scope: Unsorted/ plus all named collections in the same year
  • bucket-preserving moves: Selected stays in Selected, Capture stays in Capture, Trash stays in Trash, Video stays in Video
  • existing .XMP sidecars move with the shot group
  • preview runs before apply
  • apply confirmation defaults to no
  • empty-dir pruning asks for confirmation and sends pruned dirs to trash

Import files into collection Capture/ folders:

neatpic import ~/Imports ~/BackupDrive/DCIM --library /path/to/Photos --mode copy

Import now runs in stages:

  • scan sources
  • read metadata and build an import plan
  • show a preview with per-collection counts, Unsorted counts, and rough size
  • ask for confirmation with default no
  • render a live import progress bar during file copy

Use --yes to skip the confirmation prompt for scripted runs:

neatpic import ~/Imports --library /path/to/Photos --yes

Sync Lightroom picks/ratings into Selected/ and Trash/:

neatpic sync --library /path/to/Photos --rating-threshold 1

Show collection status:

neatpic status --library /path/to/Photos

Playground

Repo-local sandbox for full command testing:

pnpm playground:reset
pnpm playground:smoke

Docs and fixture map:

  • playground/README.md

Current behavior

  • exact dedupe by SHA-256 on original media files
  • RAW+JPG stay together as one shot group by stem
  • XMP sidecars move with the shot group
  • import previews the plan before writing files and confirmation defaults to no
  • import shows live stage progress plus a custom copy progress bar
  • collection matching uses collection timezone when present, otherwise library timezone
  • unmatched imports fall back to YEAR/Unsorted/
  • collection sort preserves bucket names during moves: Capture, Selected, Trash, Video
  • collection sort scans Unsorted/ by default; --all includes named collections in the same year too
  • collection sort previews moves first, asks before apply, then asks before pruning empty dirs via trash