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

@agentic-react/next

v0.3.0

Published

Next.js adapter for Agentic React local dev integration

Readme

@agentic-react/next

Next.js adapter for Agentic React local-dev MCP integration.

pnpm install @agentic-react/next -D
import withAgenticReactNext from '@agentic-react/next';

export default withAgenticReactNext(nextConfig);

This adapter injects @agentic-react/core through Next's Webpack config and starts a local bridge server for MCP. By default the bridge runs at http://127.0.0.1:51426/mcp.

Settings Configuration

The Next adapter enables the toolbox Settings section when its local bridge server is enabled. User overrides are global to the machine under ~/.agentic-react/ and take precedence over project defaults and package defaults.

Use settingsRoot only when you need an isolated settings directory for tests, demos, or temporary environments. Project defaults are configured with toolkit.settings.shortcuts, and the project default launcher icon is configured with toolkit.iconUrl.

import withAgenticReactNext from '@agentic-react/next';
import type { AgenticReactToolkitConfig } from '@agentic-react/next';

const toolkit: AgenticReactToolkitConfig = {
  iconUrl: '/agentic-react-logo.png',
  settings: {
    shortcuts: {
      singleSelect: 'Ctrl+Shift+S',
      multiSelect: 'Ctrl+Shift+M',
      toggleToolbox: 'Ctrl+Shift+A',
      done: 'Enter',
    },
  },
};

export default withAgenticReactNext(nextConfig, {
  settingsRoot: '/tmp/agentic-react-settings',
  toolkit,
});

The Settings UI can change shortcuts and crop a custom toolbox icon. Reset removes the global override and falls back to the project default when present, otherwise to the package default. Escape is reserved for cancelling pending selection and cannot be assigned. If server.enabled is false, persistent Settings are unavailable because the browser has no adapter-hosted bridge.

Clicking a target captures a pending selection but does not copy it. Click Done, or press the configured Done shortcut, to copy and commit the pending selection; multiselect copies the complete pending set.

Tuning Modal Configuration

Pass tuning modal options as the second argument to withAgenticReactNext. The toolkit object uses the shared ToolkitConfig shape; toolkit.tuningModal accepts classNames, styles, and tokens.

import withAgenticReactNext from '@agentic-react/next';
import type { ToolkitConfig } from '@agentic-react/next';

const toolkit: ToolkitConfig = {
  tuningModal: {
    classNames: {
      surface: 'next-playground-tuning-surface',
      panel: 'next-playground-tuning-panel',
      control: 'next-playground-tuning-control',
    },
    tokens: {
      panelRadius: '12px',
      controlRadius: '9px',
      primaryButtonBackground: '#7c2d12',
      primaryButtonColor: '#ffffff',
      panelShadow: '0 24px 72px rgba(124, 45, 18, 0.2)',
    },
    styles: {
      surface: {
        filter: 'drop-shadow(0 18px 40px rgba(124, 45, 18, 0.14))',
      },
      panel: {
        border: '1px solid rgba(124, 45, 18, 0.24)',
      },
      targetTag: {
        background: '#fff7ed',
        color: '#7c2d12',
      },
      sectionTitle: {
        color: '#7c2d12',
      },
    },
  },
};

export default withAgenticReactNext(nextConfig, {
  toolkit,
});

This example is drawn from playground/agentic-react-next-playground/next.config.mjs. Slot names include root, surface, panel, arrow, title, body, targetTag, customPromptForm, customPromptInput, customPromptButton, sectionTitle, row, label, controlWrap, control, colorInput, numberInput, stepperButton, select, textarea, suffix, and closeButton.

Token names are camelCase and become --agentic-react-tuning-* CSS variables. For example, panelRadius maps to --agentic-react-tuning-panel-radius, while primaryButtonBackground maps to --agentic-react-tuning-primary-button-background.

For DOM-level extensions, register a runtime extension in browser code with window.__AGENTIC_REACT__?.registerTuningModalExtension({ id, beforeFields, afterFields, footer, wrapModal }). wrapModal receives the modal surfaceElement and panelElement; return a cleanup function when adding listeners or observers.