Arbiter.JS | Based off the Bingle Arbiter
Go to file
theo-doree 76715a89ba Initial Commit 2024-01-06 17:55:03 -05:00
src Initial Commit 2024-01-06 17:55:03 -05:00
.env.example Initial Commit 2024-01-06 17:55:03 -05:00
.gitignore Initial Commit 2024-01-06 17:55:03 -05:00
README.md Initial Commit 2024-01-06 17:55:03 -05:00
package-lock.json Initial Commit 2024-01-06 17:55:03 -05:00
package.json Initial Commit 2024-01-06 17:55:03 -05:00

README.md

bingle-arbiter

The Bingle arbiter is designed to be used with almost any revival backend.

It comes preloaded with some Lua scripts made by kinery and jackd900.

You will have to replace/modify these scripts when implementing for your own projects.

Set your desired settings in .env.example, then rename it to .env.

Routes

GET /render/asset/:id

200 OK
iVBORw0KGgoAAAANSUhEUgAAAtAAAALQCAYAAAC...

GET /render/asset/3d/:id

200 OK
{
	"camera": {
		"position": { "x": 0, "y": 0, "z": 0 },
		"direction": { "x": 0, "y": 0, "z": 0 }
	},
	"AABB": {
		"min": { "x": 0, "y": 0, "z": 0 },
		"max": { "x": 0, "y": 0, "z": 0 }
	},
	"files": {
		"scene.obj": { "content": "..." },
		"scene.mtl": { "content": "..." },
		"Handle1Tex.png": { "content": "..." }
	}
}

GET /render/texture/:id

200 OK
iVBORw0KGgoAAAANSUhEUgAAAtAAAALQCAYAAAC...

GET /render/user/headshot/:id

200 OK
iVBORw0KGgoAAAANSUhEUgAAAtAAAALQCAYAAAC...

GET /render/user/bodyshot/:id

200 OK
iVBORw0KGgoAAAANSUhEUgAAAtAAAALQCAYAAAC...

GET /render/user/3d/:id

200 OK
{
	"camera": {
		"position": { "x": 0, "y": 0, "z": 0 },
		"direction": { "x": 0, "y": 0, "z": 0 }
	},
	"AABB": {
		"min": { "x": 0, "y": 0, "z": 0 },
		"max": { "x": 0, "y": 0, "z": 0 }
	},
	"files": {
		"scene.obj": { "content": "..." },
		"scene.mtl": { "content": "..." },
		"Handle1Tex.png": { "content": "..." }
	}
}