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

@solcreek/adapter-next-core

v0.1.1

Published

Next.js-specific adapter utilities shared by @solcreek/adapter-creek (CF Workers) and @solcreek/adapter-creekd (creekd self-host)

Readme

@solcreek/adapter-next-core

Next.js-specific adapter utilities shared between:

These helpers used to live in @solcreek/adapter-core alongside framework-neutral types like DeployManifestBase and findRepoRoot. They moved out so non-Next adapters (e.g. @solcreek/svelte-adapter, future Vue / Solid adapters) can depend on a clean adapter-core without inheriting Next.js's transpilation / cacheHandler / config-mutation surface.

What's in here

| Export | Purpose | |---|---| | applyBaseModifyConfig | Shared next.config mutations every Next adapter needs: auto-transpile JSX-in-JS deps, monorepo outputFileTracingRoot, TS error suppression, cacheHandler wire-up. | | detectPackagesNeedingTranspile, collectEntryFiles, looksLikeJsxInJs | Heuristic JSX-in-JS detection across the user's dep tree, used to seed next.config.transpilePackages. | | CacheHandler (default export from @solcreek/adapter-next-core/cache-handler) | In-memory ISR / fetch-cache handler suitable for single-instance Next deployments. Adapters wire it in via next.config.cacheHandler. Tag-based stale-while-revalidate behaviour matches opennextjs-cloudflare#1168. |

Persistent / cross-instance caches (KV, SQLite, Durable Objects) are out of scope here. Adapters that need one ship their own and point cacheHandler at it; this package's handler is the lightweight default.

Install

pnpm add @solcreek/adapter-next-core

Peer dependency: next >= 15 (optional — only required if you use applyBaseModifyConfig).

Usage

import type { NextAdapter } from "next";
import {
  applyBaseModifyConfig,
  type BaseModifyConfigOptions,
} from "@solcreek/adapter-next-core";

export function createAdapter(options: MyAdapterOptions): NextAdapter {
  return {
    name: "my-adapter",
    modifyConfig(config, ctx) {
      const baseConfig = applyBaseModifyConfig(config, ctx, {
        logLabel: "My Adapter",
        cacheHandlerPath: require.resolve("@solcreek/adapter-next-core/cache-handler"),
      });
      // ... target-specific mutations on top of baseConfig
      return baseConfig;
    },
    // ...
  };
}

./cache-handler is a separate subpath export because next.config.cacheHandler requires a path-resolvable module specifier — Next loads the handler by require(modulePath), not by JS import.

Relationship to @solcreek/adapter-core

adapter-core is intentionally framework-neutral after the split:

  • findRepoRoot (monorepo workspace traversal) — still in adapter-core because it's not Next-specific
  • DeployManifestBase (cross-target manifest shape) — still in adapter-core
  • CreekdDeployManifest (creekd-specific manifest types) — moved to @solcreek/creekd-manifest
  • Next-specific helpers (this package's surface) — moved here

Layering: adapter-next-core → adapter-core (no cycle). Non-Next adapters depend only on adapter-core.

License

Apache-2.0