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

@nialto-services/directus-extension-url-helpers

v1.1.2

Published

Generate permalinks and slugs from other fields using templates.

Readme

URL Helpers

A Directus extension bundle that provides two interfaces for managing URL-friendly fields: Permalink and Slug.

Both interfaces auto-generate values from other fields using templates, with manual editing support and configurable auto-generation triggers.

Interfaces

Permalink

Generates URL paths from other fields. Each path segment is slugified individually, preserving the / structure.

For example, a source template of {{year}}/{{title}} with a title of "My First Post" and a year of "2025" produces 2025/my-first-post.

Options:

| Option | Description | |---|---| | Source | Template for generating the permalink value (e.g. {{title}}). Uses other field values. | | Prefix | Template prepended to the value in the preview (e.g. https://example.com/blog/). | | Suffix | Template appended to the value in the preview (e.g. /). | | Icon Left | Icon displayed before the preview. | | Custom Replacements | A list of custom replacements (source/target pairs) applied before slugification. Useful for words like "iPhone" → "iphone" that would otherwise be split into "i-phone". | | Auto Generate | When to auto-generate: on create, on update, or both. Defaults to on create. |

Slug

Generates a URL-safe slug from other fields. The entire value is slugified as a single string.

For example, a source template of {{title}} with a title of "My First Post" produces my-first-post.

Options:

| Option | Description | |---|---| | Source | Template for generating the slug value (e.g. {{title}}). Uses other field values. | | Prefix | Template prepended to the value when editing (e.g. /blog/). | | Suffix | Template appended to the value when editing (e.g. /). | | Icon Left | Icon displayed before the preview. | | Custom Replacements | A list of custom replacements (source/target pairs) applied before slugification. Useful for words like "iPhone" → "iphone" that would otherwise be split into "i-phone". | | Auto Generate | When to auto-generate: on create, on update, or both. Defaults to on create. |

Features

  • Template-based generation - Use {{field_name}} syntax to reference other fields in the same item.
  • Manual override - Click the edit button to manually set a value. Manual edits stop auto-generation until reset.
  • Regenerate button - When the source fields change and the current value differs, a regenerate button appears.
  • Clickable preview - If the prefix starts with http:// or https://, the preview becomes a clickable link.
  • Cancel editing - Press Escape while editing to restore the previous value.

Installation

npm install @nialto-services/directus-extension-url-helpers

Attribution

This extension was originally based on directus-extension-wpslug-interface by dimitrov-adrian, licensed under GPL-3.0.