Skip to content

Latest commit

ย 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“น Webcam Preview Tool

A sleek, zero-install browser tool that turns your webcam into a professional preview station

Ever needed to quickly check your webcam before a meeting? Want to test multiple cameras without installing bloatware? Need to zoom in on specific details? This lightweight, privacy-focused tool does it allโ€”right in your browser.

๐ŸŒ Try it now - Live Demo

โœจ What Makes This Special

๐Ÿš€ Instant Start - Opens and auto-starts your camera in under a second
๐ŸŽฅ Multiple Cameras - Seamlessly switch between all your connected webcams
๐Ÿ” Pro Zoom - Select any area with your mouse to zoom up to 5x
๐Ÿ‘ป Ghost Mode - Controls fade away when you're not moving the mouse
๐Ÿ“ธ One-Click Captures - Screenshot with a single button press
โšก Lightning Fast - No installation, no loading, just pure performance
๐Ÿ”’ 100% Private - Everything runs locallyโ€”your video never leaves your browser

๐ŸŽฏ Perfect For

  • ๐Ÿ’ผ Pre-meeting camera checks
  • ๐ŸŽฌ Content creators testing setups
  • ๐Ÿ”ง Webcam hardware testing
  • ๐ŸŽจ Frame composition and lighting tests
  • ๐Ÿ“ท Quick screenshot captures
  • ๐Ÿ”ฌ Detailed inspection with zoom

๐Ÿš€ Quick Start

Option 1: Use Online (Fastest)

๐Ÿ‘‰ Open Live Demo - Start using it right now!

Option 2: Download & Run Locally

  1. Download โ†’ Save index.html to your computer
  2. Open โ†’ Double-click the file
  3. Allow โ†’ Grant camera permission (one-time only)
  4. Done! โ†’ Your camera starts automatically

That's it. No npm install. No pip install. No package managers. Just pure HTML5 magic.

๐ŸŽฎ How to Use

The Basics

What You Do What Happens
๐Ÿ–ฑ๏ธ Move Mouse Controls appear like magic
๐ŸŽฏ Click & Drag Select an area โ†’ Instant zoom
๐Ÿ‘† Single Click Reset zoom back to normal
๐ŸŽฅ Click Camera Switch to that camera
๐Ÿ–ฅ๏ธ Fullscreen Immersive fullscreen mode
๐Ÿ“ธ Screenshot Download current frame
โน๏ธ Stop Turn off the camera

Pro Tips

๐Ÿ’ก Invisible Interface: Controls auto-hide after 3 secondsโ€”move your mouse to bring them back
๐Ÿ’ก Precise Zoom: The smaller your selection box, the bigger the zoom
๐Ÿ’ก Quick Reset: Just click once anywhere on the video
๐Ÿ’ก Smooth Switching: Camera switching is instantโ€”no interruption

๐ŸŽจ Features Deep Dive

๐ŸŽฌ Auto-Start Magic

The moment you open the tool, boomโ€”your camera is live. No clicking through menus, no configuration screens. Just instant preview.

๐Ÿ” Zoom Like a Pro

Want to check if your hair is perfect? Or inspect that sticky note in the background?

  1. Click and drag a box around any area
  2. Release your mouse
  3. BOOMโ€”instant zoom up to 5x magnification
  4. Click once anywhere to zoom back out

Minimum selection: 50ร—50 pixels (prevents accidental tiny zooms)

๐Ÿ‘ป Invisible UI

The interface knows when to get out of your way:

  • Move mouse โ†’ Controls smoothly fade in
  • Stop moving โ†’ After 3 seconds, everything fades out
  • Perfect for โ†’ Clean screenshots and unobstructed viewing

๐ŸŽฅ Multi-Camera Maestro

Got multiple webcams? External camera? The tool finds them all:

  • Hover to see your camera list
  • Click any camera to switch instantly
  • Active camera is highlighted
  • Device names shown clearly

๐Ÿ“Š Real-Time Stats

