Skip to main content

Installation

Temelj packages are available through multiple package registries. Choose your preferred package manager and installation method.

Package managers

Temelj supports npm, pnpm, and JSR. All packages are published to both npm and JSR registries.

npm

Standard npm registry

pnpm

Fast, disk space efficient

JSR

Modern JavaScript registry

Installation options

You can install Temelj in two ways:
  1. Individual packages - Install only the packages you need
  2. Unified package - Install the main @tinrab/temelj package and import from subpaths

Individual packages

Install specific packages from the @temelj namespace:
npm install @temelj/async
npm install @temelj/result
npm install @temelj/string
Then import from each package:
import { retry, delay } from '@temelj/async';
import { ok, err, Result } from '@temelj/result';
import { toCamelCase } from '@temelj/string';

Unified package

Install the main package and import from subpaths:
npm install @tinrab/temelj
Then import from subpaths:
import { retry, delay } from '@tinrab/temelj/async';
import { ok, err, Result } from '@tinrab/temelj/result';
import { toCamelCase } from '@tinrab/temelj/string';

Available packages

Here’s the complete list of available packages:
PackagenpmJSR
async@temelj/async@temelj/async
color@temelj/color@temelj/color
handlebars@temelj/handlebars@temelj/handlebars
id@temelj/id@temelj/id
iterator@temelj/iterator@temelj/iterator
math@temelj/math@temelj/math
mdx@temelj/mdx@temelj/mdx
mdx-react@temelj/mdx-react@temelj/mdx-react
request@temelj/request@temelj/request
result@temelj/result@temelj/result
string@temelj/string@temelj/string
value@temelj/value@temelj/value
All packages are tree-shakeable and have minimal dependencies. Most packages are zero-dependency.

TypeScript configuration

Temelj requires TypeScript 5.0 or higher. Ensure your tsconfig.json has appropriate settings:
tsconfig.json
{
  "compilerOptions": {
    "target": "ES2020",
    "module": "ESNext",
    "moduleResolution": "bundler",
    "strict": true
  }
}

Next steps

Quick start

Get started with your first Temelj utilities

Package guides

Explore detailed documentation for each package

Build docs developers (and LLMs) love