A privacy-focused AI workflow builder created for the Google Chrome Built-in AI Challenge 2025. Build powerful AI pipelines using Chrome's built-in AI APIs without external servers, API keys, or cloud dependencies.
Local Flow is a Next.js application that leverages Chrome's experimental on-device AI capabilities to provide a visual workflow builder for AI-powered text processing. All AI operations run entirely in your browser, ensuring complete data privacy and security.
- 100% Local Processing: All AI operations execute on-device using Chrome's built-in AI models
- Visual Workflow Builder: Drag-and-drop interface powered by React Flow for creating complex AI pipelines
- Multiple AI Operations: Access to various AI capabilities including:
- Prompt API (Custom AI prompts)
- Writer API (Content generation)
- Rewriter API (Text transformation)
- Summarizer API (Text summarization)
- Proofreader API (Grammar and style correction)
- Translator API (Language translation)
- Multi-format Input Support: Process text, PDF documents, images, and audio files
- Workflow Persistence: Save and load workflows locally in your browser
- Batch Processing: Execute workflows on multiple inputs simultaneously
- No API Keys Required: Powered entirely by Chrome's built-in AI capabilities
- Privacy-First: Your data never leaves your device
- Chrome 131 or later (Canary, Dev, or Beta channels recommended)
- Node.js 18+ and npm
Before using Local Flow, you need to enable Chrome's experimental AI features:
- Navigate to
chrome://flags/#prompt-api-for-gemini-nano-multimodal-input - Enable the flag and restart Chrome
- Verify model availability at
chrome://on-device-internals - Download required AI models through the application's Model Management interface
Note: Model downloads require user interaction and may take several minutes depending on your internet connection. Once downloaded, models are cached locally.
Clone the repository and install dependencies:
git clone https://github.com/yourusername/hackaton-chrome.git
cd hackaton-chrome
npm installRun the development server:
npm run devOpen http://localhost:3000 in Chrome to access the application.
Create an optimized production build:
npm run build
npm startsrc/
├── app/ # Next.js app directory
│ ├── flows/ # Workflow management pages
│ ├── prompt/ # Prompt API playground
│ ├── writer/ # Writer API playground
│ ├── rewriter/ # Rewriter API playground
│ ├── summarizer/ # Summarizer API playground
│ ├── proofreader/ # Proofreader API playground
│ └── translator/ # Translator API playground
├── components/ # React components
│ ├── ui/ # Reusable UI components
│ └── workflow/ # Workflow-specific components
└── lib/ # Utility libraries
├── workflowEngine.js # Workflow execution engine
└── workflowStorage.js # Local storage management
- Create workflow nodes for different AI operations
- Define input sources (text, PDF, images, audio)
- Connect nodes to create processing pipelines
- Configure each node with specific parameters
- Execute the workflow and view results in real-time
- Input Node: Provide text input or upload files
- PDF Input Node: Extract text from PDF documents
- Image Input Node: Process images (requires multimodal support)
- Audio Input Node: Transcribe audio files
- Prompt Node: Execute custom AI prompts
- Writer Node: Generate content with specific tone and length
- Rewriter Node: Transform text with different styles
- Summarizer Node: Create summaries with configurable length and format
- Proofreader Node: Check and correct grammar and style
- Translator Node: Translate text between languages
Nodes can reference outputs from previous nodes using the {{nodeId}} syntax, enabling dynamic data flow through the workflow.
- Next.js 16: React framework with App Router
- React 19: UI library
- React Flow: Visual workflow builder
- Tailwind CSS 4: Utility-first styling
- Lucide React: Icon library
- PDF.js: PDF parsing
- PapaParse: CSV processing
- Marked: Markdown rendering
This project utilizes Chrome's experimental AI APIs:
window.ai.languageModel- Prompt APIwindow.ai.writer- Writer APIwindow.ai.rewriter- Rewriter APIwindow.ai.summarizer- Summarizer APIwindow.translation- Translation API
These APIs are currently experimental and subject to change.
- Requires Chrome 131+ with experimental flags enabled
- AI models must be downloaded before use (one-time process)
- Model availability depends on Chrome version and system resources
- Some APIs may not be available on all systems
- Multimodal features (image/audio) require additional flags
This project was created for the Google Chrome Built-in AI Challenge 2025. Contributions, issues, and feature requests are welcome.
This project is licensed under the MIT License.
Created for the Google Chrome Built-in AI Challenge 2025, showcasing the potential of privacy-preserving, on-device AI processing.