---
name: langchain4j
summary: "langchain4j is an open-source Java project with 12.3k GitHub stars. It is associated with anthropic, chatgpt, chroma, embeddings. The repository is actively maintained, with recent commits."
language: Java
license: Apache-2.0
repo: https://github.com/langchain4j/langchain4j
source: https://opensources.dev/resource/langchain4j
health: 100
---

# langchain4j

langchain4j is an open-source Java project with 12.3k GitHub stars. It is associated with anthropic, chatgpt, chroma, embeddings. The repository is actively maintained, with recent commits.

## LangChain4j Documentation

### Table of Contents

- [Prerequisites](#prerequisites)
- [Installation](#installation)

This is built using [Docusaurus](https://docusaurus.io/), a modern static docs/website generator.

### Prerequisites

- [Node.JS](https://nodejs.org/en/download) (20+)

If Node.js is managed by Node Version Manager (nvm), run:

```shell
nvm use
```

### Installation

This command installs all the Node dependencies.

```bash
npm ci
```

### Build

This command builds the deployable static artifacts (i.e., html, js, css, etc) under the `build` directory. This static content can then be deployed to `GitHub pages` or `Vercel`, etc.

```tsx
npm run build
```

### Local Development

This command starts a local development server and opens up a browser window. Most changes are reflected live without
having to restart the server.

```tsx
npm run start
```
