# heywatch

> NodeJS Module to encode videos with HeyWatch, a Cloud Video Encoding Service

Latest version **2.2.0** (published 2015-10-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install heywatch
pnpm add heywatch
yarn add heywatch
bun add heywatch
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.2.0 |
| Published | 2015-10-16 |
| First published | 2013-06-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.8 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Bruno Celeste |
| Maintainers | sadikzzz |
| Keywords | video, encoding, cloud, transcoding, heywatch, h264 |

## Links

- npm: https://www.npmjs.com/package/heywatch
- Repository: https://github.com/HeyWatch/heywatch-nodejs
- Homepage: http://www.heywatchencoding.com
- Issues: https://github.com/HeyWatch/heywatch-nodejs/issues
- npm.io page: https://npm.io/package/heywatch

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads
- [datasets-fi-postalcodes](https://npm.io/package/datasets-fi-postalcodes.md) — 1.1K weekly downloads

## Recent versions

- 2.2.0 (latest) — 2015-10-16
- 2.0.0 — 2015-01-08
- 1.0.1 — 2014-06-11
- 1.0.0 — 2013-06-14

## README

# NodeJS client Library for encoding Videos with HeyWatch

## Install

``` language-console
npm install heywatch
```

## Submitting the job

Use the [API Request Builder](https://app.heywatch.com/job/new) to generate a config file that match your specific workflow.

Example of `heywatch.conf`:

``` language-hw
var s3 = s3://accesskey:secretkey@mybucket

set webhook = http://mysite.com/webhook/heywatch

-> mp4  = $s3/videos/video.mp4
-> webm = $s3/videos/video.webm
-> jpg_300x = $s3/previews/thumbs_#num#.jpg, number=3
```

Here is the javascript code to submit the config file:

``` language-javascript
var heywatch = require('heywatch');

heywatch.createJob({
  'conf': 'heywatch.conf',
  'source': 'https://s3-eu-west-1.amazonaws.com/media.heywatch.com/test.mp4',
  'vars': {'vid': 1234}
}, function(job) {
  if(job.status == 'ok') {
    console.log(job.id);
  } else {
    console.log(job.error_code);
    console.log(job.error_message);
  }
});
```

Note that you can use the environment variable `HEYWATCH_API_KEY` to set your API key.

*Released under the [MIT license](http://www.opensource.org/licenses/mit-license.php).*

---

* HeyWatch website: http://www.heywatchencoding.com
* API documentation: http://www.heywatchencoding.com/docs
* Github: http://github.com/heywatch/heywatch_api-ruby
* Contact: [support@heywatch.com](mailto:support@heywatch.com)
* Twitter: [@heywatch](http://twitter.com/heywatch) / [@sadikzzz](http://twitter.com/sadikzzz)

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