Skip to content

link-foundation/links-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

links-client

Client library for link-cli — implementation of Links Theory database.

Available in JavaScript and Python.

Language Implementations

This repository contains implementations in multiple languages:

Quick Start

Prerequisites

Install link-cli globally:

dotnet tool install --global clink

JavaScript/Node.js

cd js
npm install
import { LinkDBService } from '@unidel2035/links-client';

const db = new LinkDBService('/path/to/database.links');

// Create a link
const link = await db.createLink(100, 200);
console.log(link); // { id: 1, source: 100, target: 200 }

// Read all links
const links = await db.readAllLinks();

// Delete a link
await db.deleteLink(1);

Python

cd python
pip install -e .
from links_client import LinkDBService

db = LinkDBService('/path/to/database.links')

# Create a link
link = db.create_link(100, 200)
print(link)  # {'id': 1, 'source': 100, 'target': 200}

# Read all links
links = db.read_all_links()

# Delete a link
db.delete_link(1)

Features

Both implementations provide:

  • LinkDBService - Core database operations (CRUD for links)
  • MenuStorageService - Store and retrieve menu configurations
  • AuthStorageService - Store authentication data (users, tokens, passwords)

Repository Structure

links-client/
├── js/                 # JavaScript/Node.js implementation
│   ├── src/           # Source code
│   ├── examples/      # Usage examples
│   ├── tests/         # Test suite
│   ├── docs/          # Documentation
│   └── package.json   # NPM package configuration
├── python/            # Python implementation
│   ├── links_client/  # Package source code
│   ├── examples/      # Usage examples
│   ├── tests/         # Test suite
│   ├── docs/          # Documentation
│   └── pyproject.toml # Python package configuration
├── README.md          # This file
└── LICENSE            # The Unlicense

Documentation

Examples

License

The Unlicense

Links

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •