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: v18View 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
- Persistent message history using Val Town's blob storage
- Conversation context for more coherent responses
-
Backend:
/backend/index.ts
- Handles API requests and serves frontend assets- OpenAI integration for chat completions
- API endpoint for chat messages
- Message history persistence using blob storage
- Conversation context management
-
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
- Your conversation history is automatically saved
- Use the trash icon to clear your conversation history
- 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
- Uses Val Town's blob storage for message persistence
- Maintains conversation context for more coherent responses
- Implement voice input functionality
- Add user authentication
- Enhance the AI with custom knowledge or personality
- Add message search functionality
- Support for image uploads and processing