-
20 new API endpoints
Stablereleased this
2026-06-17 06:24:52 +02:00 | 0 commits to master since this release20 new API endpoints:
Math:
POST /api/power,GET /api/power/:a/:b— raises a to the power of b (a^b).POST /api/abs,GET /api/abs/:n— returns the absolute value of a number.POST /api/factorial,GET /api/factorial/:n— calculates n! (0–170).POST /api/isPrime,GET /api/isPrime/:n— checks if a number is prime.
String:
POST /api/repeat— repeats a string n times (max 1000). Body:{ input: { string, times } }.POST /api/trimString,GET /api/trimString/:string— trims leading and trailing whitespace.POST /api/stringContains— checks if a string contains a substring. Body:{ input: { string, search } }.POST /api/randomCase,GET /api/randomCase/:string— randomly capitalizes letters (sPoNgEbOb CaSe).
Array:
POST /api/sum— sums all elements of a numeric array.POST /api/average— calculates the average of all elements in a numeric array.POST /api/arrayMax— returns the largest element in a numeric array.POST /api/arrayMin— returns the smallest element in a numeric array.POST /api/arrayUnique— removes duplicate elements from an array.
Misc:
GET /api/coinFlip— flips a coin, returnsheadsortails.GET /api/diceRoll— rolls a standard 6-sided dice.GET /api/diceRoll/:sides— rolls a dice with a custom number of sides.POST /api/fizzBuzz,GET /api/fizzBuzz/:n— returns Fizz, Buzz, FizzBuzz, or the number itself.
Meme Sorts:
POST /api/intelligentDesignSort— the array was already sorted by a higher power. Returns it untouched.POST /api/quantumSort— collapses the quantum superposition into the only sorted universe. Reports the number of parallel universes destroyed.POST /api/pancakeSort— sorts by repeatedly flipping prefixes. Returns the full flip history.POST /api/gnomeSort— a gnome compares adjacent elements and steps back on each swap. Returns move count.
Changed
- Added
misc/subdirectory for fun/random endpoints. - Updated OpenAPI spec with all new endpoints and a new
Misctag.
Downloads
-
12 new API endpoints
Stablereleased this
2026-06-16 20:52:15 +02:00 | 1 commits to master since this releaseAdded
12 new API endpoints:
Meme Sorts:
POST /api/bogoSort— randomly shuffles the array until it is sorted (max 1000 attempts). Returns attempt count and success flag.POST /api/thanoSort— randomly removes half the elements until the array is sorted. Perfectly balanced, as all things should be. Returns snap count.POST /api/sleepSort— each element theoretically sleeps for n milliseconds then joins the output. We simulated the sleep. You're welcome. Returns total simulated sleep time.POST /api/miracleSort— checks if the array is already sorted. If not, it waits for a cosmic miracle. Please try again later.
Math:
POST /api/modulo,GET /api/modulo/:a/:b— calculates the remainder of a division (a % b).
String:
POST /api/reverseString,GET /api/reverseString/:string— reverses a string.POST /api/isPalindrome,GET /api/isPalindrome/:string— checks if a string is a palindrome.POST /api/stringLength,GET /api/stringLength/:string— returns the length of a string.POST /api/countWords,GET /api/countWords/:string— counts the number of words in a string.POST /api/toUpperCase,GET /api/toUpperCase/:string— converts a string to uppercase.POST /api/toLowerCase,GET /api/toLowerCase/:string— converts a string to lowercase.
Array:
POST /api/reverseArray— reverses an array.
Changed
- Reorganized route files into category subdirectories (
math/,string/,array/,checks/,sorts/) for better maintainability. - Replaced individual route imports in
server.jswith a singleroutes/api/index.jsentry point. - Updated OpenAPI spec (
openapi.json) with all new endpoints and added tags for categorized Swagger UI display.
Downloads
-
More Math Routes
Stablereleased this
2026-04-02 14:04:38 +02:00 | 2 commits to master since this release- Added math routes:
subtract,multiply,divide.
Downloads
- Added math routes:
-
Added add route
Stablereleased this
2026-04-02 11:39:31 +02:00 | 3 commits to master since this release- Added
addroute. - Added Stalin Sort.
- Added Swagger UI documentation.
Downloads
- Added