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

@meridial/react

v0.1.7

Published

React components for embedding the Meridial in-app assistant UI (Voicebox) and workflow recorder UI (Recorder).

Downloads

1,021

Readme

@meridial/react

React components for embedding the Meridial in-app assistant UI (Voicebox) and workflow recorder UI (Recorder).

Exports

  • Voicebox: embedded assistant widget (badge + draggable conversation bar).
  • Recorder: draggable recorder UI that captures click-steps + microphone narration and stores workflows locally (and can read server workflows when authenticated).

Installation

npm i @meridial/react

Voicebox

Props

interface VoiceboxProps {
  firstMessage?: string
  instructions?: string
  baseUrl?: string
  publishableKey?: string
  identifier?: string | null
  tools?: VoiceboxTool[]
  triggerIcon?: React.ReactNode
  cursor?: React.ReactNode
  metadata?: Record<string, string>
  onError?: (error: string) => void
}

Minimal example (Next.js / React)

"use client"

import { z } from "zod"
import { Voicebox, defineTool, type VoiceboxTool } from "@meridial/react"

const tools: VoiceboxTool[] = [
  defineTool({
    name: "current_weather",
    description: "Get the current weather for a given location.",
    parameters: z.object({
      location: z.string(),
    }),
    execute: async ({ location }) => {
      // Runs in the browser/client.
      return { location, weather: "sunny", temperature: "24°C" }
    },
  }),
]

export function VoiceboxWidget({
  publishableKey,
  identifier,
}: {
  publishableKey: string
  identifier: string | null
}) {
  return (
    <Voicebox
      baseUrl="https://app.meridial.dev" 
      publishableKey={publishableKey}
      identifier={identifier}
      firstMessage="Hi, I am a meridial agent. How can I help you today ?"
      instructions="You are a helpful assistant that can answer questions and help with tasks."
      tools={tools}
      metadata={{ orgId: "org_123..." }}
      onError={(err) => console.error("[Voicebox]", err)}
    />
  )
}

Recorder

Props

interface RecorderProps {
  baseUrl?: string
  publishableKey?: string
  attribute?: string
  cursor?: React.ReactNode
  onNavigate?: (path: string) => void
  onError?: (error: string) => void
}

| Prop | Description | |------|-------------| | onNavigate | Optional callback for auto-navigation during workflow editing. When provided, the editor will call this with the step's urlPath whenever the active step changes. If omitted, no navigation occurs. |

Minimal example

"use client"

import { Recorder } from "@meridial/react"

export function RecorderWidget({ publishableKey }: { publishableKey?: string }) {
  return (
    <Recorder
      baseUrl=""
      publishableKey={publishableKey}
      onError={(err) => console.error("[Recorder]", err)}
    />
  )
}

With auto-navigation (Next.js)

"use client"

import { useRouter } from "next/navigation"
import { Recorder } from "@meridial/react"

export function RecorderWidget({ publishableKey }: { publishableKey?: string }) {
  const router = useRouter()

  return (
    <Recorder
      baseUrl=""
      publishableKey={publishableKey}
      onNavigate={(path) => router.push(path)}
      onError={(err) => console.error("[Recorder]", err)}
    />
  )
}

Styling / UI

These components use Tailwind CSS classes and are designed to work with your existing Tailwind / shadcn setup.

You can integrate styles in either of these ways:

Option 1: include @meridial/react in your Tailwind sources

If your app compiles Tailwind itself, make sure your global stylesheet scans the React package too.

@source "../node_modules/@meridial/react/dist/**/*.{js,mjs}";

Adjust the relative path so it is correct from your own global stylesheet location.

Option 2: import the built CSS directly

If you do not want Tailwind to scan the package, import the package CSS in your global stylesheet instead:

@import "@meridial/react/dist/styles.css";

Use this approach when you want the package to provide its own prebuilt styles instead of relying on your app's Tailwind build to generate them.