GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com โ€” GitHub - IBS27/atmosphere: hackmit 2025 project

BranchesTags
Open more actions menu

Latest commit

 

History

7 Commits
7 Commits

Folders and files

NameName
Last commit message
Last commit date
backend
backend
 
 
shared
shared
 
 
smart-glasses
smart-glasses
 
 
.env.example
.env.example
 
 
DETAILS.md
DETAILS.md
 
 
README.md
README.md
 
 
docker-compose.yml
docker-compose.yml
 
 
package.json
package.json
 
 

Repository files navigation

๐ŸŽต Atmosphere

project-pr-Y6YUvRdWucfUGcS

Atmosphere automatically creates the perfect soundtrack for your life. Put on smart glasses and walk around โ€” the system sees what you see and generates music that matches your environment in real time.

Walk into a coffee shop and hear smooth jazz. Step outside into a busy street, and energetic beats kick in. Enter a quiet library, and ambient study music begins. Atmosphere can capture and create custom music for any moment.

โœจ Features

  • ๐Ÿ” Automatic Scene Detection: AI-powered visual analysis of your environment every ~60 seconds
  • ๐ŸŽผ Contextual Music Generation: Custom music tailored to your current scene and activity
  • ๐Ÿ”„ Seamless Audio Streaming: Continuous background music with smooth transitions
  • ๐Ÿ“ฑ Multi-device Sync: Smart glasses and companion app stay perfectly synchronized
  • ๐ŸŽง Hands-free Operation: Fully automatic music generation with no manual intervention
  • ๐Ÿ“Š Real-time Monitoring: Visual status indicators and companion app dashboard
  • ๐ŸŽต Music History: Track and replay all previously generated music

๐Ÿ—๏ธ Architecture

System Components

  • Smart Glasses Client: Captures images, plays audio, minimal UI
  • Backend Server: Node.js/Express server handling image processing and AI orchestration
  • Companion App: React webview application running on Mentra OS
  • AI Services: Claude Vision API for scene analysis, Claude API for prompt generation, Suno API for music generation

Data Flow

Smart Glasses โ†’ Images via WebSocket โ†’ Backend Server
Backend Server โ†’ Claude Vision (every ~60s) โ†’ Scene Analysis
Backend Server โ†’ Claude API โ†’ Suno-optimized prompt
Backend Server โ†’ Suno API โ†’ Generated music
Backend Server โ†’ Audio stream โ†’ Smart Glasses
Backend Server โ†’ Status updates โ†’ Companion App

๐Ÿš€ Quick Start

Prerequisites

  • Node.js 18+ and npm
  • Redis server
  • API keys for Claude (Anthropic) and Suno

Installation

  1. Clone the repository

    git clone <repository-url>
    cd atmosphere
  2. Install dependencies

    npm install
  3. Set up environment variables

    cp .env.example .env
    # Edit .env with your API keys and configuration
  4. Start Redis

    # Using Docker
    docker run -d -p 6379:6379 redis:alpine
    
    # Or using Docker Compose
    npm run docker:up
  5. Run the development servers

    # Start all services
    npm run dev
    
    # Or start individually
    npm run dev:backend    # Backend server
    npm run dev:glasses    # Smart glasses client
    npm run dev:mobile     # Companion app

๐Ÿ”ง Configuration

Environment Variables

Create a .env file in the root directory:

# AI API Keys
ANTHROPIC_API_KEY=your_claude_api_key
SUNO_API_KEY=your_suno_api_key

# Application Settings
ANALYSIS_INTERVAL=60000          # ms between Claude Vision calls
IMAGE_CAPTURE_INTERVAL=3000      # ms between image captures
MAX_STORED_IMAGES=20             # number of recent images to keep
SCENE_CHANGE_THRESHOLD=0.7       # similarity threshold for scene changes

# Server Configuration
PORT=3000
REDIS_URL=redis://localhost:6379
DATABASE_URL=sqlite:./atmosphere.db

# Smart Glasses Settings
DEVICE_ID=atmosphere_glasses_001
AUDIO_QUALITY=high
WEBRTC_SERVERS=["stun:stun.l.google.com:19302"]

๐Ÿ“ Project Structure

