New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@zorlin/orbiter

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zorlin/orbiter

[![Orbiter core tests](https://github.com/riffcc/orbiter-core/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/riffcc/orbiter-core/actions/workflows/test.yml) [![codecov](https://codecov.io/gh/riffcc/orbiter-core/graph/badge.svg?token

latest
Source
npmnpm
Version
0.1.8
Version published
Maintainers
1
Created
Source

Orbiter core

Orbiter core tests codecov

This is the source code for the Orbiter network. The UI code is in a separate repository. Use the present repository as a dependency in your UI code for Orbiter-based apps, or else as a command-line tool for managing Orbiter Lens on a server.

Programmatic use

We recommend using pnpm to install Orbiter in your projects.

Installation

$ pnpm install @riffcc/orbiter

Use

Orbiter must be initialised with an instance of Constellation, which is used for distributed data storage and networking. Constellation itself is based on OrbitDB, Helia and Libp2p.

import { créerConstellation } from "@constl/ipa";
import { createOrbiter } from "@riffcc/orbiter";

const constellation = créerConstellation();
const orbiter = createOrbiter({ constellation });

// Do orbiter stuff...

Untill complete documentation is ready, refer to the orbiter.ts code to see available functions.

Command line client

This package also comes with a command-line client, useful for setting up Orbiter lenses on servers (e.g., DigitalOcean).

Installation

To use the command-line client, first install Orbiter as a global pnpm package.

$ pnpm install -g @riffcc/orbiter

Use

Use orb config to set up a lens and generate the required config. The dir option specifies the path to the root folder for the Orbiter lens in which all data and keys related to the lens will be stored. Default directory is ./orbiter.

$ orb config --dir "path/to/lens"

Use orb expor-config to export the generated config to use in UI development. The format option can be "vite" or "json".

$ orb export-config --dir "path/to/lens" --format "vite"

Use orb lens to run the configured lens.

$ orb run --dir "path/to/lens"

FAQs

Package last updated on 24 Jan 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