Thanks for your interest in contributing to Owly! This guide will help you get started.
# Clone the repo
git clone https://github.com/Hesper-Labs/owly.git
cd owly
# Install dependencies
npm install
# Set up environment
cp .env.example .env
# Edit .env with your PostgreSQL connection string
# Run database migrations
npx prisma migrate dev
# Start dev server
npm run dev- TypeScript for all code
- Tailwind CSS for styling with the Owly custom color system (
owly-primary,owly-surface, etc.) - Conventional commits:
feat:,fix:,docs:,chore:,refactor: - Zod validation on all API request bodies (
src/lib/validations.ts) - Structured logging via
loggerfromsrc/lib/logger.ts(never useconsole.log/console.error) - Pagination on all list endpoints using
parsePaginationandpaginatedResponsefromsrc/lib/pagination.ts - Error responses using
AppErrorandErrorsfactory fromsrc/lib/errors.ts - No emojis in code, commits, or UI text
- All UI text in English
npm run dev # Start development server
npm run build # Production build
npm run lint # Run ESLint
npm run test # Run all tests (Vitest)
npm run test:watch # Run tests in watch mode
npm run test:coverage # Run tests with coverage report
npm run db:seed # Seed sample data
npm run db:migrate # Run database migrations
npm run db:studio # Open Prisma Studiosrc/
app/
(auth)/ # Login, setup wizard
(dashboard)/ # Dashboard pages
api/ # REST API routes (60+ endpoints)
components/
layout/ # Sidebar, header
ui/ # Reusable components
lib/
ai/ # AI engine, tools
channels/ # WhatsApp, email, phone
customer-resolver.ts # Cross-channel identity resolution
errors.ts # Standardized error responses
logger.ts # Structured logging
pagination.ts # Shared pagination helper
rate-limit.ts # Rate limiting
security.ts # XSS/CRLF protection
validations.ts # Zod input schemas
webhook-delivery.ts # Webhook retry + HMAC signatures
hooks/ # React hooks
tests/
unit/ # Unit tests
api/ # API route tests
security/ # Security tests
helm/owly/ # Kubernetes Helm chart
All new features must include tests. We use Vitest with mocked Prisma and external services.
# Run all tests
npm run test
# Run a specific test file
npx vitest run tests/unit/customer-resolver.test.tsTest files go in tests/ matching the source structure:
tests/unit/for library functionstests/api/for API route handlerstests/security/for security-focused tests
- Fork the repo and create a branch from
main - Make your changes following the code style above
- Run
npm run testand ensure all tests pass - Run
npm run lintand fix any errors - Run
npx tsc --noEmitfor type checking - Write a clear PR description explaining what and why
- Submit the PR
Use GitHub Issues with the appropriate template:
- Bug Report for something that's broken
- Feature Request for new ideas
Open a discussion or check the Wiki for documentation.