Note
Potion is an AI-powered note-taking platform that transforms your thoughts into intelligent, searchable knowledge. Leveraging MindsDB's advanced AI capabilities, Potion enables semantic search, AI-generated summaries, and intelligent chat assistance to make your notes truly smart.
| Demo Video | Blog Post |
|---|---|
![]() |
![]() |
Potion transforms your note-taking experience with:
- ๐ AI-Powered Search โ Find notes using natural language queries with semantic understanding and relevance ranking
- ๐ Smart Summaries โ Instantly generate concise AI summaries of any note to extract key insights
- ๐ฌ Intelligent Chat โ Converse with your AI assistant about your notes and receive contextual answers
- ๐ท๏ธ Organized Categories โ Effortlessly sort notes into categories (Class, Meeting, Personal, Research, Ideas)
- โก Real-time Sync โ Work seamlessly with localStorage persistence and MindsDB cloud synchronization
- ๐จ Beautiful UI โ Enjoy a modern sticky note design with smooth animations and responsive layout
- Node.js (v18+)
- npm or yarn
- Docker Desktop (for MindsDB)
- Clone Repository
git clone https://github.com/abhinavthedev/potion.git
cd potion- Launch MindsDB
# Start MindsDB container
docker-compose up -d
# MindsDB Console: http://127.0.0.1:47334-
Configure API Keys
- Create
.envfile from.env.samplewith the following:
- Create
# Azure OpenAI Configuration
api_key=your_azure_openai_api_key
api_base_url=https://your-resource-name.openai.azure.com
embed_api_key=your_azure_embedding_api_key
embed_api_base_url=https://your-embedding-resource.openai.azure.com
# Google Cloud API
GOOGLE_API_KEY=your_google_api_key
# MindsDB Configuration
MindsDB_URL=http://127.0.0.1:47334
Tip
Get API keys from Azure OpenAI (deploy GPT-4 and text-embedding-3-small models) and Google AI Studio
- Install & Run
npm install
npm run dev
# Access at: http://localhost:3000- Initialize AI Features
- Create your first notes
- Click "Initiate AI Magic" button
- Start searching and chatting with your notes
| Category | Technologies |
|---|---|
| Frontend | Vanilla JavaScript, CSS3, HTML5 |
| Backend | Node.js, Express.js |
| AI & ML | MindsDB, Azure OpenAI (GPT-4 & Embeddings), Google Gemini, ChromaDB |
| Infrastructure | Docker |
- Click Add Note button
- Enter title, select category, write content
- Save to create your note
- Activate AI capabilities
- Use the bottom search bar with natural language
- View results ranked by relevance
- Click on any note and select Generate AI Summary
- Use the chat icon (bottom right) to ask questions about your notes
potion/
โโโ public/ # Frontend assets
โ โโโ index.html # Main HTML interface
โ โโโ style.css # Styling and animations
โ โโโ script.js # Frontend logic
โโโ utils/ # Helper functions
โโโ app.js # Express server
โโโ mindsdb.js # MindsDB integration
โโโ setup.js # Initial configuration
โโโ docker-compose.yml # Docker setup
โโโ .env.sample # Sample of Environment variables
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/setup |
Initialize MindsDB project |
| POST | /api/mindsdb/initialize |
Set up knowledge base and models |
| POST | /api/notes/search |
Semantic search through notes |
| POST | /api/notes/summarize |
Generate note summaries |
| POST | /api/chat |
Chat with AI about notes |
| POST | /api/upload |
Upload notes to MindsDB |
| Issue | Solution |
|---|---|
| MindsDB not accessible | โข Ensure Docker is running โข Check container: docker psโข Restart: docker-compose restart mindsdbโข Verify port 47334 is available |
| AI features not working | โข Check MindsDB status โข Verify API keys โข Ensure notes exist before AI activation |
| Search not returning results | โข Confirm AI activation โข Try broader search terms โข Check MindsDB connection |
Note
For detailed installation help, see MindsDB Installation Docs
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Commit your changes:
git commit -m 'Add amazing feature' - Push to the branch:
git push origin feature/amazing-feature - Open a Pull Request
Potion is licensed under the Unlicense. See the LICENSE file for details.
Abhinav |
๐ If you find Potion helpful, please give it a star on GitHub! ๐

