This is a simple Hono server that provides an API for "UwUifying" your text messages.
The API has two endpoints:
-
/
: This is the root endpoint. When you make a GET request to this endpoint, it will return a JSON object with instructions on how to use the/uwu
endpoint. -
/uwu
: This is the endpoint that does the UwUifying. It accepts a GET request with a query parameter namedmessage
. The value of this parameter should be the text you want to UwUify.
Here's an example of how to use the /uwu
endpoint:
GET /uwu?message=Hello, world!
The server will respond with your UwUified message as text.
To run the server, you need to have Bun installed (npm i -g bun
) on your machine.
Once you have Bun installed, you can start the server by running the following command in your terminal:
bun start
The server will start running on port 3000.
You can then access the API by making requests to https://localhost:3000
.
This project depends on the hono
package. You can install it by running bun i
in your terminal.
You can bundle this project into a single JavaScript file by running bun bundle
.
This will create a bundle.js
with the bundled code.
You can then deploy this to the edge with services like Cloudflare Workers.
This project is licensed under the Apache License, Version 2.0. You can read the full license in the LICENSE file.