💬 Object-oriented library to interact with Easypanel!.
npm install easypanel.js
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);
Easypanel provides swagger documentation and this library is built according to it.
Any contributions are welcomed!