reactHonoStarter
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v10View latest version
This is a personal AI assistant app built with React and Hono on Val Town. It provides a clean, minimalist chat interface for interacting with an AI assistant named Pi.
- Chat interface with message history
- OpenAI integration for AI responses
- Clean, minimalist design
- Mobile-responsive layout
-
Backend:
/backend/index.ts
- Handles API requests and serves frontend assets- OpenAI integration for chat completions
- API endpoint for chat messages
-
Frontend:
/frontend/index.html
- Main HTML template/frontend/index.tsx
- Client-side entry point/frontend/components/App.tsx
- React app with chat interface
- Type your message in the input field at the bottom
- Press Enter or click the send button to send your message
- Pi will respond with a thoughtful answer
- Uses OpenAI's GPT model for generating responses
- Built with React for the frontend and Hono for the backend
- Styled with inline CSS for simplicity
- Add message history persistence
- Implement voice input functionality
- Add user authentication
- Enhance the AI with custom knowledge or personality