{"repo":"lynxai-team/garcon","free":true,"listed":false,"github":"https://github.com/lynxai-team/garcon","clone":"git clone https://github.com/lynxai-team/garcon.git","description":"Golang web toolbox for API and static website including HTTP server, middlewares, JWT, CORS, OPA, Cookies, Prometheus exporter, Rate Limiter compatible with Go standards and dozens of Go routers","language":"Go","stars":13,"topics":["cors","rate-limiter","http-server","static-website","pprof","middleware","cors-middleware","file-server","golang","coockie"],"license":"MIT","category":"networking-infra","readme_excerpt":"Garcon Garcon works with all HTTP routers ans middleware respecting the Go HTTP standards. Garcon provides the batteries: static website server, contact-form backend, API helpers, debugging helpers (PProf), Git version, exporter server (Prometheus), health endpoints (Kubernetes), URI sanitization and middleware: rate-limiter, JWT cookies, CORS, traffic logs, OPA… --------------------------------------------- :--------- Motivation Many projects often start with one of the many nice HTTP routers and middleware already available and develop their own middleware, debugging server, API helpers... At lynxai.team, we decided to share in one place (here) all our stuff in the idea to let other projects go faster. Middleware Our Middleware are very easy to setup. They respect the Go standards. Thus you can easily use them with the HTTP router of your choice and chained them with other middleware: - MiddlewareLogRequest Log incoming requests (with or without browser fingerprint) - MiddlewareLogDuration Log processing time - MiddlewareExportTrafficMetrics Export web traffic metrics - MiddlewareRejectUnprintableURI Reject request with unwanted characters - MiddlewareRateLimiter Limit incoming request to prevent flooding - MiddlewareServerHeader Add the \"Server\" HTTP header in the response - JWTChecker JWT management using HttpOnly cookie or Authorization header - IncorruptibleChecker Session cookie with Incorruptible token - MiddlewareCORS Cross-Origin Resource Sharing (CORS) - Middleware","default_branch":null,"files":null,"tree":[],"storefront":"/r/lynxai-team","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/lynxai-team/garcon/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}