A real-time chat application exploring reactive trigger systems, visual effects, and conversation flow patterns. Built with Node.js, Express, Socket.io, and Vanilla JavaScript.
This is a collaborative architecture study exploring chat system patterns.
- Animated spiral patterns with particle effects
- Screen flash effects for system events
- Gradient backgrounds
- Text-to-speech synthesis for messages
- Audio cues for system events
- Volume control
- Real-time messaging via WebSockets
- Message history
- Live user counter
- Keyword detection and highlighting
- Toggle visual effects
- Enable/disable text-to-speech
- Toggle keyword detection system
- Responsive mobile-friendly design
- Node.js v18+
- npm (comes with Node.js)
git clone https://github.com/Pantheon-LadderWorks/js-bambisleep-chat.git
cd js-bambisleep-chat
npm install
npm startAccess: Navigate to http://localhost:7878
npm run devStarts both backend server (port 7878) and frontend dev server (port 5173).
js-bambisleep-chat/
├── public/ # Frontend static files
│ ├── index.html # Main HTML template
│ ├── css/
│ │ └── style.css # Styles and animations
│ └── js/
│ ├── aigf-core.js # Core chat functionality
│ ├── psychodelic-trigger-mania.js # Visual effects
│ ├── text2speech.js # TTS system
│ └── triggers.js # Keyword management
├── server.js # Express server + Socket.io
├── package.json # Dependencies and scripts
└── README.md # This file
Copy .env.example to .env and customize:
PORT=7878 # Server port
NODE_ENV=development # Environment mode
MAX_MESSAGE_LENGTH=500 # Message length limit
CHAT_HISTORY_LIMIT=100 # Chat history sizeGET /- Main chat interfaceGET /api/health- Server health checkGET /api/history- Chat message historyGET /api/triggers- Get keyword metadataGET /api/triggers/json- Get raw triggers dataPOST /api/tts- Text-to-speech endpoint
- Node.js - Runtime environment
- Express - Web framework
- Socket.io - Real-time communication
- Vanilla JavaScript - Core functionality
- p5.js - Creative coding and animations
- Socket.io Client - Real-time communication
- Web Speech API - Text-to-speech
- CSS3 - Styling and animations
- Vite - Frontend build tool
- Nodemon - Development server
Edit public/js/psychodelic-trigger-mania.js:
// Modify animation parameters
this.spiralSpeed = 0.02; // Animation speed
this.maxParticles = 100; // Particle countModify public/css/style.css for visual customization.
- Chrome/Edge: Full support
- Firefox: Full support
- Safari: Full support
- Mobile: Responsive design
# Run all tests
npm test
# Clean build artifacts
npm run cleanMIT License
This is a study project exploring chat architecture patterns. Original architecture by HarleyVader.
Exploring reactive conversation systems 🌀