# @uppy/webcam

> Uppy plugin that takes photos or records videos using the device's camera.

Latest version **6.0.0** (published 2026-08-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install @uppy/webcam
pnpm add @uppy/webcam
yarn add @uppy/webcam
bun add @uppy/webcam
```

## Health

**Score 65/100 (B)** — status: active.

Positive: esm support; no vulnerabilities; recently updated; high maintenance score; popular repo.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 6.0.0 |
| Published | 2026-08-26 |
| First published | 2018-06-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Dependencies | 2 |
| Unpacked size | 119 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 30989 |
| Maintainers | kvz, tim-kos, mifi, uppydev |
| Keywords | file uploader, uppy, uppy-plugin, webcam, picture, photo, video, record, mediarecorder |

## Links

- npm: https://www.npmjs.com/package/@uppy/webcam
- Repository: https://github.com/transloadit/uppy
- Homepage: https://uppy.io
- Issues: https://github.com/transloadit/uppy/issues
- npm.io page: https://npm.io/package/@uppy/webcam

## Dependencies (2)

- [preact](https://npm.io/package/preact.md) ^10.29.2
- [is-mobile](https://npm.io/package/is-mobile.md) ^5.0.0

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 6.0.0 (latest) — 2026-08-26
- 4.0.0-beta.9 (next) — 2024-06-27
- 5.1.0 — 2025-12-02
- 5.0.2 — 2025-10-22
- 5.0.1 — 2025-09-16
- 5.0.0 — 2025-08-22
- 4.3.2 — 2025-08-01
- 4.3.1 — 2025-07-29
- 4.3.0 — 2025-07-29
- 4.2.1 — 2025-06-30
- 4.2.0 — 2025-06-02
- 4.1.3 — 2025-05-18
- 4.1.2 — 2025-04-08
- 4.1.1 — 2025-01-09
- 4.1.0 — 2025-01-06
- … 97 more at https://npm.io/package/@uppy/webcam/versions

## README

# @uppy/webcam

<img src="https://uppy.io/img/logo.svg" width="120" alt="Uppy logo: a smiling puppy above a pink upwards arrow" align="right">

[![npm version](https://img.shields.io/npm/v/@uppy/webcam.svg?style=flat-square)](https://www.npmjs.com/package/@uppy/webcam)
![CI status for Uppy tests](https://github.com/transloadit/uppy/workflows/CI/badge.svg)
![CI status for Companion tests](https://github.com/transloadit/uppy/workflows/Companion/badge.svg)
![CI status for browser tests](https://github.com/transloadit/uppy/workflows/End-to-end%20tests/badge.svg)

The Webcam plugin for Uppy lets you take photos and record videos with a
built-in camera on desktop and mobile devices.

Uppy is being developed by the folks at [Transloadit](https://transloadit.com),
a versatile file encoding service.

## Example

```js
import Uppy from '@uppy/core'
import Webcam from '@uppy/webcam'

const uppy = new Uppy()
uppy.use(Webcam, {
  mirror: true,
  facingMode: 'user',
  showRecordingLength: true,
})
```

## Installation

```bash
$ npm install @uppy/webcam
```

Alternatively, you can also use this plugin in a pre-built bundle from
Transloadit’s CDN: Smart CDN. In that case `Uppy` will attach itself to the
global `window.Uppy` object. See the
[main Uppy documentation](https://uppy.io/docs/#Installation) for instructions.

## Documentation

Documentation for this plugin can be found on the
[Uppy website](https://uppy.io/docs/webcam).

## License

[The MIT License](./LICENSE).

---
_Source: https://npm.io/package/@uppy/webcam · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
