GithubHelp home page GithubHelp logo

x127f / image-manipulation-api Goto Github PK

View Code? Open in Web Editor NEW
3.0 0.0 1.0 32.17 MB

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

JavaScript 52.21% HTML 9.58% CSS 0.16% TypeScript 37.23% SCSS 0.82%
canvas node-canvas image-manipulation rank-card discord-canvas

image-manipulation-api's Introduction

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

image-manipulation-api's People

Contributors

dependabot[bot] avatar samuelscheit avatar timh04 avatar xnacly avatar

Stargazers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.