VideohatiDocs
SDKs

SDKs overview

Pick the right Videohati client library — Node.js, React, Laravel, or the web player — and understand where each one runs.

An SDK saves you from hand-writing HTTP calls. It gives you typed methods, retries, the multipart upload flow, and webhook verification in one package — so you write videohati.videos.upload(file) instead of stitching requests together yourself.

Videohati publishes four official libraries. Three run on the server or in the browser; one is the player that renders the video itself.

Which one do I need?

PackageInstallUse it forRuns where
@videohati/nodenpm install @videohati/nodeUploading video, creating playback sessions, managing webhooksNode.js server
@videohati/reactnpm install @videohati/react @videohati/playerThe player component plus upload and metadata hooksBrowser + React
videohati/laravelcomposer require videohati/laravelThe same server work from PHP, with a Blade embed directivePHP server
@videohati/playernpm install @videohati/player or the script tagRendering a protected video on any pageAny website
REST API directlyAny language we don't ship an SDK forYour server — see /docs/api

@videohati/node, @videohati/react, and videohati/laravel are at 1.0.0-rc.0. @videohati/player is at 1.0.0.

The golden path

Every integration follows the same rule: your server holds the API key; the browser only ever sees a short-lived session token.

  1. On your server, use @videohati/node or videohati/laravel to upload a video and create a playback session.
  2. Hand the session token — not the API key — to the page.
  3. In the browser, @videohati/player (or @videohati/react) renders the video from that token.

The API key never leaves the server, so no one can read it from page source and use your account.

Next steps