Open-Source Alternative to API.RIMUNACE.XYZ Written in Elysia.js
cat.monitoring.mp4
Note
You can fetch the cat monitoring video from /cat
endpoint. I'm being serious.
Alternatively, https://cdn.apis.rocks/cat%20monitoring.mp4 or just download and host the video yourself.
You ever used https://api.rimunace.xyz? Yeah that's my API I made for you to access AI models.
I mean, yeah that project is private. It's so bad I can't look at it. So here's an alternative. I call it... APIS.ROCKS
Out of all names I can choose, I have no idea what's so rock about this. I want the "API.ROCKS" but it's already taken (lol xd).
This stuff came out of nowhere. First Golang and now suddenly this. James, if you are reading this, please don't be mad. I imported
the *.service.ts
like I cared this project since rimunace v2 using nestjs.
So allow me to tell you what I have made here.
- 100% free (or is it)
- 100% open source
- 100% customisable
- 100% no credit card required (maybe this one is a lie)
- AI Endpoints
- Admin Endpoints (Panel is sold seperately)
- Database (Redis, Supabase, etc) # but I only made support for Supabase and Upstash Redis
OMG HELP SHE IS T POSING
- Elysia.js - I swear I didn't use this just because someone shared a video of tech talk about it.
- Bun - So fast. I love it. Better than default Node.js (or idk, like, just try it).
- Zod - I just use this for schema validation and specifically because this damn workspace uses typescript.
- Winston - I had a hard time choosing Pino and this. Please spare me the two brain cells.
I'm sorry nest.js and hono, maybe next time
-
Clone the repository
-
Install dependencies:
bun install
-
Copy
.env.example
to.env.local
and configure your environment variables -
Start the development server:
bun run dev
-
If you use supabase, you can run the migration to create the tables:
bun run migrate
P/S: I did not made this to integrate automatically with other database than Redis (Upstash) and Supabase
Oh scrape this idea. Redis can be self-hosted.
The application is configured for deployment with Fly.io. Use the included Dockerfile
and fly.toml
for deployment.
You might need to change some settings in fly.toml
to fit your needs.
fly deploy
But really, you don't have to force yourself to use fly.io. You can deploy this anywhere you want. If you're broke like me and you don't wanna pay a surprise 150$ bill by Zeabur (lesson learnt), get a dedicated server my friend.
Access the Swagger documentation at /docs
when the server is running.
Courtesy of Elysia.js built-in swagger documentation: https://elysiajs.com/recipe/openapi.html
I hereby give you permission to use this project for your own purposes. I do not take any responsibility for any damage or loss of data that may occur from using this project. Wait, don't I have to use proper license?
Yes, I do. But I'm too lazy to choose one. So I'm just gonna use MIT. Get that license here: LICENSE.md
Omg you want to contact me? I'm flattered. Send me a hi at hi@respire.my
[ In the future, I might need to redesign this readme properly ]