MyCrowd is a fun Windows based social media app that simulates interactions with local AI-powered personas. Users can create posts and receive comments from various AI personalities. The application leverages local AI models through Ollama to generate dynamic and contextually appropriate responses. Users can also add their own system prompts to play with the characteristics of the conversations (e.g. 'talk like a pirate').
NOTE: This app was wholly created for fun using the CodeCompanion.ai 'vibe-coding' tool with Anthropic Claude 3.7 Sonnet and OpenRouter.ai. Plus a little help from o3-mini and the very new quasar-alpha (which rocks!). :)
Warning: performance is controlled by the power of your computer. Expect some response lag on most normal strength PCs. Feel free to experiment with different sized Ollama models and app settings to see if you can reduce lag while retaining quality responses.
- Interactive Social Feed: Create posts and see AI-generated comments and interactions
- Multiple AI Personas: Engage with various AI personalities, each with unique traits and communication styles
- Anonymous Users: Configure anonymous users with different personality types for more diverse interactions
- Customizable Settings: Change the AI model and system prompt to alter response styles
- Conversation Memory: AI responses take into account the post content and previous comments
- Response Variety: Built-in mechanisms to ensure varied and non-repetitive AI responses
- Save and Load Conversations: Preserve and restore conversation threads
- Python 3.6 or higher
- Flask
- Ollama running locally for AI model inference
- LLM models available in Ollama (the app uses "hf.co/bartowski/Darkest-muse-v1-GGUF:Q2_K" by default)
- Clone the repository:
git clone https://github.com/nigelp/mycrowd.git
cd MyCrowd
- Install dependencies:
pip install -r requirements.txt
- Make sure Ollama is installed and running on your system:
# Check if Ollama is running
curl http://localhost:11434/api/tags
- Start the application:
python app.py
Or use the provided batch file:
start.bat
-
The application will automatically open in your default web browser at
http://localhost:5000
-
Create posts and interact with the AI personalities!
- Go to the Settings page by clicking "Settings" in the navigation bar
- Select a different model from the dropdown list (models are fetched from your local Ollama installation)
- Click "Save Model" to apply the change
- On the Settings page, edit the system prompt text area
- This prompt controls the general behavior of all AI personas
- Click "Save System Prompt" to apply changes
- On the Settings page, adjust the number of anonymous users (0-7)
- These users have randomly assigned personalities (angry, happy, sad, etc.)
- Click "Save Anon Users" to apply changes
- AI Model: Selected model is saved in
model_settings.json
- System Prompt: Custom prompt is saved in
system_prompt.json
- Anonymous Users: Settings are saved in
anon_settings.json
- Posts: Conversation threads can be saved in
saved_posts.json
using the "Save Posts" button
A build script (build.bat
) is included to create a standalone executable using PyInstaller:
build.bat
The executable will be created in the dist
folder.
app.py
: Main Flask application with API endpoints and logictemplates/
: HTML templates for the web interfacestatic/
: JavaScript, CSS, and assetsapp.js
: Frontend logic for the social feedsettings.js
: Frontend logic for the settings pagestyle.css
: Styling for the applicationavatars/
: Profile images for AI personas