{"repo":"fal-ai-community/infinite-kanvas","free":true,"listed":false,"github":"https://github.com/fal-ai-community/infinite-kanvas","clone":"git clone https://github.com/fal-ai-community/infinite-kanvas.git","description":"An infinite canvas image editor using fal.ai","language":"TypeScript","stars":293,"topics":["canvas","fal","fluxkontext","konva-react","nextjs","ai"],"license":null,"category":"saas-starters-boilerplates","readme_excerpt":"Infinite Kanvas An infinite canvas image editor with AI transformations using fal.ai. Built with Next.js, React Konva, and tRPC. Features - Infinite canvas with pan/zoom - Drag & drop image upload - AI style transfer via Flux Kontext LoRA - Background removal and object isolation - Real-time streaming of AI results - Multi-selection and image manipulation - Auto-save to IndexedDB - Undo/redo support Technical Details Canvas React Konva for 2D canvas rendering with viewport culling for performance. fal.ai Integration The app integrates with fal.ai's API in several clever ways: 1. Proxy Architecture To bypass Vercel's 4.5MB request body limit, we implement a proxy pattern: This allows users to upload large images that would otherwise be rejected by Vercel's edge runtime. 2. Rate Limiting The application implements a three-tier rate limiting system for users without API keys: Users can bypass rate limits by adding their own fal.ai API key, which switches them to their own quota. 3. Real-time Streaming Image generation uses fal.ai's streaming API to provide live updates: The client receives these updates via a tRPC subscription and updates the canvas in real-time, creating a smooth user experience where images gradually appear as they're being generated. State Management The application uses a combination of React state and IndexedDB for persistence: - Canvas State : Images, positions, and transformations stored in React state - History : Undo/redo stack maintained in memory - Pe","default_branch":null,"files":null,"tree":[],"storefront":"/r/fal-ai-community","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/fal-ai-community/infinite-kanvas/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}