Socket
Book a DemoInstallSign in
Socket

@triplit/client

Package Overview
Dependencies
Maintainers
3
Versions
258
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@triplit/client

latest
npmnpm
Version
1.0.50
Version published
Maintainers
3
Created
Source

Triplit Client

@triplit/client is the official library running Triplit in the client and syncing with a Triplit server.

Official documentation is hosted here

Installation

You can install @triplit/client using npm, pnpm, yarn, or bun:

npm i @triplit/client
pnpm add @triplit/client
yarn add @triplit/client
bun add @triplit/client

Basic Usage

Here's a simple example of how to use @triplit/client:

import { Client } from '@triplit/client';

const client = new Client({
  /* configuration */
});

// Fetch data
const data = client.fetch(client.query('todos').build());

// Insert data
await client.transact(async (tx) => {
  await tx.insert('todos', {
    text: 'New Todo',
    tagIds: new Set(['tag1', 'tag2']),
  });
  await tx.insert('tags', {
    text: 'New Todo',
    tagIds: new Set(['tag1', 'tag2']),
  });
});

Documentation

For more information and examples of @triplit/client in action, please refer to the official Triplit documentation.

Framework Bindings

FrameworkPackageDocs
Svelte@triplit/svelteSvelte Docs
React@triplit/reactReact Docs

Keywords

triplit

FAQs

Package last updated on 31 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts