Getting started

Installation

Add Tempo to a project with your package manager.

Install the package

npm install tempo-http

No dependencies

Tempo uses the platform's fetch, URL and AbortController, so it adds nothing else to your lockfile.

TypeScript

Types ship with the package. Tempo needs "moduleResolution": "bundler" or "nodenext" in your tsconfig.json.

json
{  "compilerOptions": {    "module": "esnext",    "moduleResolution": "bundler",    "strict": true  }}

From a CDN

html
<script type="module">  import { createClient } from "https://esm.sh/tempo-http@2";</script>

Was this page helpful?

Updated