atmosphere/
โ”œโ”€โ”€ backend/                     # Node.js backend server
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ”œโ”€โ”€ app.ts              # Server entry point
โ”‚   โ”‚   โ”œโ”€โ”€ routes/             # REST API endpoints
โ”‚   โ”‚   โ”œโ”€โ”€ sockets/            # WebSocket handlers
โ”‚   โ”‚   โ”œโ”€โ”€ core/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ claude/         # Claude API integration
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ suno/           # Suno API integration
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ cerebras/       # Cerebras API integration
โ”‚   โ”‚   โ””โ”€โ”€ middleware/         # Express middleware
โ”‚   โ””โ”€โ”€ package.json
โ”œโ”€โ”€ smart-glasses/              # Smart glasses client app
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ”œโ”€โ”€ main.ts             # Glasses app entry point
โ”‚   โ”‚   โ”œโ”€โ”€ services/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ camera.ts       # Image capture service
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ websocket.ts    # Backend communication
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ audio.ts        # Music playback service
โ”‚   โ”‚   โ””โ”€โ”€ components/         # UI components
โ”‚   โ”œโ”€โ”€ index.html
โ”‚   โ””โ”€โ”€ package.json
โ”œโ”€โ”€ shared/                     # Shared TypeScript types
โ”‚   โ””โ”€โ”€ src/types.ts
โ”œโ”€โ”€ docker-compose.yml          # Docker services configuration
โ””โ”€โ”€ package.json               # Root package with workspaces

๐Ÿ“ก API Reference

WebSocket Events (Smart Glasses โ†” Backend)

Client to Server:

interface ImageData {
  image: Uint8Array;
  timestamp: string;
  deviceId: string;
}

Server to Client:

interface MusicGenerated {
  audioUrl: string;
  title: string;
  prompt: string;
  sceneDescription: string;
  timestamp: string;
}

interface SceneAnalysis {
  description: string;
  mood: string;
  activity: string;
  location: string;
  confidence: number;
}

REST API Endpoints

GET  /api/status              # System health and status
GET  /api/music/history       # Recent generated music
POST /api/settings            # Update user preferences
GET  /api/analysis/current    # Latest scene analysis
POST /api/analysis/manual     # Trigger manual analysis

๐Ÿ› ๏ธ Development

Available Scripts

npm run dev              # Start all development servers
npm run dev:backend      # Backend server only
npm run dev:glasses      # Smart glasses client only
npm run dev:mobile       # Companion app only
npm run build            # Build all workspaces
npm run clean            # Clean all workspaces
npm run docker:up        # Start Docker services
npm run docker:down      # Stop Docker services

Tech Stack

Backend:

  • Express.js with Socket.IO for WebSocket communication
  • Claude Vision API for multi-image scene analysis
  • Claude API for Suno prompt generation
  • Suno API for music generation
  • Redis for caching and session storage
  • Sharp for image processing

Smart Glasses Client:

  • HTML5/JavaScript web-based application
  • WebRTC/MediaDevices for image capture
  • Socket.IO client for real-time communication
  • Web Audio API for music playback

Companion App:

  • React application for Mentra OS webview
  • Real-time WebSocket updates
  • Music history and user preferences
  • Status monitoring dashboard

โšก Performance Requirements

  • Image capture: < 500ms per image
  • Scene analysis: < 5s for Claude Vision call
  • Music generation: < 30s for Suno API call
  • Audio streaming: < 200ms latency
  • Companion app: < 100ms UI response time

๐Ÿ” Security

  • Secure WebSocket connections (WSS)
  • Input validation for all image data
  • Sanitized user inputs in companion app
  • Environment-based API key storage
  • Proper CORS policies
  • Security event logging

๐Ÿงช Testing

# Run unit tests
npm test

# Run integration tests
npm run test:integration

# Run end-to-end tests
npm run test:e2e

# Run performance tests
npm run test:performance

๐Ÿš€ Deployment

The project includes Docker configuration for easy deployment:

# Build and start services
docker-compose up -d

# View logs
docker-compose logs -f

# Stop services
docker-compose down

Requirements

  • Docker & Docker Compose
  • SSL certificates for HTTPS/WSS
  • Redis server
  • Environment variables configured

๐Ÿค Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ™ Acknowledgments

  • Built for HackMIT 2024
  • Powered by Claude (Anthropic), Suno AI, and Mentra OS
  • Special thanks to the smart glasses community

๐ŸŒŸ Star this repo if you find it helpful!

About

hackmit 2025 project

Resources

Readme
Activity

Stars

1 star

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

You are visitor 01402792 โ€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800ร—600. No cookies required.