prompt-lens  by raojiacui

AI video prompt reverse-engineering and analysis

Created 1 month ago
267 stars

Top 95.9% on SourcePulse

GitHubView on GitHub
Project Summary

This project addresses the challenge of reverse-engineering AI video prompts and simplifying video content extraction and editing. It targets AI video creators, researchers, and content producers by offering a web-based tool to analyze videos, extract dialogue, and generate prompts, thereby streamlining content creation workflows.

How It Works

PromptLens employs AI to analyze uploaded videos by extracting keyframes and processing them. It integrates with multiple AI APIs, including Zhipu AI, Google Gemini, and OpenRouter, to facilitate prompt generation. Additionally, it features audio analysis to extract spoken dialogue from videos and a unique one-sentence video editing capability, aiming to provide a comprehensive solution for AI video content manipulation.

Quick Start & Requirements

To set up locally:

  1. Install dependencies: pnpm install
  2. Configure environment variables by copying .env.example to .env and filling in DATABASE_URL, BETTER_AUTH_SECRET, Google OAuth credentials (NEXT_PUBLIC_GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET), and Cloudflare R2 storage settings (R2_*).
  3. Set up the database: pnpm db:generate and pnpm db:migrate.
  4. Run the development server: pnpm dev.

Prerequisites include a PostgreSQL database, Google OAuth application setup, Cloudflare R2 storage, and API keys for chosen AI providers. The web version is accessible at https://prompt-lens.cc.cd.

Highlighted Details

  • AI-driven video and image analysis for prompt extraction.
  • Support for multiple AI providers: Zhipu AI, Google Gemini, OpenRouter.
  • Audio analysis to extract dialogue and scripts.
  • One-sentence video clipping functionality.
  • User authentication via Google Sign-In with data isolation.
  • Admin backend for user management and operation logging.
  • Tech stack: Next.js 15, React 19, TypeScript, Supabase PostgreSQL, Drizzle ORM, Tailwind CSS, shadcn/ui, better-auth, Backblaze B2.

Maintenance & Community

The provided README does not contain specific details regarding notable contributors, sponsorships, or community channels like Discord or Slack.

Licensing & Compatibility

The project is released under the MIT License. This license generally permits commercial use and integration with closed-source projects.

Limitations & Caveats

The project is described as a "Web version feature preview," suggesting it may be in an early or developmental stage. Local setup requires significant configuration of external services like databases, authentication providers, and cloud storage. Core AI functionality is dependent on obtaining and configuring API keys for third-party services.

Health Check
Last Commit

2 weeks ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
264 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.