Skip to content

AydinTheFirst/easypanel.js

Repository files navigation

easypanel.js

💬 Object-oriented library to interact with Easypanel!.

Installation

npm install easypanel.js

Example

Here is a an example

// index.mjs
import "dotenv/config";
import { Client } from "easypanel.js";

const client = new Client({
  // easypanel domain https://easypanel.example.com
  endpoint: process.env.domain,

  // user token which can be claimed at https://easypanel.example.com/settings/users - Settings > Users
  token: process.env.token,

  // when set to true it validates the token, when it fails, throws error
  validate: true,
});

const projects = await client.projects.list();
console.log(projects);

More about easypanel API

Easypanel provides swagger documentation and this library is built according to it.

Contributing

Any contributions are welcomed!

Links