Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

AI Business Assistant

A React application that helps freelancers generate professional proposals, invoice emails, and client communications using the Claude AI API — built and designed by devbyaaron.

AI Business Assistant Tailwind CSS Claude API


Features

  • 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

Tech Stack

  • React 18 with hooks
  • Vite for fast dev and builds
  • Tailwind CSS for styling
  • Anthropic Claude API (claude-sonnet-4) with SSE streaming

Project Structure

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

Getting Started

Prerequisites

Installation

# 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 dev

Environment Variables

VITE_ANTHROPIC_API_KEY=your_api_key_here

Note: 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.

Build for Production

npm run build
npm run preview

Architecture Notes

The 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.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages