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

@seedquan/picnote

v0.1.0

Published

AI-powered photo intelligence — monitors iPhone photos via iCloud, classifies and extracts info, generates searchable Markdown notes

Downloads

78

Readme

PicNote

AI-powered photo intelligence system. Monitors your iPhone photos (via iCloud sync), classifies informational vs casual images, extracts text/URLs/QR codes, and generates searchable Markdown notes automatically.

Zero friction capture — just take a screenshot or photo. PicNote does the rest.

How it works

iPhone → iCloud sync → Mac Photos Library → PicNote → Markdown notes
  1. You take a photo or screenshot on your iPhone
  2. iCloud syncs it to your Mac's Photos library
  3. PicNote detects the new image via launchd (watches Photos.sqlite)
  4. Classifies: informational (receipt, QR code, whiteboard, event flyer) or casual (selfie, scenery)
  5. For informational images: extracts text (OCR), URLs, QR codes, contacts, amounts
  6. Generates a structured Markdown note with AI analysis via Claude Code CLI
  7. Saves to a configurable output directory (default: ~/Documents/PicNote/vault/)

Setup

Prerequisites

  • macOS with iCloud Photos enabled
  • Node.js 18+
  • Claude Code CLI installed
  • Xcode Command Line Tools (for Swift compiler)

Install

npm install -g picnote

# Or install from source
cd ~/Projects/picnote
npm install
npm run build

# Compile the Swift Vision OCR helper
swiftc -o swift/vision_ocr swift/vision_ocr.swift -framework AppKit -framework Vision

Configure

Edit config.yaml:

output_dir: ~/Documents/PicNote    # Where notes are saved
photos_library: ~/Pictures/Photos Library.photoslibrary

Run manually

# Process new photos
picnote

# Search notes
picnote --search "restaurant"

# View stats
picnote --stats

Auto-run on photo sync

# Install the launchd watcher (update ProgramArguments to use node + dist/main.js)
cp resources/com.picnote.watcher.plist ~/Library/LaunchAgents/
launchctl load ~/Library/LaunchAgents/com.picnote.watcher.plist

This watches your Photos.sqlite for changes and runs PicNote automatically within 30 seconds of a new photo syncing.

Architecture

| Component | Purpose | |-----------|---------| | src/watcher.py | Reads Photos.sqlite (strictly read-only via ?mode=ro) | | src/classifier.py | Informational vs casual classification (local heuristics + Claude CLI fallback) | | src/extractor.py | OCR via Apple Vision framework + regex extraction (URLs, phones, emails, amounts) | | src/analyzer.py | Deep analysis via Claude Code CLI — titles, summaries, tags | | src/note_generator.py | Generates Markdown notes with source traceability | | src/db.py | SQLite database with FTS5 full-text search index | | swift/vision_ocr | Compiled Swift binary for Apple Vision OCR + QR code detection |

Safety

  • Photos are NEVER deleted or modified — strictly read-only access to your Photos library
  • Photos.sqlite is opened with SQLite ?mode=ro (enforced at the VFS level)
  • Path traversal protection on all file paths from the Photos database
  • Sensitive content detection (passwords, SSN, bank info) skips cloud processing
  • All Claude CLI calls use your existing Claude Code tokens — no separate API key needed

Tests

npm test

105 tests covering all modules, including safety tests that verify read-only guarantees.

License

Personal project.