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

@shipflow/overlay

v0.1.18

Published

Shipflow overlay runtime integrating React Grab with a Cursor agent workflow.

Downloads

126

Readme

@shipflow/overlay

Shipflow combines React Grab with Cursor Agent so any React project can select and edit components in context.

Installation

npm install -D @shipflow/overlay

Quickstart

  1. Wrap your Next config:

    // next.config.ts
    import { withShipflowOverlay } from '@shipflow/overlay/next';
    
    const nextConfig = {
      /* your config */
    };
    
    export default withShipflowOverlay(nextConfig, {
      logClipboardEndpoint: '/api/log-clipboard',
    });
  2. Render ShipflowOverlay in your root layout:

    Import ShipflowOverlay directly from @shipflow/overlay using next/dynamic for optimal performance. The implementation differs based on whether your layout is a Server Component or Client Component:

    For Server Component layouts (no "use client" directive):

    // app/layout.tsx
    import dynamic from 'next/dynamic';
    
    const ShipflowOverlay = dynamic(() =>
      import('@shipflow/overlay').then((mod) => ({
        default: mod.ShipflowOverlay,
      })),
    );
    
    export default function RootLayout({
      children,
    }: {
      children: React.ReactNode;
    }) {
      return (
        <html lang="en">
          <body>
            {children}
            {process.env.NODE_ENV === 'development' && <ShipflowOverlay />}
          </body>
        </html>
      );
    }

    For Client Component layouts (has "use client" directive):

    // app/layout.tsx
    'use client';
    
    import dynamic from 'next/dynamic';
    
    const ShipflowOverlay = dynamic(
      () =>
        import('@shipflow/overlay').then((mod) => ({
          default: mod.ShipflowOverlay,
        })),
      { ssr: false },
    );
    
    export default function RootLayout({
      children,
    }: {
      children: React.ReactNode;
    }) {
      return (
        <html lang="en">
          <body>
            {children}
            {process.env.NODE_ENV === 'development' && <ShipflowOverlay />}
          </body>
        </html>
      );
    }
  3. Wire the API route:

    // app/api/shipflow/overlay/route.ts
    import { createNextHandler } from '@shipflow/overlay/next';
    
    export const runtime = 'nodejs';
    export const dynamic = 'force-dynamic';
    export const POST = createNextHandler();
  4. Cursor CLI: The package automatically searches for cursor-agent in PATH and common installation directories. If not found, set CURSOR_AGENT_BIN to the absolute path.

CLI helper

npx shipflow-overlay init

Scaffolds the provider and API route, checks for cursor-agent, and adds CURSOR_AGENT_BIN to .env.example.

Configuration

Next.js config:

withShipflowOverlay(config, {
  enableInProduction?: boolean;  // Enable in production (default: false)
});

API handler:

createNextHandler({
  cursorAgentBinary?: string;     // Custom binary path
  timeoutMs?: number;             // Timeout in ms (default: 240000)
  allowInProduction?: boolean;    // Allow in production (default: false)
});

Environment variables:

  • CURSOR_AGENT_BIN: Absolute path to cursor-agent (if not in PATH)
  • SHIPFLOW_OVERLAY_ENABLED: Set to "true" to enable overlay
  • SHIPFLOW_OVERLAY_AGENT_TIMEOUT_MS: Timeout in milliseconds

License

MIT © Shipflow