Hover the bottom-right to see:

  • Camera Name โ†’ Which device is active
  • Resolution โ†’ Exact pixel dimensions (e.g., 1920 ร— 1080)
  • Aspect Ratio โ†’ For composition nerds (e.g., 1.78:1)

๐Ÿ“ธ Screenshot Superpowers

One click saves the current frame as a PNG:

  • Full resolution capture
  • Timestamped filename
  • Downloads instantly
  • Zero quality loss

๐Ÿ’ป Browser Compatibility

Browser Minimum Version Status
๐ŸŸข Chrome 88+ Fully Supported
๐ŸŸข Edge 88+ Fully Supported
๐Ÿ› ๏ธ Technical Stack

Built with the modern web platform:

  • WebRTC API โ†’ Native camera access
  • Vanilla JavaScript (ES6+) โ†’ Zero dependencies
  • CSS3 โ†’ Glassmorphism effects with backdrop filters
  • HTML5 Canvas โ†’ Screenshot rendering
  • Media Streams API โ†’ Multi-camera management

File Size: ~8KB (yes, kilobytes!)
Load Time: < 100ms
Dependencies: None. Nada. Zero.

๐Ÿ“ Project Structure

index.html              # The whole app
README.md         # This file

Yep, it's literally one file. That's the point.

๐Ÿš€ For Developers

Want to Customize?

Just open index.html in your favorite editor:

<!-- Change zoom limits -->
const scale = Math.min(scaleX, scaleY, 5); // Change 5 to whatever

<!-- Adjust auto-hide timer -->
mouseTimer = setTimeout(() => {...}, 3000); // Change 3000 (3 sec)

<!-- Modify resolution request -->
width: { ideal: 1920 },  // Request different resolution
height: { ideal: 1080 }

No Build Process Needed

  • Edit the HTML file
  • Refresh your browser
  • That's it

Tech Highlights

// Clean async/await camera enumeration
const devices = await navigator.mediaDevices.enumerateDevices();

// Smooth transform animations
transform: scale(${scale}) translate(${offsetX}%, ${offsetY}%);

// Instant screenshot with canvas
ctx.drawImage(elements.video, 0, 0);
canvas.toBlob(blob => download(blob));

๐ŸŽฏ Use Cases

๐Ÿ‘” Corporate

  • Pre-meeting camera checks
  • Test new webcam installations
  • Verify video quality before calls

๐ŸŽฅ Content Creation

  • Frame your shot perfectly
  • Check lighting and composition
  • Test multiple camera angles

๐Ÿ”ง Troubleshooting

  • Verify webcam is working
  • Compare multiple cameras
  • Check actual resolution

๐ŸŽจ Creative

  • Zoom for detail work
  • Capture reference photos
  • Test camera positions

๐Ÿค” FAQ

Q: Does this work offline?
A: Yes! After the first load, it works without internet.

Q: Can I use this on mobile?
A: Yes! Works on mobile browsers with camera support.

Q: Where are screenshots saved?
A: Your browser's default download folder with timestamp.

Q: Is my video recorded?
A: Nope. Nothing is recorded unless you click screenshot.

Q: Why is it so fast?
A: No frameworks, no bundlers, no bloatโ€”just pure browser APIs.

Q: Can I embed this in another page?
A: Absolutely! Just iframe it or copy the code.

๐ŸŒŸ Why This Exists

Because in 2026, you shouldn't need to:

  • Install a 500MB app to test your webcam
  • Sign up for an account to preview your camera
  • Upload your video to a server to take a screenshot
  • Navigate through 10 menus to switch cameras

This tool does one thing, does it well, and respects your privacy.

๐Ÿ“„ License

Free to use, modify, and distribute. No strings attached.

๐Ÿค Contributing

Found a bug? Want a feature? The HTML is right thereโ€”fork it, fix it, share it!


Made with ๐Ÿ’œ for anyone who just wants to check their webcam without the hassle

No tracking โ€ข No servers โ€ข No nonsense

โญ Star this repo if it saved you from installing yet another app

About

A lightweight, standalone HTML tool for previewing and testing webcams with advanced features like zoom and auto-hide controls.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages