1
0
Fork
You've already forked nyx-api
0
API for NYX
  • TypeScript 100%
Find a file
2026年04月01日 18:38:02 +01:00
db/codm Initial commit 2026年01月06日 00:10:26 +00:00
public/image Initial commit 2026年01月06日 00:10:26 +00:00
.env.example Initial commit 2026年01月06日 00:10:26 +00:00
.gitignore Initial commit 2026年01月06日 00:10:26 +00:00
codm.ts Initial commit 2026年01月06日 00:10:26 +00:00
discord.ts Initial commit 2026年01月06日 00:10:26 +00:00
fun.ts Initial commit 2026年01月06日 00:10:26 +00:00
image.ts Initial commit 2026年01月06日 00:10:26 +00:00
index.ts Initial commit 2026年01月06日 00:10:26 +00:00
package.json Update README and package.json 2026年04月01日 18:38:02 +01:00
README.md Update README and package.json 2026年04月01日 18:38:02 +01:00
skyblock.ts Initial commit 2026年01月06日 00:10:26 +00:00
tsconfig.json Initial commit 2026年01月06日 00:10:26 +00:00
v1.ts Initial commit 2026年01月06日 00:10:26 +00:00
wrangler.jsonc Initial commit 2026年01月06日 00:10:26 +00:00

nyx-api

API that provides various endpoints for fun, images, and Discord integrations, specifically for NYX

Usage

Access the API endpoints at https://api.night0721.xyz/v1/.

Endpoints

CODM

  • /api/v1/codm/build: Get details about a build
  • /api/v1/codm/melee: Get details about a melee
  • /api/v1/codm/perk: Get details about a perk
  • /api/v1/codm/scorestreak: Get details about a scorestreak

Fun

  • /api/v1/fun/8ball: 8ball a question
  • /api/v1/fun/doublestruck: Doublestruck a text
  • /api/v1/fun/fractur: Fractur a text
  • /api/v1/fun/reverse: Reverse a text
  • /api/v1/fun/superscript: Superscript a text

Image

  • /api/v1/image/alone: Create an alone meme
  • /api/v1/image/awesome: Create an awesome meme
  • /api/v1/image/bestmeme: Create a bestmeme meme
  • /api/v1/image/busted: Create a busted meme
  • /api/v1/image/communism: Create a communism meme
  • /api/v1/image/gun: Create a gun meme
  • /api/v1/image/mask: Create a mask meme
  • /api/v1/image/moment: Create a moment meme
  • /api/v1/image/pray: Create a pray meme
  • /api/v1/image/pressplay: Create a pressplay meme
  • /api/v1/image/rifleshoot: Create a rifleshoot meme
  • /api/v1/image/robert: Create a robert meme
  • /api/v1/image/saveonlyone: Create a saveonlyone meme
  • /api/v1/image/toilet: Create a toilet meme
  • /api/v1/image/vr: Create a vr meme
  • /api/v1/image/whodidthis: Create a whodidthis meme

Discord

Tip

For the following endpoints, if you want logoColor to be "presence", you must add presenceTheme query(must be online, idle, do not disturb, offline, default option is online), for theme clean, clean-inverted, discord, discord-inverted, full-presence, you must add presenceTheme query, if not online would be the default option

  • /api/v1/discord/user/json/[id]: Get rich presence of user with json
  • /api/v1/discord/user/[id]: Get rich presence of user with image
  • /api/v1/discord/server/[invite]: Get server information based on invite code
  • /api/v1/discord/shield/[id]: Get user shield using shield.io

Installation

npm

npm install

Running locally

npx wrangler dev

Support

Join the official Support Server on Discord for help or feature requests.

Contributions

Contributions are welcomed, feel free to open a pull request.

License

This project is licensed under the GNU Public License v3.0. See LICENSE for more information.