{"id":13764111,"url":"https://github.com/aisk/vox","last_synced_at":"2025-05-01T11:56:06.511Z","repository":{"id":25027316,"uuid":"28446762","full_name":"aisk/vox","owner":"aisk","description":"Simple and lightweight Go web framework inspired by koa","archived":false,"fork":false,"pushed_at":"2022-12-10T04:57:26.000Z","size":78,"stargazers_count":84,"open_issues_count":8,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-01T11:55:58.336Z","etag":null,"topics":["express","go","golang","koa","lightweight","lightweight-framework","sinatra","web","webframework"],"latest_commit_sha":null,"homepage":"https://aisk.github.io/vox/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"OpenIB/OpenIB","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aisk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-24T11:22:08.000Z","updated_at":"2024-03-19T11:24:17.000Z","dependencies_parsed_at":"2023-01-14T02:00:07.774Z","dependency_job_id":null,"html_url":"https://github.com/aisk/vox","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aisk%2Fvox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aisk%2Fvox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aisk%2Fvox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aisk%2Fvox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aisk","download_url":"https://codeload.github.com/aisk/vox/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251871456,"owners_count":21657465,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["express","go","golang","koa","lightweight","lightweight-framework","sinatra","web","webframework"],"created_at":"2024-08-03T15:01:14.175Z","updated_at":"2025-05-01T11:56:06.470Z","avatar_url":"https://github.com/aisk.png","language":"Go","readme":"# VOX\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/aisk/vox.svg)](https://pkg.go.dev/github.com/aisk/vox)\n[![Build Status](https://travis-ci.org/aisk/vox.svg?branch=master)](https://travis-ci.org/aisk/vox)\n[![Codecov](https://img.shields.io/codecov/c/github/aisk/vox.svg)](https://codecov.io/gh/aisk/vox)\n[![Go Report Card](https://goreportcard.com/badge/github.com/aisk/vox)](https://goreportcard.com/report/github.com/aisk/vox)\n[![Maintainability](https://api.codeclimate.com/v1/badges/d9a7d62ccc89b1752cf3/maintainability)](https://codeclimate.com/github/aisk/vox/maintainability)\n[![Gitter chat](https://badges.gitter.im/go-vox/Lobby.png)](https://gitter.im/go-vox/Lobby)\n\nA golang web framework for humans, inspired by [Koa](http://koajs.com) heavily.\n\n![VoxLogo](https://cloudflare-ipfs.com/ipfs/QmUL4GF4HXhW6JUcNqVZBU1BwbJ2QULh81v5ZjZjPAWjnx)\n\n## Getting started\n\n### Installation\n\nUsing the `go get` power:\n\n```sh\n$ go get -u github.com/aisk/vox\n```\n\n### Basic Web Application\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"time\"\n\n\t\"github.com/aisk/vox\"\n)\n\nfunc main() {\n\tapp := vox.New()\n\n\t// custom middleware that add a x-response-time to the response header\n\tapp.Use(func(ctx *vox.Context, req *vox.Request, res *vox.Response) {\n\t\tstart := time.Now()\n\t\tctx.Next()\n\t\tduration := time.Now().Sub(start)\n\t\tres.Header.Set(\"X-Response-Time\", fmt.Sprintf(\"%s\", duration))\n\t})\n\n\t// router param\n\tapp.Get(\"/hello/{name}\", func(ctx *vox.Context, req *vox.Request, res *vox.Response) {\n\t\tres.Body = \"Hello, \" + req.Params[\"name\"] + \"!\"\n\t})\n\n\tapp.Run(\"localhost:3000\")\n}\n```\n\n## More Docs\n\nhttps://aisk.github.io/vox/\n\n## Need Support?\n\nIf you need help for using vox, or have other questions, welcome to our [gitter chat room](https://gitter.im/go-vox/Lobby).\n\n## About the Project\n\nVox is \u0026copy; 2016-2020 by [aisk](https://github.com/aisk).\n\n### License\n\nVox is distributed by a [MIT license](https://github.com/aisk/vox/tree/master/LICENSE).\n","funding_links":[],"categories":["web框架","Web框架","Web Frameworks","web框架`web 框架`","Utility","Go"],"sub_categories":["版本控制","实用程序/Miscellaneous","Utility/Miscellaneous","HTTP Clients","Fail injection","版本控制`版本控制相关库`"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faisk%2Fvox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faisk%2Fvox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faisk%2Fvox/lists"}