Go MongoDB

Open-source Go projects categorized as MongoDB

Top 23 Go MongoDB Projects

  • migrate

    Database migrations. CLI and Golang library.

    Project mention: Managing external database versions in Kubernetes | reddit.com/r/kubernetes | 2022-12-25

    We use golang-migrate for our platforms and it’s works exceptionally well even when many pods are active. https://github.com/golang-migrate/migrate

  • mongo-go-driver

    The Official Golang driver for MongoDB

    Project mention: Go EventSourcing and CQRS with PostgreSQL, Kafka, MongoDB and ElasticSearch 👋✨💫 | dev.to | 2022-07-18

    PostgeSQL as event store database Kafka as messages broker gRPC Go implementation of gRPC Jaeger open source, end-to-end distributed tracing Prometheus monitoring and alerting Grafana for to compose observability dashboards with everything from Prometheus MongoDB MongoDB database Elasticsearch Elasticsearch client for Go. Echo web framework Kibana Kibana is data visualization dashboard software for Elasticsearch Migrate for migrations

  • SonarLint

    Clean code begins in your IDE with SonarLint. Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.

  • machinery

    Machinery is an asynchronous task queue/job queue based on distributed message passing.

    Project mention: Are there any actively maintained or official Golang libraries for managing work queues? | reddit.com/r/golang | 2022-10-29

    I've had this project starred for a while but haven't used it: https://github.com/RichardKnop/machinery

  • FerretDB

    A truly Open Source MongoDB alternative

    Project mention: FerretDB + YugabyteDB on Kubernetes (Amazon EKS): a MongoDB API to Distributed SQL, at scale | dev.to | 2023-01-19

    YugabyteDB has a Cassandra-compatible API (called YCQL) and a PostgreSQL-compatible one (called YSQL). What if you have an application written for MongoDB that you want to move to a SQL database? You probably want to rewrite it to benefit from SQL features but, rather than re-writing all at the same time, you can add a MongoDB-compatible API on top of PostgreSQL thanks to FerretDB.

  • bytebase

    Database CI/CD for DevOps teams. https://www.bytebase.com

    Project mention: Ask HN: How do you test SQL? | news.ycombinator.com | 2023-01-31

    We built a GUI based solution called https://github.com/bytebase/bytebase. You may also take a look.

  • space-cloud

    Open source Firebase + Heroku to develop, scale and secure serverless apps on Kubernetes

    Project mention: Show HN: Algorithmic Trading for Everyone | news.ycombinator.com | 2022-04-21
  • upper.io/db

    Data access layer for PostgreSQL, CockroachDB, MySQL, SQLite and MongoDB with ORM-like features.

    Project mention: [Hiring] Remote Golang job: Senior Backend Engineer (Go) at Horizon (Toronto, Canada) | reddit.com/r/jobbit | 2022-05-28

    You will be joining the expert Go team at Horizon, previously who in our spare time + for fun, authored OSS projects like chi (https://github.com/go-chi/chi), upper/db (https://github.com/upper/db), webrpc (https://github.com/webrpc/webrpc), goware (https://github.com/goware), and much more. Our Go codebases are extremely clean and the patterns we've built have been shaped over 7 years of writing production Go systems and open source projects. These are the patterns which we apply to our infrastructure at Horizon in our products Skyweaver and Sequence.

  • InfluxDB

    Build time-series-based applications quickly and at scale.. InfluxDB is the Time Series Platform where developers build real-time applications for analytics, IoT and cloud-native services. Easy to start, it is available in the cloud or on-premises.

  • goxygen

    Generate a modern Web project with Go and Angular, React or Vue in seconds 🎲

    Project mention: A new version of Goxygen is out wit support of React 18 and Go 1.19 | reddit.com/r/webdev | 2022-12-12
  • eventhorizon

    Event Sourcing for Go!

    Project mention: Help to migrate a simple app from Elm to React, Angular or VanillaJS. | reddit.com/r/elm | 2022-11-06

    The todo app

  • prisma-client-go

    Prisma Client Go is an auto-generated and fully type-safe database client

    Project mention: Prisma laying off 28% staff | news.ycombinator.com | 2023-01-22

    The same company that stopped officially maintaining their golang library when it wasn't getting "the growth we were hoping for".


  • qmgo

    Qmgo - The Go driver for MongoDB. It‘s based on official mongo-go-driver but easier to use like Mgo.

  • tsbs

    Time Series Benchmark Suite, a tool for comparing and evaluating databases for time series data

    Project mention: Streaming data storage | reddit.com/r/dataengineering | 2023-01-24

    According their benchmark it is really fast.

  • mongodb_exporter

    A Prometheus exporter for MongoDB including sharding, replication and storage engines

    Project mention: Recap Monthly Percona Developer Meetup Hacktoberfest | dev.to | 2022-10-12

    For our third project, we have percona/mongodb_exporter. Carlos Salguero is the maintainer for this project. He says it is a project easy to get started, and there is not much-complicated logic behind this. It is about running some MongoDB internal commands to get statistics like diagnostic data or replica status, passing JSON to produce metrics from these commands. You use a complete Makefile to start sandbox instances to test almost everything; you don’t have a virtual machine or different MongoDB instances. The issues are in GitHub and Jira. The primary programming language is Go.

  • mgm

    Mongo Go Models (mgm) is a fast and simple MongoDB ODM for Go (based on official Mongo Go Driver) (by Kamva)

  • gokv

    Simple key-value store abstraction and implementations for Go (Redis, Consul, etcd, bbolt, BadgerDB, LevelDB, Memcached, DynamoDB, S3, PostgreSQL, MongoDB, CockroachDB and many more)

  • components-contrib

    Community driven, reusable components for distributed apps

    Project mention: Vulnerability Management for Go | news.ycombinator.com | 2022-09-06

    This is super helpful for me as a Dapr maintainer (we have a ton of third party integrations we compile into our binary). Found and upgraded a vulnerable dependency and then quickly added this check to our CI/CD workflow.


  • lungo

    A MongoDB compatible embeddable database and toolkit for Go.

  • nosqli

    NoSql Injection CLI tool, for finding vulnerable websites using MongoDB.

  • local-docker-db

    A bunch o' Docker Compose files used to quickly spin up local databases.

    Project mention: Please help: Environment Setup Headache - MySQL Ubuntu | reddit.com/r/SQL | 2022-07-05

    Btw if you have dockerand docker compose installed this will take you about 5 minutes https://github.com/alexmacarthur/local-docker-db/tree/master/maria

  • cachego

    Golang Cache component - Multiple drivers

  • Wait4X

    Wait4X allows you to wait for a port or a service to enter the requested state.

    Project mention: Docker Compose: how to wait for the MySQL server container to be ready? | dev.to | 2022-11-29

    Further Googling, I found this Docker document Control startup and shutdown order in Compose, whereby several tools are recommended to implement the waiting, among them are wait-for-it and Wait4X.

  • microservices-go-grpc

    Go microservices with REST, and gRPC for demonstrating the BFF pattern. This repository contains backend services. Everything is dockerized and ready to "Go" :-)

    Project mention: Compiling proto server side | reddit.com/r/grpc | 2022-06-28
  • mongoplayground

    a simple sandbox to test and share MongoDB queries

    Project mention: My code is not working as expected and tested on mongodb playground | reddit.com/r/mongodb | 2023-01-28

    In my "docs" collection I am storing all the docs, but some of them are parents of another doc. This is one layer deep. I created a test query on the mongo db playground and it works as I wanted to but not the same in my code. Here is what I have in the https://mongoplayground.net/:

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2023-01-31.

Go MongoDB related posts


What are some of the best open-source MongoDB projects in Go? This list will help you:

Project Stars
1 migrate 10,705
2 mongo-go-driver 7,186
3 machinery 6,697
4 FerretDB 5,144
5 bytebase 4,827
6 space-cloud 3,718
7 upper.io/db 3,244
8 goxygen 2,493
9 eventhorizon 1,392
10 prisma-client-go 1,385
11 qmgo 1,049
12 tsbs 1,006
13 mongodb_exporter 894
14 mgm 621
15 gokv 513
16 components-contrib 418
17 lungo 406
18 nosqli 275
19 local-docker-db 251
20 cachego 205
21 Wait4X 179
22 microservices-go-grpc 154
23 mongoplayground 145
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives