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

create-mork

v0.1.7

Published

Scaffold a full Next.js AI chatbot (frontend + backend) with one command.

Readme

create-mork 🤖

Scaffold a premium, multi-provider AI chatbot app with one command. Built with Next.js 14 (App Router), React, and Vanilla CSS.

create-mork generates a fully configured client-side chat interface and a secure server-side API route supporting Anthropic Claude, OpenAI GPT, and Google Gemini out-of-the-box. Your API keys are kept safely on the server side and never exposed to the browser.


⚡ Quick Start

Create a new chatbot application instantly by running:

npm create mork@latest my-chatbot

1. Select Your Provider

During setup, the CLI will ask you to select a default provider:

  • Anthropic Claude (Default model: claude-3-5-sonnet-latest)
  • OpenAI GPT (Default model: gpt-4o-mini)
  • Google Gemini (Default model: gemini-2.5-flash)

2. Add API Keys

Navigate to your new project folder and open .env.local. Set the API key for your chosen provider:

AI_PROVIDER=anthropic

# API Keys (only the active provider's key is required)
ANTHROPIC_API_KEY=your_anthropic_api_key
OPENAI_API_KEY=your_openai_api_key
GOOGLE_API_KEY=your_google_api_key

3. Run and Chat

Install dependencies and start the development server:

cd my-chatbot
npm install
npm run dev

Open http://localhost:3000 to chat!


🌐 Embedding the Bot in Your Website

Once you deploy your Next.js chatbot app (e.g., to Vercel, Netlify, or self-hosted), you can integrate it into your existing website using one of the following methods:

Method A: Full-Page Iframe Embed

The easiest way to display the chatbot inside any HTML page is using an <iframe>. Add the following code where you want the chat window to appear:

<iframe
  src="https://your-chatbot-deployment.vercel.app"
  style="width: 100%; max-width: 640px; height: 700px; border: none; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.15);"
  title="AI Chatbot"
  allow="clipboard-write"
></iframe>

Method B: Floating Chat Widget (Bottom-Right Corner)

To add a premium floating chatbot bubble in the corner of your website that toggles open and closed, copy this HTML/CSS/JS snippet into your website's <body>:

<!-- Chat Widget Button -->
<button id="mork-widget-btn" style="position: fixed; bottom: 20px; right: 20px; width: 60px; height: 60px; border-radius: 50%; background: #4f46e5; border: none; color: white; cursor: pointer; box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4); display: flex; align-items: center; justify-content: center; font-size: 24px; z-index: 9999; transition: transform 0.2s ease;">
  💬
</button>

<!-- Chat Window Wrapper (Hidden by default) -->
<div id="mork-widget-window" style="display: none; position: fixed; bottom: 90px; right: 20px; width: 400px; height: 600px; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.25); z-index: 9999; border: 1px solid rgba(255,255,255,0.08);">
  <iframe src="https://your-chatbot-deployment.vercel.app" style="width: 100%; height: 100%; border: none;"></iframe>
</div>

<script>
  const btn = document.getElementById('mork-widget-btn');
  const win = document.getElementById('mork-widget-window');
  
  btn.addEventListener('click', () => {
    if (win.style.display === 'none') {
      win.style.display = 'block';
      btn.innerText = '✕';
      btn.style.transform = 'rotate(90deg)';
    } else {
      win.style.display = 'none';
      btn.innerText = '💬';
      btn.style.transform = 'rotate(0deg)';
    }
  });
</script>

Method C: React / Next.js Component Copy

Since create-mork outputs clean, modular React pages, you can easily copy the components into your existing Next.js App Router codebase:

  1. Copy the lib/providers.js adapter functions file into your codebase.
  2. Copy app/api/chat/route.js to create your server API endpoint.
  3. Import the layout elements from app/page.js and styles from app/globals.css into your existing views.

🎨 Customizing the Bot

  • System instructions / bot personality: Edit app/api/chat/route.js and modify the SYSTEM_PROMPT variable.
  • Theme & Design: Modify app/globals.css to update CSS tokens (--bg-app, --bubble-user, etc.) to match your brand colors.
  • Model upgrades: Modify *__MODEL variables in .env.local to switch between models.

📄 License

MIT