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 🙏

© 2025 – Pkg Stats / Ryan Hefner

embedia

v4.1.3

Published

Zero-configuration AI chatbot integration CLI - direct file copy with embedded API keys

Readme

Embedia CLI v2.1

Intelligent CLI tool for seamless AI chatbot integration with multi-framework support, conflict detection, and isolated component architecture.

🚀 Features

New in v2.1

  • 🩺 Doctor Command - Comprehensive diagnostics and auto-fix tool
  • 🔨 Build Verification - Prevents and fixes Next.js build corruption
  • 🎯 Improved Layout Integration - Better AST parsing with simple fallbacks
  • 📊 Standardized Conflicts - Clear categorization with severity levels
  • ✅ Better Health Checks - No more false positives on optional fields

Core Features

  • Multi-framework support - Next.js, Gatsby, Remix, Vite, and more
  • Isolated component architecture - Pre-compiled JavaScript for compatibility
  • Intelligent conflict detection - Automatically handles existing implementations
  • Zero configuration - Works out of the box with server-provided config
  • TypeScript support - Full type definitions included
  • Health monitoring - Built-in diagnostics and verification

📦 Installation & Usage

# Using npx (recommended)
npx embedia@latest init --token=YOUR_TOKEN

# Or install globally
npm install -g embedia
embedia init --token=YOUR_TOKEN

🔧 Commands

init

Initialize Embedia chat in your project:

embedia init --token=ac_YOUR_TOKEN [options]

Options:
  --token <token>       Integration token from Embedia webapp (required)
  --api-key <key>       Your AI provider API key (optional)
  --no-install          Skip dependency installation
  --force               Force installation, bypass conflicts
  --dry-run             Preview changes without applying

doctor

Run comprehensive diagnostics:

embedia doctor [options]

Options:
  --conflicts           Show detailed conflict analysis
  --fix                 Attempt to fix issues automatically
  --skip-analysis       Skip project analysis phase

dev

Start development server with hot reload:

embedia dev [options]

Options:
  -p, --port <port>     Port for dev server (default: 3456)

secure

Run security scan on your integration:

embedia secure [options]

Options:
  --fix                 Attempt to fix issues automatically

🏥 Troubleshooting

Build Issues

If you encounter "Cannot find module '../server/require-hook'" errors:

npx embedia doctor --fix

Layout Integration

If automatic layout modification fails:

  1. The CLI creates an EmbediaChatLoader component
  2. Simply import and add it to your layout:
import EmbediaChatLoader from '@/components/EmbediaChatLoader'

export default function RootLayout({ children }) {
  return (
    <html>
      <body>
        {children}
        <EmbediaChatLoader />
      </body>
    </html>
  )
}

Conflicts

The CLI automatically handles most conflicts:

  • API Routes - Uses /api/embedia/chat if /api/chat exists
  • Existing Chat - Installs alongside without interference
  • Dependencies - Works with existing AI libraries

🔍 How It Works

  1. Analysis - Detects your framework, router type, and project structure
  2. Conflict Detection - Scans for potential conflicts and plans resolution
  3. Integration - Modifies layouts or creates loader components
  4. Verification - Checks build integrity and runs health diagnostics

🏗️ Architecture

Embedia v2 uses an isolated component architecture:

  • Pre-compiled JavaScript works everywhere
  • No framework-specific dependencies
  • TypeScript definitions for type safety
  • Inline styles prevent CSS conflicts

📝 Configuration

Configuration comes from the Embedia webapp. The CLI preserves your settings exactly as configured online. No manual configuration needed!

🤝 Contributing

Report issues at: https://github.com/embedia/embedia/issues

📄 License

MIT © Embedia Team