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-weave-app

v1.1.0

Published

Interactive CLI to scaffold a new Weave AI application in seconds

Readme

create-weave-app CLI

Interactive scaffolding tool for creating new Weave AI applications in seconds.

Features

Zero Configuration Setup

  • Interactive prompts guide you through framework and provider selection
  • Automatic environment variable configuration
  • Pre-configured project structure

🎯 Framework Support

  • React (Vite)
  • React (Next.js)
  • Vue 3
  • Svelte
  • Angular

🔌 Provider Integration

  • OpenAI (GPT-4, GPT-3.5)
  • Anthropic (Claude 3)
  • Google (Gemini)

🚀 Production Ready

  • TypeScript strict mode enabled
  • Pre-configured best practices
  • Example application included
  • Environment validation

Quick Start

npx create-weave-app

The CLI will guide you through:

  1. Project Name - Give your project a name
  2. Framework - Choose your preferred framework
  3. Provider - Select your AI provider
  4. Model - Pick your preferred model
  5. API Key - Optionally provide your API key (can be added later)

Once complete, follow the on-screen instructions to start developing.

Usage Examples

Create React Vite App

npx create-weave-app
# Select: React + Vite
# Select: OpenAI
# Select: gpt-3.5-turbo

Create Next.js App

npx create-weave-app
# Select: React + Next.js
# Select: Anthropic
# Select: claude-3-sonnet

Create Vue App

npx create-weave-app
# Select: Vue 3
# Select: Google
# Select: gemini-pro

Configuration

Environment Variables

The CLI generates a .env.local file with the following variables:

# Provider configuration
VITE_WEAVE_PROVIDER=openai
VITE_WEAVE_API_KEY=your-api-key-here
VITE_WEAVE_MODEL=gpt-3.5-turbo

# Optional settings
VITE_WEAVE_DEBUG=true
VITE_WEAVE_TIMEOUT=30000
VITE_WEAVE_CACHE=true

Project Structure

my-weave-app/
├── src/
│   ├── App.tsx          # Main component
│   ├── main.tsx         # Entry point
│   └── components/      # Your components
├── public/              # Static assets
├── .env.local          # Environment variables (generated)
├── .env.example        # Template for .env variables
├── package.json        # Project dependencies
├── tsconfig.json       # TypeScript configuration
├── README.md           # Project documentation
└── .gitignore          # Git ignore rules

What Gets Generated

Files Created

  • Framework-specific boilerplate

    • React: App.tsx with hooks setup
    • Vue: App.vue with Composition API
    • Svelte: App.svelte with stores
    • Angular: Service-based architecture
    • Next.js: Pages and API routes
  • Configuration files

    • .env.local - Environment variables
    • .env.example - Template for team sharing
    • tsconfig.json - TypeScript configuration
    • package.json - Dependencies for your framework
    • .gitignore - Version control setup
    • README.md - Project documentation
  • Dependencies

    • Framework packages
    • Weave integration packages (@weaveai/react, @weaveai/vue, etc.)
    • Build tools (Vite, Next.js, etc.)
    • Development dependencies

Next Steps

After running create-weave-app, follow these steps:

# Navigate to your project
cd my-weave-app

# Install dependencies
npm install

# If you skipped API key setup, add it now
# Edit .env.local and set VITE_WEAVE_API_KEY

# Start development server
npm run dev

# Open http://localhost:5173 (or 3000 for Next.js)

Validation

The CLI performs pre-flight checks to ensure your environment is ready:

Checks Performed

  • Node.js version (18+)
  • npm or yarn availability
  • Git installation (optional)
  • Project name validity
  • API key format (if provided)
  • Directory doesn't already exist

Troubleshooting

"Node.js 18+ required"

Update Node.js to version 18 or newer:

node --version  # Check current version
# Visit https://nodejs.org for updates

"Project directory already exists"

Either choose a different project name or remove the existing directory:

rm -rf my-weave-app
npx create-weave-app  # Try again

"npm/yarn not found"

Install Node.js from https://nodejs.org (includes npm) Or install yarn: npm install -g yarn

"Invalid API key format"

Check your API key:

  • OpenAI: Should start with sk-
  • Anthropic: Should start with sk-ant-
  • Google: Should be at least 20 characters

You can add or update your key later in .env.local

Advanced Options

Environment Variables for CI/CD

Set options via environment variables instead of interactive prompts:

WEAVE_PROJECT_NAME=my-app \
WEAVE_FRAMEWORK=react-vite \
WEAVE_PROVIDER=openai \
WEAVE_MODEL=gpt-3.5-turbo \
WEAVE_API_KEY=sk-... \
npx create-weave-app

Debug Mode

Enable verbose logging:

DEBUG=weave:* npx create-weave-app

API Key Management

Securing Your API Key

Never commit your .env.local file to version control:

# .gitignore (already included)
.env.local
.env.*.local

Getting Your API Key

  1. OpenAI: https://platform.openai.com/api-keys
  2. Anthropic: https://console.anthropic.com
  3. Google: https://cloud.google.com/docs/authentication/api-keys

Updating Your Key Later

Edit .env.local at any time:

VITE_WEAVE_API_KEY=new-key-here

Restart your development server for changes to take effect.

Contributing

To contribute to create-weave-app:

  1. Clone the Weave repository
  2. Navigate to packages/cli
  3. Make your changes
  4. Run tests: npm test
  5. Submit a pull request

Support

  • Documentation: https://weave.ai/docs
  • Discord Community: https://discord.gg/weave
  • GitHub Issues: https://github.com/kitium-ai/weave/issues
  • Email Support: [email protected]

License

Apache-2.0