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/node

v1.0.1

Published

Enhance your NodeJS project with AI-generated JSON-LD schema for better SEO and LLM results

Downloads

216

Readme

Enhancely JSON-LD for NodeJS

NodeJS 20+ Release

Enhancely NodeJS 20+ client for fetching AI-generated JSON-LD schema for your pages.

Installation

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

Paid Account

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

Usage with ETag

jsonld(url, etag?) accepts an optional second parameter. If you pass a non-empty ETag, the client forwards it as If-None-Match upstream.

import { setApiKey, jsonld } from '@enhancely/node';

// Option A: provide API key via environment variable ENHANCELY_API_KEY
// Option B: set it at runtime:
setApiKey(process.env.ENHANCELY_API_KEY);

// from your cache or previous response or null
const prevEtag = 'abc123';

const resp = await jsonld('https://example.com/path', prevEtag);

// check for 412|304 Not Modified
if (resp.notModified()) {
  // unchanged – use your cached data
} else if (resp.ready()) {
  // 1) TODO: update cache with resp.etag() and resp.json()/resp.toString()
  // 2) output json-ld with resp.toString()
} else if (resp.queued()) {
  // 201 – queued for generation
} else if (resp.processing()) {
  // 202 – still generating
} else {
  // error
  console.error(resp.error());
}

console.log(resp.toString()); // ready-to-embed <script type="application/ld+json"> or HTML comment
console.log(resp.json()); // parsed JSON object
console.log(resp.ready()); // true if status 200 (JSON-LD ready)
console.log(resp.ok()); // true if 2xx
console.log(resp.queued()); // true if 201 (queued)
console.log(resp.processing()); // true if 202 (generating)
console.log(resp.notModified()); // true if 412/304
console.log(resp.validJsonLd()); // true if response contains valid JSON-LD
console.log(resp.etag()); // ETag header
console.log(resp.hash()); // X-URL-HASH header
console.log(resp.error()); // error message (extracted from RFC 7807 on 4xx)
console.log(resp.rateLimit()); // rate limit max
console.log(resp.rateLimitRemaining()); // remaining requests

[!TIP] We strongly recommend caching the response ETag and data to avoid unnecessary requests and hitting the rate limit.

Testing in the terminal

request jsonld generation

curl -X POST "https://enhancely.com/api/v1/jsonld" \
     -H "Authorization: Bearer <API_KEY>" \
     -H "Content-Type: application/json" \
     -d '{"url":"https://example.com/blog/automatic-jsonld-with-enhancely"}'

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