Skip to content

About

RAG-powered WordPress Hook Assistant - TDD-built SaaS for WordPress developers

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WordPress Hook Assistant

RAG-powered WordPress development assistant that provides intelligent, context-aware solutions using natural language queries.

🎯 Vision

Transform WordPress development from hours of documentation searching to instant, actionable hook-based solutions.

🚀 Features

  • Natural Language Queries: Ask "How do I add custom fields to WooCommerce checkout?"
  • Working Code Solutions: Get battle-tested WordPress hook implementations
  • Context-Aware: AI understands your specific use case and provides relevant examples
  • TDD-First: Built with 80%+ test coverage and quality-first approach

🛠 Tech Stack

Backend

  • Framework: FastAPI + Python 3.11
  • RAG Pipeline: LangChain + OpenAI GPT-4
  • Vector DB: Pinecone
  • Database: PostgreSQL + SQLAlchemy
  • Testing: pytest with 80%+ coverage

Frontend

  • Framework: Next.js 14 + TypeScript
  • UI: Tailwind CSS
  • Testing: Jest + React Testing Library
  • Authentication: NextAuth.js

🧪 Development (TDD-First)

This project follows strict Test-Driven Development:

  1. Red: Write failing test first
  2. Green: Write minimal code to pass
  3. Refactor: Improve code while keeping tests green

Backend Testing

cd backend
pip install -r requirements.txt
pytest --cov=src --cov-report=html

Frontend Testing

cd frontend
npm install
npm run test:coverage

📊 Project Structure

wordpress-rag-chatbot/
├── backend/
│   ├── src/wp_hook_assistant/     # Core application code
│   ├── tests/                     # Test suite (unit/integration)
│   ├── requirements.txt           # Python dependencies
│   └── pyproject.toml            # Build config + test settings
├── frontend/
│   ├── src/                       # Next.js application
│   ├── __tests__/                 # Frontend tests
│   └── package.json              # Node.js dependencies + test config
├── docs/
│   ├── SRS.md                     # Software Requirements Spec
│   └── PRD.md                     # Product Requirements Doc
└── README.md

🎯 Business Model

  • Target: WordPress developers, agencies, freelancers
  • Pricing: $15-75/month subscription tiers
  • Goal: $10K MRR by Month 6

📈 Getting Started

Prerequisites

  • Python 3.11+
  • Node.js 18+
  • PostgreSQL
  • OpenAI API key
  • Pinecone account

Local Development

  1. Clone & Setup
git clone https://github.com/yourusername/wordpress-rag-chatbot
cd wordpress-rag-chatbot
  1. Backend Setup
cd backend
python -m venv venv
source venv/bin/activate  # or venv\Scripts\activate on Windows
pip install -r requirements.txt
  1. Frontend Setup
cd frontend
npm install
  1. Run Tests (TDD)
# Backend
cd backend && pytest

# Frontend  
cd frontend && npm test
  1. Start Development
# Backend
cd backend && uvicorn src.wp_hook_assistant.main:app --reload

# Frontend
cd frontend && npm run dev

🤝 Contributing

We follow TDD strictly:

  1. Write tests first (aim for 80%+ coverage)
  2. Implement minimal code to pass
  3. Refactor while keeping tests green
  4. No code without tests

📄 License

MIT License - see LICENSE for details

🔗 Links

About

RAG-powered WordPress Hook Assistant - TDD-built SaaS for WordPress developers

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages