Readit News logoReadit News
Posted by u/mk0y 2 years ago
I'm making an open-source API gateway for MongoDB Atlas with vector search
I have already created an API for MongoDB called Nodb, but it was written in Javascript and Fastify and became a nightmare to maintain. I'm rewriting it in Typescript and I'm using Bun.sh with Hono.dev server and it's a pleasure.

You can check it out here: https://github.com/nearup-io/nodb

It's far from done, I'm still working on many of the features, but the idea is simple, you get endpoints which can point to different urls to connect to MongoDB Atlas. So you can store JSON directly through the API.

For example: /my-app/dev -> points to development database /my-app/prd -> points to production database

Why I chose Atlas? It has a "vectorSearch" aggregation pipeline so it's nice to do a semantic search as well. Similar to pgvector, which I plan to add as well.

So it's also possible to query your data like so:

POST "/endpoint" data '{ "query": "What are milestones for Project ABC?" }' -> You can either get array of objects as a result of semantic search, or a natural response like "The milestones are..." using OpenAI models or Claude, plan is to add more of them.

I would like to get some feedback on the project and features, it will mean a lot to me.

No comments