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

@navieo/react

v1.7.0

Published

AI-powered contextual site guide SDK for React

Readme

@navieo/react

Navieo's drop-in React SDK — chat widget that answers questions about your app (ask mode) and plays pre-authored, interactive UI tours via Driver.js.

Stage 1 product reality: The widget is currently ask-only. Dynamic LLM-generated tours are dormant behind the GUIDE_MODE_ENABLED backend flag and will return in Stage 3. Suggestion chips with a tourSlug field play pre-authored tours deterministically via playTour(slug). See navieo/docs/01-product-stage-1.md.

Install

pnpm add @navieo/react
# or: npm i @navieo/react / yarn add @navieo/react

@navieo/core and @navieo/types come transitively — you don't install them directly.

Quick start

Next.js (recommended)

// app/layout.tsx
import { NavieoNextProvider } from "@navieo/react/next";

export default function RootLayout({ children }: { children: React.ReactNode }) {
  return (
    <html lang="en">
      <body>
        <NavieoNextProvider
          apiKey={process.env.NEXT_PUBLIC_NAVIEO_PUBLISHABLE_KEY!}
          apiBaseUrl="https://api.navieo.io/api"
          suggestions={[
            // tourSlug → plays an authored tour deterministically (no LLM call)
            { label: "Walk me through requesting time off", tourSlug: "request-time-off" },
            // no tourSlug → sends label as a free-form ask query
            { label: "What's the PTO policy?", tag: "Popular" },
          ]}
        >
          {children}
        </NavieoNextProvider>
      </body>
    </html>
  );
}

The Next.js wrapper handles route detection + router.push navigation automatically.

Any React app

import { NavieoProvider } from "@navieo/react";
import { useLocation, useNavigate } from "react-router-dom";

function App() {
  const location = useLocation();
  const navigate = useNavigate();
  return (
    <NavieoProvider
      apiKey={import.meta.env.VITE_NAVIEO_KEY}
      currentRoute={location.pathname}
      onNavigate={(route) => navigate(route)}
      suggestions={[{ label: "How do I…", tourSlug: "my-tour" }]}
    >
      <YourApp />
    </NavieoProvider>
  );
}

Public exports

| Export | Description | |---|---| | NavieoProvider | Context provider — chat state, tour state, authoring mode | | NavieoNextProvider (from @navieo/react/next) | Next.js wrapper — auto wires usePathname + useRouter | | ChatWidget | Floating chat widget. Auto-mounted by NavieoProvider; export available for custom placement | | useNavieo | Hook returning { chatHistory, sendMessage, playTour, tourState, openWidget, closeWidget } | | useTourRenderer | Lower-level hook for custom tour rendering (advanced) | | darkTheme, lightTheme, themes, resolveTheme | Theme tokens + helper for custom theme prop | | logger (re-export from @navieo/core) | Browser-side logger respecting logLevel prop |

Full type signatures: import type { NavieoProviderProps, NavieoTheme, NavieoResolvedTheme } from "@navieo/react".

Key props on NavieoProvider

| Prop | Required | Purpose | |---|---|---| | apiKey | yes | Publishable key — nv_p… — generated in the Navieo dashboard | | apiBaseUrl | optional | Defaults to https://api.navieo.io/api. Override for self-hosted or dev backend | | currentRoute | yes (non-Next) | Current path; Next wrapper sets this automatically | | onNavigate | yes (non-Next) | Programmatic nav for tours that span pages | | suggestions | optional | Chat empty-state chips. tourSlug → authored tour. No slug → ask query | | theme | optional | "dark" \| "light" or a NavieoTheme object | | logLevel | optional | "silent" \| "error" \| "warn" \| "info" \| "debug" (default "warn") |

Authored tour playback (Stage 1 entry points)

  1. Suggestion chip with tourSlug — clicked in chat widget empty state
  2. playTour(slug) from useNavieo() — programmatic launch (e.g. button onclick)
  3. Deep link — visit ?tour=<slug> or #navieo-tour=<slug> — slug consumed on mount, URL cleaned

All three resolve through the same playTour path: fetch from /api/tour/:slug (API-key auth), validate steps, hand off to the Driver.js renderer.

Requirements

  • React 18 or 19 (peer)
  • React-DOM 18 or 19 (peer)
  • Next.js 14+ (optional peer — only required when using @navieo/react/next)
  • Node 20+ (Node 24+ tested) for tooling
  • A Navieo backend (defaults to hosted api.navieo.io)

Architecture

The internal module map, Driver.js overlay rules, memoization split, and dormant Stage 3 boundaries live in navieo-sdk/ARCHITECTURE.md. The full SDK guide is in the platform repo at navieo/docs/05-sdk.md.

License

Proprietary.