New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@lbug/lbug-wasm

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lbug/lbug-wasm

Ladybug GraphDB powered by WebAssembly

Source
npmnpm
Version
0.12.2
Version published
Weekly downloads
980
91.78%
Maintainers
1
Weekly downloads
 
Created
Source

This project has been archived because it is no longer maintained. The latest official version can be found at Ladybug WASM Page (Ladybug Team)

Ladybug-Wasm

Ladybug is an embedded graph database built for query speed and scalability.

Ladybug-Wasm brings Ladybug to every browser thanks to WebAssembly.

Try it out at Ladybug-shell.netlify.app.

Installation

Prerequisite: Enable Cross-Origin-isolation

CDN

<script type="module">
import Ladybug_wasm from 'https://unpkg.com/@Ladybug/Ladybug-wasm@latest/dist/Ladybug-browser.js';
(async () => {
    const Ladybug = await Ladybug_wasm();
    window.Ladybug = Ladybug
    const db = await Ladybug.Database()
    const conn = await Ladybug.Connection(db)
    await conn.execute(`CREATE NODE TABLE User(name STRING, age INT64, PRIMARY KEY (name))`)
    await conn.execute(`CREATE (u:User {name: 'Alice', age: 35});`)
    const res = await conn.execute(`MATCH (a:User) RETURN a.*;`)
    const res_json = JSON.parse(res.table.toString());
})();
</script>

Webpack/React/Vue

npm install @Ladybug/Ladybug-wasm
import Ladybug_wasm from '@Ladybug/Ladybug-wasm';
(async () => {
    const Ladybug = await Ladybug_wasm();
    const db = await Ladybug.Database()
    const conn = await Ladybug.Connection(db)
    await conn.execute(`CREATE NODE TABLE User(name STRING, age INT64, PRIMARY KEY (name))`)
    await conn.execute(`CREATE (u:User {name: 'Alice', age: 35});`)
    const res = await conn.execute(`MATCH (a:User) RETURN a.*;`)
    const res_json = JSON.parse(res.table.toString());
})();

Build from source

git clone https://github.com/unswdb/Ladybug-wasm.git --recursive
make package

Repository Structure

SubprojectDescriptionLanguage
Ladybug_wasmWasm LibraryC++
@Ladybug/Ladybug-wasmJavascript APIJavascript
@Ladybug/Ladybug-shellCypher ShellReact

License

By contributing to Ladybug-wasm, you agree that your contributions will be licensed under the MIT License.

Keywords

cypher

FAQs

Package last updated on 14 Nov 2025

Related posts