Thank you for your interest in contributing to the Knowledge Assistant project!
This is a demonstration project built for the Cloudflare AI assignment. It showcases the full capabilities of Cloudflare's AI agent platform.
- Fork and clone the repository
- Install dependencies:
npm install cd backend && npm install cd ../frontend && npm install
- Set up Cloudflare services (see README.md)
- Run locally:
- Backend:
cd backend && npm run dev - Frontend:
cd frontend && npm run dev
- Backend:
backend/src/agent.ts- Core agent logic with Durable Objectsbackend/src/workflows.ts- Background processing workflowsbackend/src/index.ts- Worker entry point and routingfrontend/src/- React application with components and hooks
- TypeScript: All code is TypeScript with strict mode enabled
- Formatting: Use consistent indentation (2 spaces)
- Comments: Add comments for complex logic
- Types: Define proper interfaces in
types.ts
Before submitting changes:
- Test locally with both backend and frontend
- Verify WebSocket connections work
- Test voice input functionality
- Check responsive design on mobile
- Create a feature branch from
main - Make your changes with clear commit messages
- Test thoroughly
- Update documentation if needed
- Submit a pull request with description of changes
This project encourages AI-assisted development! If you use AI tools:
- Document significant prompts in
PROMPTS.md - Ensure code quality and understanding
- Test thoroughly
Feel free to open an issue for discussion or questions about the project.
Note: This is a demonstration project for educational purposes. All contributions should maintain the original spirit of showcasing Cloudflare's AI platform capabilities.