A React application that helps freelancers generate professional proposals, invoice emails, and client communications using the Claude AI API — built and designed by devbyaaron.
- Proposal Generator — fill in project details and generate a structured, professional proposal with scoped sections
- Invoice Email Generator — create polished invoice emails with service summaries and payment details
- Client Email Generator — draft follow-ups, project updates, scope changes, check-ins, and more
- Real-time streaming — output streams word-by-word using the Anthropic streaming API
- Copy to clipboard — one-click copy on all generated content
- React 18 with hooks
- Vite for fast dev and builds
- Tailwind CSS for styling
- Anthropic Claude API (claude-sonnet-4) with SSE streaming
src/
├── components/
│ ├── ProposalForm.jsx # Proposal input form
│ ├── InvoiceForm.jsx # Invoice input form
│ ├── EmailForm.jsx # Email input form
│ └── OutputPanel.jsx # Streaming output display
├── hooks/
│ └── useClaudeStream.js # Custom hook for Claude API streaming
├── utils/
│ └── prompts.js # Prompt builders for each mode
├── App.jsx # Root component with mode switching
├── main.jsx # Entry point
└── index.css # Tailwind + global styles
- Node.js 18+
- An Anthropic API key
# Clone the repo
git clone https://github.com/devbyaaron/ai-business-assistant.git
cd ai-business-assistant
# Install dependencies
npm install
# Set up environment variables
cp .env.example .env
# Add your Anthropic API key to .env
# Start the dev server
npm run devVITE_ANTHROPIC_API_KEY=your_api_key_hereNote: This app calls the Anthropic API directly from the browser using
anthropic-dangerous-direct-browser-access. This is fine for local development and portfolio demos. For production deployments, proxy API calls through a backend server to keep your API key secure.
npm run build
npm run previewThe app uses a custom useClaudeStream hook to handle the streaming SSE response from Anthropic's /v1/messages endpoint. Each form mode has its own component and prompt builder, keeping concerns cleanly separated. Prompt logic lives in utils/prompts.js and is fully decoupled from UI components.
MIT