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

directus-extension-immich

v0.1.0

Published

Select and embed images from Immich photo management

Readme

Directus Immich Extension

A Directus extension that integrates Immich with Directus, allowing you to browse and select images from your Immich library directly within Directus.

Features

  • Image Picker Interface - Browse and select images from Immich within Directus fields
  • Album Browsing - Switch between image grid and album view
  • Search & Filter - Search by filename, filter by album, camera make/model
  • Stack Support - View and select from stacked images
  • Multi-Select - Select multiple images or entire albums
  • Album Sync - Link selections to albums with ability to sync when album contents change
  • Image Display - Display component for showing selected Immich images

Screenshots

Select Button

Select from Immich button

Search & Filters

Search and filter interface

Field Interface

Immich Image field interface

Requirements

  • Directus 10.x or later
  • Immich instance with API access
  • Immich API key

Installation

  1. Copy the extension to your Directus extensions folder:

    extensions/directus-extension-immich/
  2. Add environment variables to your Directus configuration:

    IMMICH_URL=http://your-immich-server:2283
    IMMICH_API_KEY=your-api-key-here
  3. Restart Directus

Configuration

Environment Variables

| Variable | Description | Example | |----------|-------------|---------| | IMMICH_URL | URL to your Immich server | http://10.0.0.3:2283 | | IMMICH_API_KEY | Immich API key for authentication | abc123... |

Getting an Immich API Key

  1. Open Immich and go to Account Settings (click your user icon in the top right)
  2. Navigate to API Keys
  3. Click New API Key and give it a name (e.g., "Directus Extension")
  4. Important: Select the required scopes:
    • asset:read - Required to browse and view images
    • album:read - Required to browse albums
  5. Click Create and copy the generated key

Note: The extension only requires read access. It does not modify, upload, or delete any assets in your Immich library.

Usage

Interface (Image Picker)

Add a JSON field to your collection and select Immich Image as the interface.

Options:

  • allowMultiple - Enable multi-select mode
  • albumFilter - Pre-filter to a specific album ID

Display

Select Immich Image Display to show thumbnails of selected images in the collection view.

Data Structure

Single Image

{
  "id": "asset-uuid",
  "originalFileName": "photo.jpg",
  "type": "IMAGE",
  "thumbhash": "..."
}

Multiple Images (Album-Linked)

{
  "albumId": "album-uuid",
  "albumName": "My Album",
  "images": [
    { "id": "...", "originalFileName": "...", "type": "IMAGE" }
  ]
}

Building from Source

npm install
npm run build

License

MIT