I couldn’t find Better Auth in Go, so I built one — Stable…
    Neura MarketNeura Market/Stable Diffusion
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityStable DiffusionStable Diffusion
    DeepSeekDeepSeekCoPilotCoPilotMidjourneyMidjourney
    View All Directories
    OverviewPromptsBlogVideosGuidesCoursesCommunityModelsLoRAsComfyUI WorkflowsTrending
    Stable DiffusionBlogI couldn’t find Better Auth in Go, so I built one
    Back to Blog
    I couldn’t find Better Auth in Go, so I built one
    go

    I couldn’t find Better Auth in Go, so I built one

    Brian Iyoha April 28, 2026
    0 views

    What would a Better Auth–level developer experience look like in Go? That question turned into Limen, an open-source plugin-first auth library.


    title: I couldn’t find Better Auth in Go, so I built one published: true description: What would a Better Auth–level developer experience look like in Go? That question turned into Limen, an open-source plugin-first auth library. tags: go, webdev, opensource, authentication cover_image: https://res.cloudinary.com/giantdrunkenbird/image/upload/v1777407801/Limen_Banner_5_xkf0ok.png

    Use a ratio of 100:42 for best results.

    published_at: 2026-04-27 21:29 +0000


    There’s been a noticeable shift in how authentication is approached in modern apps. Tools like Better Auth have pushed toward a model that is both developer-friendly and production-aware, with a strong emphasis on correctness, extensibility, and sensible defaults.

    But if you’re working in Go, that experience hasn’t really existed.

    That gap is what led to Limen.

    What Limen is

    Limen is a composable authentication library for Go, designed to integrate directly into your application rather than sit beside it as a separate service.

    It is open source, publicly released, and available here:

    • https://limenauth.dev
    • https://github.com/thecodearcher/limen

    The goal is to make authentication easier to add to Go backends without forcing you into a specific framework or application structure.

    Why I built it

    Go has no shortage of authentication libraries. There are JWT helpers, OAuth clients, and frameworks that cover parts of the problem. But most of them fall into one of two categories:

    • Low-level primitives that require significant assembly
    • Opinionated frameworks that are hard to extend or adapt

    What’s often missing is a composable, production-ready system that:

    • Handles sessions, cookies, and OAuth
    • Lets you extend behavior without rewriting core logic
    • Doesn’t force you into a specific router or framework
    • Works with your existing database setup

    This is the space Better Auth occupies in the JavaScript ecosystem. The goal with Limen is not to replicate it exactly, but to bring that level of design and usability into Go.

    How Limen works

    Limen is built around a plugin-first approach.

    Instead of shipping every auth method as one large package, auth methods live as separate Go modules. You import the pieces you need and leave out the ones you do not.

    For example, a basic setup can use the core package, a database adapter, and the credential/password plugin:

    go get github.com/thecodearcher/limen
    go get github.com/thecodearcher/limen/adapters/gorm
    go get github.com/thecodearcher/limen/plugins/credential-password
    

    Then you configure Limen inside your Go app:

    auth, err := limen.New(&limen.Config{
        BaseURL:  "http://localhost:8080",
        Database: gormadapter.New(db),
        Plugins: []limen.Plugin{
            credentialpassword.New(),
        },
    })
    

    And mount it with your existing HTTP setup:

    mux := http.NewServeMux()
    mux.Handle("/api/auth/", auth.Handler())
    

    That is the main idea: Limen should fit into your app, not dictate it.

    What it supports today

    The first public release includes support for:

    • Credential/password authentication
    • 10+ Social Sign-on providers (and growing)
    • Two-factor authentication
    • Session management
    • Built-in rate limiting
    • Database adapters

    It works with anything that speaks http.Handler, including net/http, Gin, Chi, and Echo.

    Bring your own stack

    One thing I wanted to avoid was building an auth system that assumes too much about the application around it.

    Limen is designed to work with your existing Go backend.

    You bring your own database. You bring your own framework. You choose the plugins you need.

    That makes it useful whether you are building a small API, a SaaS backend, or something more custom.

    Why not just use a hosted auth provider?

    Hosted auth providers are great for many teams.

    But sometimes you want authentication to live inside your own application. Maybe you want more control over the data model. Maybe you want to keep your backend self-contained. Maybe you just prefer owning that part of your stack.

    Limen is for that kind of project.

    It gives you a foundation without making auth feel like a separate product bolted onto your app.

    Current state

    Limen is ready to use today and still improving. That means the API will continue to evolve, the documentation will get better, and more plugins and adapters will be added over time.

    You can check it out here:

    • https://limenauth.dev
    • https://github.com/thecodearcher/limen

    Tags

    gowebdevopensourceauthentication

    Comments

    More Blog

    View all
    Five Gemma-4 models, one accelerator: what porting E2B 31B to AWS Inferentia2 taught megemma

    Five Gemma-4 models, one accelerator: what porting E2B 31B to AWS Inferentia2 taught me

    I ported the whole Gemma-4 family — E2B, E4B, 12B, 31B, and the 26B-A4B MoE — to run on...

    X
    xbill
    Hey DEV, I'm Tobore. Let's actually connect.community

    Hey DEV, I'm Tobore. Let's actually connect.

    Hey DEV, I'm Tobore. Let's actually connect. I've been on here for a while now, mostly writing and...

    L
    Laurina Ayarah
    I burned through thousands of AI tokens. Then a friend did it for freeai

    I burned through thousands of AI tokens. Then a friend did it for free

    (yep, kinda clickbait, just for the funsies 😊) At the beginning of the year, I relaunched my...

    P
    Paulo Henrique
    Claude might be saturating your machineai

    Claude might be saturating your machine

    My laptop was sitting idle with the fan at full tilt. Nothing was running that I knew of. The culprit...

    S
    Sidhant Panda
    Automated GitHub Code Reviews Using Google Geminigithubactions

    Automated GitHub Code Reviews Using Google Gemini

    I Built a Thing! TL;DR — Google Gemini-based Pull Request reviews and Issue Triaging for...

    D
    Darren "Dazbo" Lester
    What is an "agentic harness," actually?ai

    What is an "agentic harness," actually?

    I've been hearing the word "harness" thrown around a lot lately. I assumed it just meant "the IDE" or...

    T
    Tilde A. Thurium

    Stay up to date

    Get the latest Stable Diffusion prompts, rules, and resources delivered to your inbox weekly.

    Neura Market LogoNeura Market

    Discover the best AI prompts, plugins, and resources for Stable Diffusion and more.

    Content Types

    • Rules
    • Prompts
    • MCPs
    • Agents
    • Guides

    Platforms

    • ChatGPT Directory
    • Claude Directory
    • Gemini Directory
    • Cursor Directory
    • Grok Directory
    • Perplexity Directory
    • DeepSeek Directory
    • CoPilot Directory
    • Stable Diffusion Directory
    • Midjourney Directory
    • All Directories

    Resources

    • Blog
    • Documentation
    • Help Center
    • Marketplace

    Legal

    • Privacy Policy
    • Terms of Service

    © 2026 Neura Market. All rights reserved.

    |

    Not affiliated with any AI platform vendors.

    Neura Market

    Custom AI Systems & Services

    Our team of experienced AI builders will help build custom AI systems, workflows, and solutions for your business.

    Request custom work

    Ready-made automations for this

    Workflows from the Neura Market marketplace related to this Stable Diffusion resource

    • Convert Reddit Questions into SEO-Optimized Blog Posts with AI and Google Sheetsn8n · $24.99 · Related topic
    • Enhance WordPress User Experience with AI Chatbot Using Supabase and OpenAIn8n · $19.99 · Related topic
    • Enhance AI Chat Experience by Predicting End of User Utterancesn8n · $14.99 · Related topic
    • Automate Tailored Interview Question Generation with GPT-4n8n · $14.99 · Related topic
    Browse all workflows