Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@runcitadel/sdk

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@runcitadel/sdk

  • 0.0.1-alpha.1
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Citadel SDK

This package makes it easy to integrate with Citadel. It is a TypeScript-based wrapper around the Citadel REST API.

This is a very early proof of concept, please do not use it in production.

Note about ES Modules

This package uses ES Modules. It can only be imported in true ESM projects, not using require().

Simple example

import {Citadel} from "./lib/index.js";

console.log("Initializing testing...");
// Try to discover a Citadel
let node = await Citadel.discover() || "http://localhost";
let citadel = new Citadel(node);
console.log("Checking online state...");
console.log(await citadel.isOnline());
console.log("Logging in...");
await citadel.login("password123!", true);
console.log("Testing connection...");
await citadel.manager.auth.test();
console.log("Checking Citadel/Umbrel...");
console.log(await citadel.manager.isCitadel() ? "Citadel" : "Umbrel");
// Umbrel is not really supported

FAQs

Package last updated on 01 Oct 2021

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc