• v1.3.0 19c477aa05

    12 new API endpoints
    Build and Deploy / build (push) Successful in 1m44s
    Build Release / build (push) Successful in 58s
    Build and Deploy / deploy (push) Successful in 26s
    Stable

    johannesbot released this 2026-06-16 20:52:15 +02:00 | 1 commits to master since this release

    Added

    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.js with a single routes/api/index.js entry point.
    • Updated OpenAPI spec (openapi.json) with all new endpoints and added tags for categorized Swagger UI display.
    Downloads