TwosChat is a privacy-focused chat application built with Svelte that leverages OpenAI's vector database for intelligent conversations. All chat data is stored locally in your browser, ensuring your conversations remain private and secure.
- 💬 Real-time chat interface
- 🔒 Privacy-first approach with browser-only storage
- 🧠 Intelligent conversations powered by OpenAI
- 🔍 Context-aware responses using vector database
- ⚡ Fast and responsive Svelte-based UI
TwosChat takes your privacy seriously:
- No data is stored on any web servers
- All chat history is stored locally in your browser
- Vector embeddings are stored in OpenAI's vector database
- You maintain full control over your data
- Svelte - Frontend framework
- OpenAI Assistants - AI-powered conversations
- OpenAI Vector Storage - Semantic search and retrieval
- Clone the repository:
git clone https://github.com/yourusername/twoschat.git
cd twoschat
- Install dependencies:
npm install
- Start the development server:
npm run dev
- Open your browser and navigate to
http://localhost:5173
To create a production build:
npm run build
- Open the Settings panel in the application
- Configure your OpenAI API key
- Customize any additional settings as needed
TwosChat uses the following browser storage mechanisms:
- LocalStorage: For user preferences and settings
- IndexedDB: For chat history and conversation data
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
TwosChat is a smart chat application that helps you interact with your TwosApp data using AI. Think of it as your personal assistant that can search through and understand all your TwosApp notes and entries.
To use TwosChat, you'll need three things:
- An OpenAI API token
- Your TwosApp User ID
- Your TwosApp Token
- Click the settings button
- Enter your OpenAI token (get it from OpenAI's website)
- Enter your TwosApp User ID and Token (find instructions here)
- Click "Save Settings"
- Click "Sync to Vector Store" to load your TwosApp data
- Your data is stored securely in OpenAI's vector store
- The app uses your personal OpenAI API key, so your data remains private to your account
- No data is stored on public servers
- Your tokens and IDs are saved locally in your browser's storage
- Each time you sync, old data is automatically cleaned up and replaced with fresh data
- Type your questions or requests in the chat box
- Press Enter or click the send button to submit
- The AI will search through your TwosApp data and provide relevant information
- The AI can understand context and provide detailed responses based on your notes
- Use the "Sync to Vector Store" button in settings when you want to update your data
- Each sync refreshes all your data, ensuring you have the latest information
- The app will show you the sync status and any errors if they occur
- Be Specific: Ask clear questions about your TwosApp data
- Regular Updates: Sync your data periodically to ensure you have the latest information
- Check Settings: If the chat isn't working, check if your tokens are correctly entered
- Error Messages: If you see an error, try re-syncing your data or check your settings
- Your data is processed using your personal OpenAI API key
- Communications are encrypted using HTTPS
- Tokens and credentials are stored locally in your browser
- Data is refreshed with each sync, removing old versions
- No data is shared with third parties
- Chat Not Working
- Check if your OpenAI token is valid
- Ensure you've synced your data at least once
- Try refreshing the page
- Sync Failed
- Verify your TwosApp credentials
- Check your internet connection
- Try syncing again after a few minutes
- Incorrect or Old Data
- Click "Sync to Vector Store" to refresh your data
- Check if you're using the correct TwosApp account
If you encounter issues not covered in this manual, try:
- Clearing your browser cache
- Re-entering your credentials
- Performing a fresh sync of your data