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

datocms-plugin-readonly-id

v0.1.4

Published

Automatically generates an ID (UUID) for string fields when a record is created, and keeps the value read-only in the editor.

Readme

DatoCMS plugin: Auto ID

Automatically generates a UUID for single-line string fields in the DatoCMS editor, and keeps the value read-only there.

Features

  • Generates a UUID v4 when a new record is opened in the editor
  • Field is read-only in the editor, including on the creation screen
  • Does not affect API writes
  • Duplicating a record creates a fresh UUID
  • Works as a field editor replacement for string fields
  • No plugin permissions required

Installation

Marketplace

  1. Open Project Settings → Plugins
  2. Search for Auto ID and install it
  3. Open your model field → Presentation
  4. Set the field editor to Auto ID

Local development

npm install
npm run dev

Then add a private plugin in DatoCMS with entry point http://localhost:5173.

Usage

Use this plugin on a single-line string field that should act as an immutable identifier, for example external_id or reference_id.

When a user creates a new record in the editor:

  1. The plugin assigns a UUID automatically
  2. The field is shown as disabled/read-only
  3. After save, the same UUID remains visible and still cannot be edited

Duplicating a record also generates a fresh UUID, even if DatoCMS pre-fills the field from the source record.

API-created or API-updated records are not modified by the plugin.

Development

npm run dev
npm test
npm run build

Publishing to the Marketplace

Before publishing, add:

  • docs/cover-1200x800.png — 1200×800 marketplace cover image
  • docs/preview.png — marketplace preview image (replace with a short demo video later if you prefer)

Then publish to npm:

npm publish

The plugin should appear in the DatoCMS Marketplace within about an hour.

License

MIT