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

@brinpage/cpm

v0.1.36

Published

**Modular prompts. One interface. Full control.**

Readme

@brinpage/cpm · CPM SDK for Next.js

Modular prompts. One interface. Full control.

@brinpage/cpm is a lightweight SDK to build AI-powered workflows in your Next.js apps.
It connects your app to the CPM Dashboard (running on localhost:3027) and to BrinPage Cloud, so you can manage:

  • The Base Prompt and stackable Context Modules (CPM modular context graph)
  • Providers and models (OpenAI, Gemini, Anthropic…)
  • Temperatures, max tokens and embeddings
  • Dynamic routing profiles:
    • auto-quality-first
    • auto-cost-first
    • auto-speed-first

All of this without wiring provider SDKs or secrets into your project.


What CPM gives you

  • One interface for multiple providers
    Your app talks to CPM; CPM talks to BrinPage Cloud; Cloud routes to OpenAI, Gemini, Anthropic (and more as they’re added).

  • Modular context instead of monolithic prompts
    The CPM graph lets you break your system prompt into a Base Prompt plus focused context modules.
    The dashboard decides what to attach for each task, and builds the final prompt deterministically.

  • Unified routing and guardrails in the Cloud
    Requests go through BrinPage Cloud, where you centralize:

    • provider and model selection
    • routing profiles (quality / cost / speed)
    • limits and cost controls
  • Zero backend config in your app
    No provider keys or model-specific SDKs in your codebase.
    The SDK just exposes a clean client (cpm) that calls the Cloud with the configuration you manage in the dashboard.

  • Efficiency by design
    Less repeated context, smarter routing and preflight validation mean:

    • fewer tokens,
    • fewer retries,
    • more predictable behaviour across environments and teams.

Where to go next

  • 📘 Installation guide (how to wire CPM into your Next.js app):
    https://docs.brinpage.com/cpm/installation

  • 🧠 Usage guide (CPM graph, context modules, routing profiles, examples):
    https://docs.brinpage.com/cpm/usage

  • 💡 Product page (overview & concepts):
    https://brinpage.com/cpm

  • ☁️ Create your workspace and get a Cloud API key:
    https://cloud.brinpage.com/