Thanks to visit codestin.com
Credit goes to github.com

Skip to content

opral/lix-sdk

Repository files navigation

Note

This repo is mirrored from opral/monorepo. Use this mirrored repo as the issue tracker.

Lix JS SDK

NPM Downloads Discord X (Twitter)

Note

Lix is in beta · Follow progress to v1.0 →

Lix is an embeddable change control system that enables Git-like features such as history, versions (branches), diffs, or blame for any file format.

What makes Lix unique:

  • Supports any file format - Track changes in .xlsx, .pdf, .json etc. via plugins.
  • SQL powered - History, versions, and diffs are all queryable via SQL.
  • Embedded - Runs as a single SQLite file, persistable anywhere (local FS, S3, your database).

📖 Go to lix.dev for more information →


Use Cases

  • AI agent sandboxing - Agents propose changes, humans review and approve before applying.
  • Applications with change control - Branch/merge-style reviews, audit trails, and versioning for structured data.

Quick Start

npm install @lix-js/sdk @lix-js/plugin-json
import { openLix, selectWorkingDiff, InMemoryEnvironment } from "@lix-js/sdk";
import { plugin as json } from "@lix-js/plugin-json";

// 1) Open a lix with plugins
const lix = await openLix({
	environment: new InMemoryEnvironment(),
	providePlugins: [json],
});

// 2) Write a file via SQL
await lix.db
	.insertInto("file")
	.values({
		path: "/settings.json",
		data: new TextEncoder().encode(JSON.stringify({ theme: "light" })),
	})
	.execute();

// 3) Query the changes
const diff = await selectWorkingDiff({ lix }).execute();
console.log(diff);

Learn More

License

MIT

About

Issue tracker for the lix change control system and SDK.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •