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

@nextblock-cms/cortex

v0.21.3

Published

Cortex AI, the premium AI module of [NextBlock](https://github.com/nextblock-cms/nextblock), the open-core CMS for Next.js and Supabase. It powers the CMS assistant that builds and edits pages, posts and products through tools, inline block and HTML gener

Readme

@nextblock-cms/cortex

Cortex AI, the premium AI module of NextBlock, the open-core CMS for Next.js and Supabase. It powers the CMS assistant that builds and edits pages, posts and products through tools, inline block and HTML generation, SEO metadata, image alt text, and the MCP server that lets external agents work on a NextBlock site.

Models are called through OpenRouter with the Vercel AI SDK, and the site operator chooses the model.

Projects created with npm create nextblock@latest already depend on it. It needs Next.js 16 (peer dependency), Node.js 22.12 or later, and the project's own ai at ^7 and @ai-sdk/openai-compatible at ^3, the versions this package builds its models with.

Licensing

The source is public under AGPL-3.0-or-later, and the features are license-gated under the package id cortex-ai. A NextBlock project enables Cortex AI only after its license is active: start the free trial or buy one in the CMS under Settings → Packages. The app checks it with verifyPackageOnline('cortex-ai') from @nextblock-cms/db/server.

Entry points

| Import | Use it from | What it holds | | :-- | :-- | :-- | | @nextblock-cms/cortex | server only | The OpenRouter client and model registry, the global agent and its tools, block and widget generation, SEO metadata, alt text, and the MCP server, tokens and tool registry. It imports next/headers and server-only modules. | | @nextblock-cms/cortex/client | client or server | The browser-safe values a Client Component may need: createCortexAiStoredModelSelection, formatCortexSiteBriefForPrompt and isCortexSiteBriefComplete |

Types from the main entry are safe to import anywhere; runtime values used by a Client Component must come from /client.

Environment

  • OPENROUTER_API_KEY: the server-side key, used when no key is stored in the CMS. A key saved in the CMS takes precedence.
  • CORTEX_AI_ENCRYPTION_KEY: required to save and read the key stored in the CMS. Changing it makes stored keys unreadable.

Documentation

License

AGPL-3.0-or-later.