I needed a simple way to record my screen directly from the browser — no extensions, no backend, no bloated tools.
Most solutions I found were either:
- Heavy Chrome extensions
- Required a server
- Or locked behind paywalls
So I decided to build a lightweight screen recorder using the browser’s native MediaRecorder API.
Modern browsers expose powerful media APIs that are still underused.
The MediaRecorder API allows you to:
- Capture video and audio streams
- Control recording lifecycle
- Export recordings as blobs
Best part: no external libraries required.
The flow is straightforward:
- Request screen access using
navigator.mediaDevices.getDisplayMedia() - Pass the stream to
MediaRecorder - Collect video chunks
- Export them as a downloadable file
This can be useful for:
- Developers recording bug reproductions
- Quick tutorial creators
- Internal demos or documentation
- Anyone who wants a no-install screen recorder
The project is fully open-source, and I’d love feedback or contributions.
GitHub repo:
👉 https://github.com/rohaaaaaan/screen-recorder
If you find it useful, consider giving it a ⭐ — it really helps with visibility.
This was a fun exploration of browser media APIs, and I’m planning to improve it further.
If you’ve built something similar or have ideas for improvement, I’d love to hear your thoughts.
Top comments (0)