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

autoverse-fyp

v1.0.3

Published

Zero-Config AI customer service chatbot for any website. Auto-scrapes, learns products, handles orders. Powered by Groq LLMs.

Downloads

55

Readme


✨ Features

-One-line installimport "autoverse-fyp" and the widget appears -Auto-learns your site — Scrapes products, pages, and APIs automatically -Order automation — Collects customer details and places orders step-by-step -Fully customizable — Colors, theme, position, tone via admin dashboard -Bilingual — English + Urdu with auto-detection -Multi-tenant — One server, unlimited chatbots with unique Bot IDs -Network interception — Auto-indexes API responses for richer context -Human-like tone — Sounds like a luxury store concierge, not a robot


Quick Start

  • 1. Install the package

npm install autoverse-fyp
  • 2. Add one line to your app

import "autoverse-fyp";

That's it. A chat bubble appears on your website. Click it, enter your Bot ID, and your AI assistant is live.


How It Works

This project is built using a highly decoupled, production-ready microservices architecture. It separates client-side embeds, administrative controls, and core RAG operations to achieve extreme performance, security, and scalability:

Customer Website (Host Environment)
        │
        ▼
autoverse-agent widget (Injected client bundle)
        │
        ▼
api.autoverse.com (High-speed API gateway / autoverse-server)
        │
        ├─ AI responses (Groq Llama-3.1 + local vector RAG)
        ├─ chat history
        ├─ bot configs
        └─ sessions
        │
        ▼
Database (Persistence Layer)
        │
        ▼
Vercel Dashboard (Decoupled Admin Panel)
  1. Deploy the backend API server (autoverse-server) to Railway (mapping to api.autoverse.com)
  2. Deploy the Admin Dashboard (dashboard) to Vercel
  3. Configure your Database for storing bot configurations, chat logs, and sessions
  4. Create a bot in the Vercel dashboard to receive a unique Bot ID
  5. Install the npm package (autoverse-fyp) or inject the script tag on any customer website
  6. Connect the widget with your Bot ID, and your custom AI concierge goes live!

🔧 Integration Methods

Method 1: NPM Package (Recommended)

npm install autoverse-fyp

Zero-config (setup via widget):

import "autoverse-fyp";

Pre-configured (skip setup screen):

import { initWidget } from "autoverse-fyp";

initWidget({ botId: "YOUR_BOT_ID" });

Method 2: Script Tag (No npm needed)

<script src="https://YOUR-SERVER.com/autoverse/widget.js?botId=YOUR_BOT_ID"></script>

Method 3: Meta Tag + Import

<meta name="autoverse-bot-id" content="YOUR_BOT_ID">
import "autoverse-fyp";

Method 4: Express Middleware

import express from "express";
import { autoverse } from "autoverse-fyp";

const app = express();
app.use(autoverse());
app.listen(3000);

Admin Dashboard

The Autoverse dashboard lets you manage multiple chatbots from one place.

Features

| Tab | What You Can Do | |-----|----------------| | Appearance | Primary/accent colors, dark/light theme, position, bubble size, welcome message | | Tone | Language preference, response length, custom system prompt | | Integration | Copy-paste embed codes, view Bot ID, creation date |

Live Preview

Changes are applied instantly — no redeployment needed. The widget fetches its configuration from the server on every load.


Order Automation

The chatbot handles the full order flow automatically:

Customer: "I want to buy the Swiss Army Knife"

Bot: "Great choice! The Swiss Army Knife is $49.99.
      How many would you like?"

Customer: "2 please"

Bot: "Perfect! Could I get your full name for the order?"

Customer: "Ahmed Khan"

Bot: "Thanks Ahmed! And your phone/WhatsApp number?"

Customer: "0300-1234567"

Bot: "What's the delivery address?"

Customer: "House 12, Street 5, DHA Phase 2, Lahore"

Bot: "Would you like Cash on Delivery or online payment?"

Customer: "COD"

Bot: "Let me confirm your order:
      Product: Swiss Army Knife x 2
      Total: $99.98
      Name: Ahmed Khan
      Phone: 0300-1234567
      Address: House 12, Street 5, DHA Phase 2, Lahore
      Payment: Cash on Delivery
      Shall I place this order for you?"

Customer: "Yes"

Bot: "Order Placed Successfully!
      Order #AV-482916
      Your order will be processed shortly.
      By the way, you might also love these..."

Server Setup (autoverse-server)

Running Locally

# Clone the repository
git clone https://github.com/your-repo/autoverse-agent.git
cd autoverse-agent-main

# Install dependencies for both projects
cd autoverse-server && npm install
cd ../dashboard && npm install

# Start the backend server in development mode
cd ../autoverse-server && npm run dev

# Start the admin dashboard in development mode
cd ../dashboard && npm run dev
  • Backend API runs at: http://localhost:3000
  • Local Dashboard opens at: http://localhost:5173

Environment Variables

Create a .env file in the autoverse-server directory:

# Required
GROQ_API_KEY=gsk_your_api_key_here

# Optional
GROQ_MODEL=llama3-8b-8192      # AI model (default: llama3-8b-8192)
PORT=3000                       # Server port (default: 3000)
PUBLIC_URL=http://localhost:3000 # Your server's public URL

| Variable | Default | Description | |----------|---------|-------------| | GROQ_API_KEY | — | Your Groq API key (get one free) | | GROQ_MODEL | llama3-8b-8192 | LLM model to use | | PORT | 3000 | Server port | | PUBLIC_URL | http://localhost:3000 | Public URL (set this when deploying) |

Supported Models

| Model | Speed | Quality | Best For | |-------|-------|---------|----------| | llama3-8b-8192 | ⚡ Fast | Good | Most use cases | | llama3-70b-8192 | Medium | Excellent | Complex queries | | mixtral-8x7b-32768 | Medium | Great | Long conversations | | gemma-7b-it | ⚡ Fast | Good | Simple Q&A |


Deploy to Production

1. Deploy Backend API to Railway

  1. Link your GitHub repository to Railway.
  2. Deploy the autoverse-server subdirectory.
  3. Configure the following environment variables:
    GROQ_API_KEY=gsk_your_api_key
    PUBLIC_URL=https://api.autoverse.com  # Or your Railway app domain
    PORT=3000
  4. Set the build command:
    npm run build
  5. Set the start command:
    npm start

2. Deploy Admin Dashboard to Vercel

  1. Import your workspace in Vercel.
  2. Target the dashboard folder as the Root Directory.
  3. Configure the API build environment variable:
    VITE_API_URL=https://api.autoverse.com  # Point to your API gateway
  4. Set the Build Command:
    npm run build
  5. Set the Output Directory:
    dist
  6. Click Deploy. Your dashboard is now live on Vercel's global Edge CDN!

3. Deploy NPM Widget Package

  1. Sign in to your developer console on the NPM Registry.
  2. Inside the autoverse-fyp folder, verify the default AUTOVERSE_CLOUD_URL in src/widget.ts points to https://api.autoverse.com.
  3. Build the widget bundle:
    npm run build
  4. Publish the optimized package:
    npm publish --access public

API Reference

initWidget(options?)

Initialize the chat widget manually.

import { initWidget } from "autoverse-fyp";

initWidget({
  botId: "abc123",              // Optional: skip setup screen
  serverUrl: "https://my.server" // Optional: custom server URL
});

| Option | Type | Default | Description | |--------|------|---------|-------------| | botId | string | "" | Bot ID from dashboard. If empty, shows setup screen | | serverUrl | string | Built-in cloud URL | Autoverse server URL |

autoverse(config?)

Express middleware for server-side integration.

import { autoverse } from "autoverse-fyp";

app.use(autoverse({
  groqModel: "llama3-8b-8192",
  groqBaseUrl: "https://api.groq.com/openai/v1",
  verbose: true
}));

startServer(config?)

Start a standalone Autoverse server with built-in dashboard.

import { startServer } from "autoverse-fyp";

startServer({
  port: 3000,
  publicUrl: "https://my-server.com",
  groqModel: "llama3-70b-8192"
});

REST API Endpoints

| Method | Endpoint | Description | |--------|----------|-------------| | GET | /autoverse/widget.js | Widget JavaScript (add ?botId=xxx) | | GET | /autoverse/api/health | Server health check | | POST | /autoverse/api/init | Initialize agent for a website | | POST | /autoverse/api/chat | Send a chat message | | GET | /autoverse/api/bots/:id/config | Get bot appearance config | | POST | /autoverse/api/dashboard/bots | Create a new bot | | GET | /autoverse/api/dashboard/bots | List all bots | | GET | /autoverse/api/dashboard/bots/:id | Get bot details | | PUT | /autoverse/api/dashboard/bots/:id | Update bot settings | | DELETE | /autoverse/api/dashboard/bots/:id | Delete a bot |


How the NPM Package Connects to the Dashboard

  Developer's Website                    Your Autoverse Server
  ┌─────────────────┐                   ┌─────────────────────┐
  │                 │                   │                     │
  │  import         │   Bot ID          │   Admin Dashboard   │
  │  "autoverse-    │ ◄──────────────── │   (create bots,     │
  │   fyp"          │                   │    customize look)   │
  │                 │                   │                     │
  │  💬 Widget      │ ──── API ────►    │   AI Engine         │
  │  appears!       │ ◄── Response ──── │   (Groq + RAG)      │
  │                 │                   │                     │
  └─────────────────┘                   └─────────────────────┘
  1. Admin creates a bot in the dashboard → gets a Bot ID
  2. Developer installs autoverse-fyp on their website
  3. Widget auto-appears → user enters the Bot ID
  4. Widget connects to the server → AI starts helping customers
  5. Admin can change appearance/tone anytime from the dashboard — changes apply instantly

License

MIT © Autoverse