viper

Go configuration with fangs (by spf13)

Viper Alternatives

Similar projects and alternatives to viper

  1. SaaSHub

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

    SaaSHub logo
  2. sqlc

    196 viper VS sqlc

    Generate type-safe code from SQL

  3. Gin

    180 viper VS Gin

    Gin is a high-performance HTTP web framework written in Go. It provides a Martini-like API but with significantly better performance—up to 40 times faster—thanks to httprouter. Gin is designed for building REST APIs, web applications, and microservices.

  4. cobra

    151 viper VS cobra

    A Commander for modern Go CLI interactions

  5. Echo

    138 viper VS Echo

    High performance, minimalist Go web framework

  6. chi

    118 viper VS chi

    lightweight, idiomatic and composable router for building Go HTTP services

  7. GORM

    96 viper VS GORM

    The fantastic ORM library for Golang, aims to be developer friendly

  8. golangci-lint

    Fast linters runner for Go

  9. Testify

    83 viper VS Testify

    A toolkit with common assertions and mocks that plays nicely with the standard library

  10. pgx

    81 viper VS pgx

    PostgreSQL driver and toolkit for Go

  11. validator

    76 viper VS validator

    :100:Go Struct and Field validation, including Cross Field, Cross Struct, Map, Slice and Array diving

  12. zap

    62 viper VS zap

    Blazing fast, structured, leveled logging in Go.

  13. logrus

    46 viper VS logrus

    Structured, pluggable logging for Go.

  14. swag

    44 viper VS swag

    Automatically generate RESTful API documentation with Swagger 2.0 for Go.

  15. Redis

    40 viper VS Redis

    Redis Go client

  16. urfave/cli

    A declarative, simple, fast, and fun package for building command line tools in Go (by urfave)

  17. godotenv

    22 viper VS godotenv

    A Go port of Ruby's dotenv library (Loads environment variables from .env files)

  18. koanf

    14 viper VS koanf

    Simple, extremely lightweight, extensible, configuration management library for Go. Supports JSON, TOML, YAML, env, command line, file, S3 etc. Alternative to viper.

  19. kong

    13 viper VS kong

    Kong is a command-line parser for Go (by alecthomas)

  20. envconfig

    Small library to read your configuration from environment variables (by vrischmann)

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better viper alternative or higher similarity.

viper discussion

Log in or Post with

viper reviews and mentions

Posts with mentions or reviews of viper. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2026-07-24.
  • mamori VS viper - a user suggested alternative
    2 projects | 24 Jul 2026
  • The Tower Keeps Rising
    2 projects | news.ycombinator.com | 16 Jul 2026
    > I've said for a long time that composability in software is a bit like playing Tetris: the lines have to clear.

    I love this analogy, and I find it darkly hilarious that most sibling commenters don't seem to understand. Maybe you need to have worked within a million-line codebase to get it.

    The only way to "clear the lines" in software is to eject them from the main codebase and into imported libraries with stable, well-documented, well-tested APIs that you very rarely if ever (security vulnerabilities?) need to touch after "stabilizing" them. Great public examples: the Go standard library, https://github.com/spf13/viper , https://github.com/uber-go/zap . Viper and zap combined are more than 20,000 lines of code (according to cloc) that I don't need to read or understand how they work - their lines have been "cleared" and all I need to know is the abstraction.

    Half the joy to be found when working within massive codebases is successfully clearing lines.

  • 5 Golang Libraries You’ll Wish You Knew Sooner
    7 projects | dev.to | 18 May 2025
    Viper is a configuration management library that handles environment variables, config files, and command-line flags. It supports JSON, YAML, TOML, and more, making it easy to manage settings in one place.
  • Top 5 Go Libraries Every Backend Developer Should Know
    6 projects | dev.to | 3 Jan 2025
    5. Viper
  • A Guide to Configuration Management in Go with Viper
    1 project | dev.to | 3 Dec 2024
    Managing configurations efficiently is a cornerstone of building scalable and maintainable software. In Go, the Viper package 🐍 stands out as a robust solution for managing application configurations. With support for multiple file formats, environment variables, and seamless unmarshaling to structs, Viper simplifies configuration management for modern applications.
  • Show HN: CREV – A Go-based CLI tool for AI code reviews and codebase exports
    3 projects | news.ycombinator.com | 6 Oct 2024
    - Terminal-Based Workflow: CREV is a CLI tool, removing the need to switch between your editor and the browser.

    I have written the CREV CLI tool in Go as I was interested in learning the language and I heard many good things about it’s efficiency and speed. I used https://github.com/spf13/cobra to manage the CLI commands and [Viper](https://github.com/spf13/viper) for handling configurations. This is the first project I have done with Go but I find the language interesting and the Go routines also help with reading in your entire codebase. For the code reviews themselves I use google cloud functions which invoke GPT-4o (am also planning to add Claude 3.5 and GPT-o1).

    I’d love to hear your feedback—whether it’s ideas for new features or reasons why you believe this tool is useful or useless to you. I am using it daily so it at least solved my own problem :)

  • Building a RESTful API with Go Fiber: An Express-Inspired Boilerplate
    13 projects | dev.to | 5 Oct 2024
    Environment variables: using Viper
  • Upload and Delete file from Amazon S3 Bucket in Go using Presigned URLs
    2 projects | dev.to | 22 Apr 2024
    Once environment variables are setup we need load them into our project. For this this i will use viper
  • Proxy Server in Go
    2 projects | dev.to | 20 Jan 2024
    The code uses Viper to load configuration files in the application.
  • API completa em Golang - Parte 2
    5 projects | dev.to | 5 Dec 2023
  • A note from our sponsor - SaaSHub
    www.saashub.com | 15 Nov 2026
    SaaSHub helps you find the best software and product alternatives Learn more →

Stats

Basic viper repo stats
81
30,509
8.8
10 months ago

spf13/viper is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of viper is Go.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com

Did you know that Go is
the 5th most popular programming language
based on number of references?