gearbox

gearbox :gear: is a web framework for building micro services written in Go with a focus on high performance and memory optimization.

Currently, gearbox :gear: is under development (not production ready) and built on fasthttp which is up to 10x faster than net/http

In gearbox, we care about peformance and memory which will be used by each method while building things up and how we can improve that. It also takes more time to research about each component that will be used and compare it with different implementations of other open source web frameworks. It may end up writing our own components in an optimized way to achieve our goals

gearbox seeks to be

  • Secure :closed_lock_with_key:
  • Fast :rocket:
  • Simple :eyeglasses:
  • Easy to use
  • Lightweight

Supported Go versions & installation

:gear: gearbox requires version 1.11 or higher of Go (Download Go)

Just use go get to download and install gearbox

go get -u github.com/abahmed/gearbox

Example

package main

import (
  "github.com/abahmed/gearbox"
  "github.com/valyala/fasthttp"
)

func main() {
  // Setup gearbox
  gearbox := gearbox.New()
  
  // Define your handlers
  gearbox.Get("/hello", func(ctx *fasthttp.RequestCtx) {
	ctx.Response.SetBodyString("Hello World!")
  })

  // Start service
  gearbox.Start(":3000")
}

Contribute & Support

Check Our Wiki for more information about gearbox and how to contribute

GitHub