@bloby/slimlinth
v1.0.1
Published
Local sector config generator for the Slimlinth panel.
Downloads
169
Readme
@bloby/slimlinth
Local sector config generator for the Slimlinth panel.
Install
npm install @bloby/slimlinthUsage
const { Create, Value, Import } = require('@bloby/slimlinth');
Create.JsonName = 'your name file';
Create.Name = 'Discord-Guard';
Value.RAM = '2G';
Import.docker = 'node-20';
await Create.deploy();Generates sectors/{file}.core.json in your current directory.
API
Create
| Property | Type | Description |
|---|---|---|
| Create.JsonName | string | Filename and sector identifier |
| Create.Name | string | Display name of the sector |
| Create.deploy() | async | Generates the .core.json file |
Value
| Property | Type | Description |
|---|---|---|
| Value.RAM | string | RAM allocation. Accepts 512M–16G |
| Value.Done | string | (optional) Ready signal string |
Import
| Property | Type | Description |
|---|---|---|
| Import.docker | string | Docker image identifier |
RAM Format
Valid values: 512M to 16384M or 1G to 16G.
Value.RAM = '512M';
Value.RAM = '4G';
Value.RAM = '8192M';Invalid values throw an Error.
Output
{
"meta": {
"schema": "slimlinth:v1",
"generated": "2026-04-04T16:00:00.000Z"
},
"sector": {
"jsonName": "your name file",
"name": "Discord-Guard",
"status": "LOCKED"
},
"resources": {
"ram": "2G"
},
"image": {
"docker": "node-20"
},
"runtime": {
"boot": {},
"shutdown": "SIGTERM"
},
"env": []
}