Skip to content
This repository has been archived by the owner on Feb 27, 2022. It is now read-only.

image-manipulation-api for trenite, outsourcing image generation to increase performance

Notifications You must be signed in to change notification settings

x127f/image-manipulation-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image (cdn) rest-api Trenite

Features (planned):

  • welcome image (userProfilePic, username, background) [url parameters]
  • rank cards (xp system) [lvl, xp, username, userProfilePic][url parameters]
  • leave image (userProfilePic, username, background) [url parameters]

Architecture:

  • express.js
  • hashbased auth (url-param)

endpoints:

endpoints: docs
/setup/welcome
/setup/leave
/fortnite/shop
/fortnite/leaks
/economy/slots

Auth:

use fetch.js

const { fetch } = require("./fetch");
const fs = require("fs");

fetch("/setup/welcome", {
	user_tag: "xnacly#6370",
	user_id: "417699816836169728",
	guild_name: "Trenite",
	guild_avatar: "6e4174e86c4b36be80d2159f8214788a",
	guild_id: "683026970606567440",
	member_count: "42",
	user_avatar: "f76492e43b50b60ad4a3299691225f73",
	background: "",
})
	.then((res) => res.buffer())
	.then((buffer) => fs.writeFileSync("image.png", buffer));

see test.js for a more in depth example

About

image-manipulation-api for trenite, outsourcing image generation to increase performance

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •