# langbase

> The AI SDK for building declarative and composable AI-powered LLM products.

Latest version **1.2.4** (published 2025-10-08) · Apache-2.0 license · 0 weekly downloads

## Install

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

## Health

**Score 60/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.2.4 |
| Published | 2025-10-08 |
| First published | 2023-08-17 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18 |
| Dependencies | 4 |
| Unpacked size | 466 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 66 |
| Maintainers | asharirfan, saqibameen, ahmadawais, msaaddev, ahmadbilaldev |
| Keywords | ai, llm, langbase core, langbase sdk, baseai, base ai, langbase, langbase.com, generative AI |

## Links

- npm: https://www.npmjs.com/package/langbase
- Repository: https://github.com/LangbaseInc/langbase-sdk
- Homepage: https://langbase.com/docs
- Issues: https://github.com/LangbaseInc/langbase-sdk/issues
- npm.io page: https://npm.io/package/langbase

## Dependencies (4)

- [zod](https://npm.io/package/zod.md) ^3.23.8
- [dotenv](https://npm.io/package/dotenv.md) ^16.4.5
- [openai](https://npm.io/package/openai.md) ^4.82.0
- [zod-validation-error](https://npm.io/package/zod-validation-error.md) ^3.3.0

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 1.2.4 (latest) — 2025-10-08
- 1.2.5-snapshot.0 (snapshot) — 2025-10-08
- 1.2.3 — 2025-07-29
- 1.2.2 — 2025-07-17
- 1.2.2-snapshot.1 — 2025-07-16
- 1.2.2-snapshot.0 — 2025-07-16
- 1.2.1 — 2025-07-16
- 1.2.0 — 2025-07-11
- 1.1.68-snapshot.5 — 2025-07-11
- 1.1.68-snapshot.4 — 2025-07-11
- 1.1.68-snapshot.3 — 2025-07-11
- 1.1.68-snapshot.2 — 2025-07-11
- 1.1.68-snapshot.1 — 2025-07-09
- 1.1.68-snapshot.0 — 2025-07-09
- 1.1.56-snapshot.0 — 2025-07-09
- … 88 more at https://npm.io/package/langbase/versions

## README

# Langbase SDK

The AI SDK for building declarative and composable AI-powered LLM products.

## Documentation

> [!NOTE]
> Check the [Langbase SDK documentation](https://langbase.com/docs/sdk) for more details.

The following examples are for reference only. Prefer docs for the latest information.

## Getting started with `langbase` SDK

### Installation

First, install the `langbase` package using npm or yarn:

```bash
npm install langbase
```

or

```bash
pnpm add langbase
```

or

```bash
yarn add langbase
```

## Documentation

Please read the [SDK documentation](https://langbase.com/docs/sdk) →

## Examples

Check out [more examples in the docs](https://langbase.com/docs/langbase-sdk/examples) →

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