github

acme / core Public

A fast, minimal library for building HTTP services. Zero dependencies, standard library only. Runs on Linux, macOS, and Windows.

http server library zero-dependency async performance
Star Fork Watch
2.1k stars 218 forks 34 issues MIT
README.md

core

build passing version 1.4.2 coverage 94% MIT

A fast, minimal library for building HTTP services. Zero third-party dependencies — standard library only. Battle-tested in production for over two years.

Features

  • ~1500 lines of code, easy to read and audit
  • Zero-copy request parsing, low-allocation router
  • First-class support for middleware, streaming, and WebSockets
  • Runs on Linux, macOS, Windows, and BSD variants
  • Extensive test suite with property-based tests

Installation

go install github.com/acme/core@latest

Quick start

package main

import (
    "log"
    "github.com/acme/core"
)

func main() {
    srv := core.New()
    srv.GET("/hello/:name", func(c core.Ctx) error {
        return c.JSON(200, map[string]string{
            "hello": c.Param("name"),
        })
    })
    log.Fatal(srv.Listen(":8080"))
}

Documentation

Full documentation is available at the docs site, including the getting-started guide, cookbook, and complete API reference. If you find something unclear, please open an issue — documentation fixes are always welcome.

License

MIT © contributors. See LICENSE for details.