Magicbox
A web app for sharing embedded content in real time with your friends.
Install / Use
/learn @mrganser/MagicboxREADME
Magic Box
A real-time media sharing platform. Create channels, share links, and watch YouTube videos together with synchronized playback.
Demo
https://themagicbox.onrender.com/


Features
- Real-time Sharing - Share links instantly with everyone in your channel
- YouTube Sync - Watch YouTube videos together with synchronized play/pause
- Public & Private Channels - Create public channels or private ones shared only via link
- Multiple Media Types - Support for YouTube, Spotify embeds, images, PDFs, and more
Tech Stack
- Framework: Next.js with App Router
- Language: TypeScript
- Styling: Tailwind CSS + shadcn/ui
- Database: MongoDB Atlas with Prisma
- Real-time: Socket.IO
- Linting/Formatting: Biome
- Spam Protection: Google reCAPTCHA v3
Getting Started
Prerequisites
- Node.js >= 20
- A MongoDB database, for example the MongoDB Atlas free tier
Installation
-
Clone the repository
-
Install dependencies:
npm install -
Set up your environment variables:
cp .env.example .envConfigure the following in your
.envfile:DATABASE_URL- MongoDB connection string (e.g.,mongodb+srv://user:pass@cluster.mongodb.net/xyz)NEXT_PUBLIC_RECAPTCHA_SITE_KEY- reCAPTCHA site key (optional)RECAPTCHA_SECRET_KEY- reCAPTCHA secret key (optional)
-
Set up the database:
npx prisma db push -
Start the development server:
npm run devThe app will be available at http://localhost:3000
Running Tests
npm test
Deployment
This project is ready to deploy to platforms like Render, Vercel, or Railway. Make sure to:
- Set up a MongoDB database like Atlas cluster and get your connection string
- Configure environment variables
- Run
npx prisma db pushto initialize the database schema
License
This project is licensed under the MIT License - see the LICENSE file for details.
Related Skills
docs-writer
99.6k`docs-writer` skill instructions As an expert technical writer and editor for the Gemini CLI project, you produce accurate, clear, and consistent documentation. When asked to write, edit, or revie
model-usage
342.0kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
arscontexta
2.9kClaude Code plugin that generates individualized knowledge systems from conversation. You describe how you think and work, have a conversation and get a complete second brain as markdown files you own.
cursor-agent-tracking
134A repository that provides a structured system for maintaining context and tracking changes in Cursor's AGENT mode conversations through template files, enabling better continuity and organization of AI interactions.
