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

veo3-api

v1.0.0

Published

An open-source React plugin that uses Veo3 to generate videos via kie.ai's API. Bring AI-powered video creation to your web applications.

Readme

Veo 3 API & Veo 3 Fast API-Google AI

An open-source React plugin that uses Veo3 to generate videos via kie.ai's API. Bring AI-powered video creation to your web applications.

✨ Features

  • 🎬 Dual Generation Modes: Image-to-video and text-to-video
  • 🚀 Fast Generation: Optional fast generation mode for text-to-video
  • 📤 Drag & Drop Upload: Easy image uploading with format validation
  • 🔄 Real-time Progress: Live generation progress tracking
  • 📥 Download Support: Built-in video download functionality
  • 🎨 Modern UI: Clean, responsive design with loading animations
  • 🔧 Highly Customizable: Flexible styling and content options

📦 Installation

npm install veo3-api

⚙️ Configuration

1. Install the package

npm install veo3-api

2. Configure Tailwind CSS

Add the package path to your tailwind.config.js file:

module.exports = {
  content: [
    "./src/**/*.{js,ts,jsx,tsx}",
    "./node_modules/veo3-api/**/*.{js,ts,jsx,tsx}",
  ],
  // ... rest of your config
}

3. Get API Key

Get your API key from kie.ai - a platform that provides AI API services.

🚀 Usage

Basic Usage

import React from 'react';
import Veo3Playground from 'veo3-api';

// File upload function (Required)
const putFile = async (file: File, folder?: string): Promise<string> => {
  const formData = new FormData();
  formData.append('file', file);
  
  const response = await fetch('/api/upload', {
    method: 'POST',
    body: formData,
  });
  
  const data = await response.json();
  return data.url; // Return the uploaded file URL
};

// File download function (Optional)
const downloadFile = async (url: string): Promise<void> => {
  const link = document.createElement('a');
  link.href = url;
  link.download = 'video.mp4';
  document.body.appendChild(link);
  link.click();
  document.body.removeChild(link);
};

function App() {
  return (
    <div className="max-w-7xl mx-auto px-4 py-8">
      <Veo3Playground 
        apiKey="your-api-key-from-kie.ai"
        putFile={putFile}
        downloadFile={downloadFile}
        className="min-h-[600px]"
      />
    </div>
  );
}

Custom Default Content

import React from 'react';
import Veo3Playground from 'veo3-api';

const CustomDefaultContent = () => (
  <div className="text-center">
    <h2 className="text-2xl font-bold mb-4">Welcome to AI Video Generator</h2>
    <p className="text-gray-600 mb-6">Upload an image or enter text to get started</p>
    <div className="grid grid-cols-2 gap-4 max-w-md mx-auto">
      <div className="p-4 bg-blue-50 rounded-lg">
        <h3 className="font-semibold">Image to Video</h3>
        <p className="text-sm text-gray-600">Transform images into videos</p>
      </div>
      <div className="p-4 bg-purple-50 rounded-lg">
        <h3 className="font-semibold">Text to Video</h3>
        <p className="text-sm text-gray-600">Generate videos from text</p>
      </div>
    </div>
  </div>
);

function App() {
  return (
    <Veo3Playground 
      apiKey="your-api-key-from-kie.ai"
      putFile={putFile}
      defaultContent={<CustomDefaultContent />}
    />
  );
}

📖 API Reference

Veo3Playground Component

| Property | Type | Required | Default | Description | |----------|------|----------|---------|-------------| | apiKey | string | ✅ Required | - | API key from kie.ai | | putFile | (file: File, folder?: string) => Promise<string> | ✅ Required | - | File upload function that returns the file URL | | downloadFile | (url: string) => Promise<void> | ❌ Optional | - | File download function | | defaultContent | ReactNode | ❌ Optional | - | Custom default display content | | className | string | ❌ Optional | '' | Custom CSS class name | | style | React.CSSProperties | ❌ Optional | - | Custom inline styles |

Button Component

| Property | Type | Required | Default | Description | |----------|------|----------|---------|-------------| | children | ReactNode | ✅ | - | Button content | | variant | 'primary' \| 'secondary' | ❌ | 'primary' | Button style variant | | size | 'sm' \| 'md' \| 'lg' | ❌ | 'md' | Button size | | disabled | boolean | ❌ | false | Whether the button is disabled | | loading | boolean | ❌ | false | Whether to show loading state | | onClick | () => void | ❌ | - | Click event handler | | className | string | ❌ | '' | Custom CSS class name |

🔧 Technical Requirements

  • React: 18.0.0+
  • TypeScript: 5.0.0+ (recommended)
  • TailwindCSS: 3.0.0+
  • Modern Browser: ES2020+ support

📚 Dependencies

This package includes these peer dependencies:

  • react and react-dom
  • axios for API calls
  • lucide-react for icons
  • react-dropzone for file uploads
  • react-hot-toast for notifications
  • react-spinners for loading states

🤝 Contributing

Issues and pull requests are welcome! Please check the main repository for contribution guidelines.

📄 License

MIT License