Ractyl (Raznar Pterodactyl) is an API Wrapper for Pterodactyl Panels (pterodactyl.io). This API Wrapper designed to help us on some of our projects that require integration with the Pterodactyl API.
Note, this library is still in BETA. So some functions may not be as functional as they are.
You can using YARN or NPM.
With NPM
npm install ractyl
or (install from source)
npm install https://github.com/Raznar-Lab/Raznar-Pterodactyl
With YARN
yarn add ractyl
or (install from source)
It's easy to use. First, import this library into your code.
If you're using TypeScript
import Ractyl from "ractyl";
const ptero = new Ractyl("here, put your pterodactyl panel baseurl", "here, put your apikey");
// if you're an admin
ptero.admin.servers.getAll().then(console.log).catch(console.error);
// if you're client
ptero.client.servers.getAll().then(console.log).catch(console.error);
If you're using JavaScript
const Ractyl = require("ractyl").default;
const ptero = new Ractyl("here, put your pterodactyl panel baseurl", "here, put your apikey");
// if you're an admin
ptero.admin.servers.getAll().then(console.log).catch(console.error);
// if you're client
ptero.client.servers.getAll().then(console.log).catch(console.error);
👏 Congratulations, you already know how to use it. Next.
Inside, you can find the function of getting logs in realtime (can only be found in the client), and managing files and folders is very easy.
Explore other functions in the documentation 😊
You can create an issue in the repository
MIT © Raznar