Skip to content

viebiz/lit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

218 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lightning

Lightning is a modular, production-ready collection of Go libraries that helps backend developers build reliable applications faster. It reduces boilerplate by offering reusable components for key tasks such as:

  • HTTP routing with authentication guards and middleware
  • gRPC server and client setup with service registration
  • Internationalization (i18n) support
  • Kafka integration
  • Redis integration
  • Structured, context-aware logging
  • Configuration management with environment overrides

Designed to be simple, extensible, and easy to adopt, Lit lets teams focus on business logic instead of infrastructure scaffolding.

Project status

Name Status
Pipeline GitHub branch status CircleCI
Coverage Coverage Status Codacy Badge codecov
Code Quality Codacy Badge Open Source Helpers OpenSSF Scorecard OpenSSF Best Practices
Go Report Go Report Card
Go Reference Go Reference
Release Version GitHub Release
Tag Version GitHub tag (latest by date)
License GitHub License

🤖 AI Assistant Support

Lightning (Lit) includes comprehensive instructions for AI coding assistants to help you develop faster:

These files provide guidance on:

  • Core architectural patterns (functional options, context propagation)
  • Testing requirements and best practices
  • Common development workflows
  • Security and performance considerations

See .github/AI-INSTRUCTIONS-README.md for details on which file to use.

📚 Documentation

Detailed documentation is available in the docs/ directory:

🚀 Getting Started

Install Lightning:

go get github.com/viebiz/lit@latest

Create a simple HTTP server:

package main

import (
    "context"
    "net/http"
    "github.com/viebiz/lit"
)

func main() {
    r := lit.NewRouter(context.Background())
    r.Get("/", func(c lit.Context) error {
        return c.String(http.StatusOK, "Hello, World!")
    })

    srv := lit.NewHttpServer(":8080", r.Handler())
    if err := srv.Run(); err != nil {
        panic(err)
    }
}

🤝 Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines on:

  • Code style and formatting
  • Testing requirements
  • Development workflow
  • Pull request process

📝 License

Lightning is licensed under the Apache-2.0 License. See LICENSE for details.

About

Lightning: Go Libs

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •