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

@enhancely/emdash

v0.1.0

Published

Enhancely JSON-LD schema plugin for EmDash CMS — automatic AI-powered structured data for SEO

Readme

@enhancely/emdash

EmDash 0.1+ Release

Enhancely plugin for EmDash CMS — automatic AI-powered JSON-LD structured data for SEO.

What it does

This plugin automatically generates and injects JSON-LD structured data into every page of your EmDash site. It uses the Enhancely API to analyze page content and produce rich schema markup that improves search engine understanding and AI/LLM comprehension of your content.

Requirements

  • EmDash CMS ^0.1.0
  • An Enhancely account with a project API key

[!IMPORTANT] This plugin requires emdash-cms/emdash#119 — plugin page hooks must fire for anonymous public page visitors. Until this PR is merged, the plugin will only generate JSON-LD for authenticated admin previews.

Installation

npm install @enhancely/emdash
pnpm install @enhancely/emdash
yarn add @enhancely/emdash
bun add @enhancely/emdash

Setup

Add the plugin to your astro.config.mjs:

import { defineConfig } from "astro/config";
import emdash from "emdash/astro";
import { enhancelyPlugin } from "@enhancely/emdash";

export default defineConfig({
  integrations: [
    emdash({
      plugins: [enhancelyPlugin()],
    }),
  ],
});

Then configure your API key in the EmDash admin panel under Plugins > Enhancely Settings.

How it works

  1. On every page render, the plugin's page:fragments hook fires
  2. It checks the KV cache for an existing ETag + JSON-LD for the page URL
  3. Calls the Enhancely API with If-None-Match for conditional requests
  4. On 200: caches the new JSON-LD and injects a <script type="application/ld+json"> tag into <head>
  5. On 412/304: serves the cached JSON-LD (zero API cost)
  6. On 201/202: page is queued for generation — serves cached data if available, or injects nothing on first visit
  7. On error: gracefully degrades to cached data

The injected script tag includes data-source="Enhancely.ai" for identification and the full JSON-LD response including the x-generator field.

[!TIP] We strongly recommend letting the ETag cache warm up. After the first visit triggers generation, subsequent requests are served from cache at zero API cost.

Capabilities

| Capability | Purpose | |-----------|---------| | network:fetch | Calls Enhancely API (host-restricted to *.enhancely.ai) | | page:inject | Injects JSON-LD via page:fragments hook |

Configuration

All settings are managed via the EmDash admin UI:

| Setting | Description | |---------|-------------| | API Key | Your Enhancely project API key (sk-...) | | API URL | API endpoint (default: https://app.enhancely.ai/api/v1) | | Enabled | Toggle JSON-LD generation on/off |

Paid Account

Get an account at enhancely.ai to get your own API key for the targeted domain.

  1. Sign up at enhancely.ai
  2. Choose a plan at enhancely.ai/pricing
  3. Create an organization and project
  4. Register your domain
  5. Copy the project API key from your dashboard

Common Questions

What about existing and/or duplicate JSON-LDs?

They can co-exist and will be evaluated and merged by the processing crawlers, like Google.

Disclaimer

This software is provided "as is" with no guarantee. Use it at your own risk and always test it yourself before using it in a production environment. If you find any issues, please create a new issue.

License

MIT