Go Library

Open-source Go projects categorized as Library

Top 23 Go Library Projects

  1. badger

    Fast key-value DB in Go.

    Project mention: How to Implement Serializable Snapshot Isolation for Transactions | dev.to | 2025-04-28
  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. go-cache

    An in-memory key:value store/cache (similar to Memcached) library for Go, suitable for single-machine applications.

  4. go-grpc-middleware

    Golang gRPC Middlewares: interceptor chaining, auth, logging, retries and more.

  5. ristretto

    A high performance memory-bound Go cache

  6. Ferret

    Declarative web scraping

  7. pterm

    ✨ #PTerm is a modern Go module to easily beautify console output. Featuring charts, progressbars, tables, trees, text input, select menus and much more 🚀 It's completely configurable and 100% cross-platform compatible.

  8. lancet

    A comprehensive, efficient, and reusable util function library of Go.

  9. SaaSHub

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

    SaaSHub logo
  10. vugu

    Vugu: A modern UI library for Go+WebAssembly (experimental)

  11. chroma

    A general purpose syntax highlighter in pure Go (by alecthomas)

    Project mention: Create a Hugo Theme from Scratch - III | dev.to | 2024-10-15

    Hugo uses chroma for code highlighting. It works well with the default configuration, but I want to go further, such as having the code block theme switch along with the light and dark modes, and providing code block copying functionality.

  12. Pixel

    A hand-crafted 2D game library in Go

  13. progressbar

    A really basic thread-safe progress bar for Golang applications

  14. gorequest

    GoRequest -- Simplified HTTP client ( inspired by nodejs SuperAgent )

  15. fosite

    Extensible security first OAuth 2.0 and OpenID Connect SDK for Go.

  16. go-daemon

    A library for writing system daemons in golang.

  17. fp-go

    functional programming library for golang

    Project mention: Functional Programming in Go | news.ycombinator.com | 2024-11-08

    I've tried going down this route myself by using libraries like fp-go[1]. I think this particular project has done a great job, but I ultimately opted not to pursue functional programming in Go for a few reasons:

    - Ergonomics weren't the greatest when working with monads such as options and results. I think pattern matching is needed here, but concepts like those go against Go's core design philosophy.

    - I suspect there are several cases where runtime performance is an issue, but admittedly did not investigate this.

    - Perhaps most importantly, it deviates from the way most people read and write Go, and less importantly, LLMs struggle too.

    Because of these reasons, I came to the conclusion that the advantages were not worth the trade-offs.

    Perhaps somebody will create a garbage-collected Rust-like language in the future and bridge the gap between the two languages.

    [1] - https://github.com/IBM/fp-go

  18. litter

    Litter is a pretty printer library for Go data structures to aid in debugging and testing.

  19. oidc

    Easy to use OpenID Connect client and server library written for Go and certified by the OpenID Foundation

  20. auth

    Authenticator via oauth2, direct, email and telegram (by go-pkgz)

  21. machineid

    Get the unique machine id of any host (without admin privileges)

  22. xdg-go

    Go implementation of the XDG Base Directory Specification and XDG user directories

  23. 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)

  24. graph

    Graph algorithms and data structures (by yourbasic)

  25. grabana

    User-friendly Go library for building Grafana dashboards

  26. SaaSHub

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

    SaaSHub logo
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).

Go Library discussion

Log in or Post with

Go Library related posts

  • Why I chose 'golly' framework to build my next Golang based REST API?

    2 projects | dev.to | 23 Oct 2024
  • Godump: Dump any GO variable with ease

    1 project | news.ycombinator.com | 4 Jul 2024
  • Anytype helper crashed

    1 project | /r/Anytype | 9 Dec 2023
  • IBM/fp-go: functional programming library for golang

    1 project | /r/functionalprogramming | 19 Aug 2023
  • My first package in go. An in-memory cache package useful when creating multiple instances of the cache

    2 projects | /r/golang | 18 Aug 2023
  • Release #golang share v0.47.0

    1 project | /r/kilabit | 4 Jun 2023
  • What would be some database with extreme raw performance? (details in)

    1 project | /r/Database | 25 May 2023
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 14 May 2025
    InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now. Learn more →

Index

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

# Project Stars
1 badger 14,517
2 go-cache 8,454
3 go-grpc-middleware 6,506
4 ristretto 6,027
5 Ferret 5,808
6 pterm 5,067
7 lancet 5,015
8 vugu 4,940
9 chroma 4,576
10 Pixel 4,502
11 progressbar 4,378
12 gorequest 3,470
13 fosite 2,390
14 go-daemon 2,252
15 fp-go 1,774
16 litter 1,584
17 oidc 1,557
18 auth 1,196
19 machineid 1,065
20 xdg-go 806
21 gokv 785
22 graph 723
23 grabana 712

Sponsored
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com