A privacy-first, open-source Progressive Web App for viewing Tesla dashcam footage — entirely in your browser.
All video processing happens client-side — no uploads, no server, complete privacy.
Note: iOS is not supported. iOS does not support the File System Access API or the
webkitdirectoryinput attribute required to read local folders in the browser.
- Features
- Browser Compatibility
- Quick Start
- Usage
- Project Structure
- Technology Stack
- Tesla Cam Folder Structure
- Deployment
- Contributing
- Privacy & Security
- Troubleshooting
- Support
- License
- Complete Privacy — Videos never leave your device. Zero uploads.
- Multi-Angle Replay — Grid (4 cameras), Single, and Map view modes
- Real Telemetry from SEI Metadata — Speed, throttle, braking, blinkers, autopilot state, steering angle, gear, GPS, heading, acceleration (requires firmware 2025.44.25+, HW3+)
- GPS Map Mode — Interactive route visualization via OpenStreetMap (Leaflet)
- Video Editor — Watermark support for privacy and sharing
- Event Organization — Browse SavedClips, SentryClips, and RecentClips
- Synchronized Playback — All camera angles in perfect sync
- Keyboard Shortcuts — Efficient navigation
- Offline Support — PWA via Workbox; works after first load
- Installable — Desktop and mobile app install support
| Browser | Support |
|---|---|
| Chrome 86+, Edge 86+, Opera 72+ | Full (File System Access API) |
| Safari, Firefox | Partial (fallback to <input webkitdirectory>) |
# Clone the repo
git clone https://github.com/rayduui/NeedleCamViewer.git
cd needle-cam
# Install dependencies
npm install
# Start development server (http://localhost:3000)
npm run devOther commands:
npm run build # Production build + static export → out/
npm run lint # ESLint check
npm test # Jest unit tests
npm run test:watch # Jest in watch mode- Open
http://localhost:3000in a supported browser. - Click "Select TeslaCam Folder" and navigate to the
TeslaCamfolder on your USB drive (the folder containingSavedClips,SentryClips,RecentClips). - Grant read permission when prompted.
- Select any event from the sidebar to play footage.
| Mode | Description |
|---|---|
| Grid | All 4 cameras simultaneously |
| Single | One camera at a time (select from dropdown) |
| Map | GPS route on an interactive map |
| Key | Action |
|---|---|
Space / K |
Play / Pause |
F |
Toggle Fullscreen |
M |
Mute / Unmute |
← |
Skip back 5 seconds |
→ |
Skip forward 5 seconds |
↑ |
Increase volume |
↓ |
Decrease volume |
NeedleCamViewer/
├── app/ ← Next.js routing (layout, page, globals.css)
├── components/
│ ├── layout/ ← Header, Sidebar, EventList, WelcomeScreen
│ ├── player/ ← VideoPlayer, VideoGrid, PlaybackControls,
│ │ ViewModeSelector, TelemetryData, MapView
│ └── settings/ ← SettingsPanel
├── context/ ← SettingsContext (theme, speed units)
├── hooks/ ← useTeslaCam, useVideoPlayer
├── lib/ ← dashcam-mp4.js, helpers.js
├── __tests__/lib/ ← Jest unit tests
├── public/
│ ├── dashcam.proto ← Protobuf schema for SEI telemetry
│ └── icons/ ← PWA icons
├── next.config.js
└── package.json
- Next.js 16 — App Router, static export
- React 18 — Hooks-based UI
- Leaflet / react-leaflet — GPS map visualization
- next-pwa — Service worker / offline support via Workbox
- protobufjs — SEI NAL unit decoding
- Canvas API — Video editing and watermark rendering
- File System Access API — Local file access without uploads
- CSS Modules — Component-scoped styling
TeslaCam/
├── SavedClips/
│ └── 2024-03-01_10-30-45/
│ ├── front.mp4
│ ├── back.mp4
│ ├── left_repeater.mp4
│ └── right_repeater.mp4
├── SentryClips/
└── RecentClips/
npm run build
vercel --prodnpm run build
netlify deploy --prod --dir=out- Set
basePathinnext.config.js:basePath: '/NeedleCamViewer',
- Build and deploy:
npm run build gh-pages -d out
Contributions are welcome and appreciated!
- Fork the repository
- Create a branch:
git checkout -b feature/your-feature-name - Make your changes and add tests where appropriate
- Lint:
npm run lint - Test:
npm test - Commit:
git commit -m "feat: describe your change" - Push:
git push origin feature/your-feature-name - Open a Pull Request against
main
- Picture-in-picture mode
- Event search and filtering by date/time
- Support for additional camera configurations
- Video quality selection
- Event bookmarking and notes
- Multi-language support
- Export video clips (not just snapshots)
Please open a GitHub issue with:
- Your browser and version
- Steps to reproduce
- Expected vs actual behavior
- Any relevant console errors
- No uploads — Videos stay on your device
- No tracking — No analytics or third-party scripts
- Local processing — All video decoding happens in your browser
- Read-only — The app only requests read permission, never write
- Temporary access — Browser file access is cleared when you close the tab
Videos not loading — Ensure you selected the TeslaCam folder (the parent containing SavedClips, SentryClips, RecentClips). Verify files are standard H.264 MP4.
Telemetry not showing — SEI metadata requires firmware 2025.44.25+ and Hardware 3+. Not all clips will have embedded telemetry.
Browser not supported — Use Chrome 86+, Edge 86+, or Opera 72+ for full support.
PWA not installing — Ensure you're on HTTPS or localhost.
If NeedleCamViewer has been useful to you, consider buying me a coffee — it helps keep the project going!
MIT License
Copyright (c) 2026 Raymond Chu
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Disclaimer: NeedleCamViewer is an independent, community-built tool. It is not affiliated with, endorsed by, or connected to Tesla, Inc. in any way.