Giter VIP home page Giter VIP logo

lthn's Introduction

Lethean Unified Command Line & Rest API

Welcome to the magic part of the Lethean App, a client side restful TLS API, written in TypeScript and Rust.

This suite of features enables PWA's to become first class citizen's within the installed operating system.

To fire up a development server run the below and visit: https://localhost:36911

npm install
# Replace 'lthn' with 'npm run dev' for examples below
npm run dev backend start

The whole process will get better over time, for now.

To navigate the HTML help documentation visit https://localhost:36911 and convert the commands to the path

For example, the chain start command:

daemon chain start

becomes: https://localhost:36911/daemon/chain/start

The arguments documented can be sent as a POST request with a json body.

Conversion rule: --confirm-external-bind

Becomes: {"confirmExternalBind": true}

You will get confirmation that the process has been created instantly.

To gather the stdOut from the process please subscribe to the executables WebSocket channel.

Currently, you can read and write files, download the cli, interact with all Lethean daemons via CMD or REST

IPC

A ZeroMQ websocket is loaded to: ws://localhost:36910 to start a development service run

The following endpoints can be used

  • ws://localhost:36910/rep

  • ws://localhost:36910/pub

  • ws://localhost:36910/push

  • ZeroMQServer.sendPubMessage(channel: string, message: string)

  • ZeroMQServer.sendRepMessage(channel: string, message: string)

  • ZeroMQServer.sendPushMessage(channel: string, message: string)

npm run dev backend ipc

ProcessManager IO

You can access the input/output from ws://localhost:36909

Commands (in dev mode)

  • lthn update cli
  • lthn daemon chain start
  • lthn daemon chain import
  • lthn daemon chain export
  • lthn daemon wallet cli
  • lthn daemon wallet rpc
  • lthn daemon wallet vpn
  • lthn filesystem read --path=~/Lethean/(path is relative from here)
  • lthn filesystem write --path=~/Lethean/(path is relative from here)
  • lthn filesystem list --path=~/Lethean/(path is relative from here)
  • lthn filesystem path --convert=(OS Aware path is returned)

Install VPN

Executables

  • lthnvpnc
  • lthnvpnd
  • lvmgmt
cd refrence/lthn-vpn
pip install .

Uninstall: pip uninstall lethean-vpn

One line installer

  • Mac/Linux
curl -fsSL https://raw.githubusercontent.com/letheanVPN/lthn/main/install.sh | sh
  • Windows Powershell
iwr https://raw.githubusercontent.com/letheanVPN/lthn/main/install.ps1 -useb | iex

The CLI install will give you the $PATH variable to add

  • lthn --help or for windows lthn.exe --help

lthn's People

Contributors

bubafistah avatar snider avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.