Coframe/coffee

Build and iterate on your UI 10x faster with AI - right from your own IDE ☕️

What it solves

Coffee accelerates frontend development by allowing developers to generate and iterate on React components directly within their IDE. It removes the need to copy-pasting code from a separate AI chat interface into their codebase, integrating the AI generation process into the the same workflow as writing code.

How it works

Coffee runs as a background process (via Docker) that monitors your source directory for changes to JavaScript and TypeScript files. When it detects a special <Coffee> JSX component containing a prompt, it uses the OpenAI chat completions API to generate the corresponding React component code.

Developers can iterate by updating the prompt inside the <Coffee> component. Once satisfied, they can use a pour prop to automatically replace the <Coffee> component with a permanent, reusable React component file.

It also supports editing existing components by adding a coffee prop to any component, which triggers the agent to update the existing code based on the description of the change.

Who it’s for

Frontend engineers working with React-based frameworks like Next.js or Remix who want to integrate AI-assisted UI generation directly into their local development environment.

Highlights

  • IDE-native workflow: Generate components without leaving your editor.
  • Direct code replacement: Automatically converts AI-generated placeholders into production-ready files via the pour prop.
  • In-place editing: Modify existing components by simply adding a coffee prop to the JSX.
  • Isolated execution: Uses Docker to ensure agentic code is fully isolated.