A ChatGPT-like chat application built for Val Town using React and Hono with OpenAI integration.
family-gpt/
āāā backend/
ā āāā index.ts # Hono server with chat API
ā āāā index.test.ts # Backend tests
āāā frontend/
ā āāā components/
ā ā āāā App.tsx # Main chat interface
ā ā āāā ChatMessage.tsx # Individual message component
ā ā āāā MessageInput.tsx # Message input form
ā āāā index.html # Bootstrap HTML file
ā āāā index.tsx # React entry point
āāā shared/
ā āāā types.ts # Shared TypeScript types
āāā deno.json # Deno configuration
GET /
- Serves the React frontendPOST /api/chat
- Chat with OpenAI (requires message and optional
conversation history)GET /api/health
- Health check endpointGET /frontend/*
- Static file serving# Type check deno task check # Format code deno task fmt # Lint code deno task lint # Run tests deno task test # Run all quality checks deno task quality
# Deploy (runs quality checks first) deno task deploy
This project follows Val Town development best practices:
š¤ Generated with opencode