Skip to main content

Getting Started


This documentation site makes a lot of use of CodeSandbox TypeScript examples, where you can use the Rimbu library live in a browser environment. Try it out to quickly browse through many examples:

Open file below in new window with full type-check



To install the library in your own project:

npm install @rimbu/core


yarn add @rimbu/core


Create a file called rimbu.ts and add the following:

export * from '';

Or using a pinned version (x.y.z):

export * from '';

Then import what you need from rimbu.ts:

import { SortedMap } from './rimbu.ts';


We recommend adding the following settings to your tsconfig.json file:

{  "compilerOptions": {    "skipLibCheck": true,    "noStrictGenericChecks": true  }}

Ready to use#

Import into and use immutable goodness in your code:

import { List, Stream } from '@rimbu/core';
const list = List.from(Stream.range({ start: 2, amount: 64 }));console.log(list.toString());