{"id":13450071,"url":"https://nedpals.github.io/vex/","last_synced_at":"2025-03-23T16:30:56.559Z","repository":{"id":40589409,"uuid":"221483704","full_name":"nedpals/vex","owner":"nedpals","description":"Easy-to-use, modular web framework built for V","archived":false,"fork":false,"pushed_at":"2024-02-03T11:00:27.000Z","size":729,"stargazers_count":333,"open_issues_count":9,"forks_count":28,"subscribers_count":16,"default_branch":"master","last_synced_at":"2024-05-01T14:54:16.026Z","etag":null,"topics":["http-server","v","vlang","web-framework"],"latest_commit_sha":null,"homepage":"https://nedpals.github.io/vex","language":"V","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nedpals.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["nedpals"]}},"created_at":"2019-11-13T14:55:21.000Z","updated_at":"2024-05-05T11:38:54.732Z","dependencies_parsed_at":"2023-12-04T13:39:48.299Z","dependency_job_id":"8a54589a-fa9a-47ef-950f-df40a921fc2d","html_url":"https://github.com/nedpals/vex","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nedpals%2Fvex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nedpals%2Fvex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nedpals%2Fvex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nedpals%2Fvex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nedpals","download_url":"https://codeload.github.com/nedpals/vex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245130698,"owners_count":20565696,"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":["http-server","v","vlang","web-framework"],"created_at":"2024-07-31T07:00:29.438Z","updated_at":"2025-03-23T16:30:56.239Z","avatar_url":"https://github.com/nedpals.png","language":"V","funding_links":["https://github.com/sponsors/nedpals"],"categories":["Vex"],"sub_categories":[],"readme":"![Logo](https://github.com/nedpals/vex/raw/master/vex.svg)\n\n### Easy-to-use, modular web framework for [V](https://vlang.io).\n\n![CI](https://github.com/nedpals/vex/workflows/CI/badge.svg)\n\n![Example written on VEX](https://github.com/nedpals/vex/raw/master/examples/example.png)\n\n```v\nmodule main\n\nimport nedpals.vex.router\nimport nedpals.vex.server\nimport nedpals.vex.ctx\n\nfn print_req_info(mut req ctx.Req, mut res ctx.Resp) {\n\tprintln('${req.method} ${req.path}')\n}\n\nfn do_stuff(mut req ctx.Req, mut res ctx.Resp) {\n\tprintln('incoming request!')\n}\n\nfn main() {\n    mut app := router.new()\n    app.use(do_stuff, print_req_info)\n\n    app.route(.get, '/', fn (req \u0026ctx.Req, mut res ctx.Resp) {\n        res.send_file('index.html', 200)\n    })\n\n    app.route(.get, '/public/*path', fn (req \u0026ctx.Req, mut res ctx.Resp) {\n        res.send_file('public/' + req.params['path'], 200)\n    })\n\n    app.route(.get, '/path/:name', fn (req \u0026ctx.Req, mut res ctx.Resp) {\n        println('path is ${req.params[\"name\"]}')\n    }, fn (req \u0026ctx.Req, mut res ctx.Resp) {\n        res.send('path: ' + req.params['name'], 200)\n    })\n\n    app.route(.get, '/complex/:name/*path', fn (req \u0026ctx.Req, mut res ctx.Resp) {\n        res.send('username: ' + req.params['name'] + '\\npath: ' + req.params['path'], 200)\n    })\n\n    server.serve(app, 6789)\n}\n```\n\n## Installation \u0026 Getting Started\nLearn how to setup and use VEX by reading the [Wiki](https://github.com/nedpals/vex/wiki/Installation).\n\n## Roadmap\n- [X] Support for `GET`, `POST`, `PUT`, `PATCH`, `DELETE`, and `OPTION` HTTP methods.\n- [x] HTTP Router (Wildcards are now supported)\n- [x] Route groups (non-reusable for now)\n- [x] ~~Static file server~~\n- [x] Params and query parsing\n- [x] Middleware support\n- [x] Cookie parsing (basic support)\n- [x] Cookie manipulation / Session support\n- [ ] Websocket Server\n- [x] Body parsing\n  - [x] `application/x-www-form-urlencoded` support\n  - [x] `application/json` support\n  - [x] `multipart/form-data` support\n\n## Contributing\n1. Fork it (\u003chttps://github.com/nedpals/vex/fork\u003e)\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n\n## Examples\nExamples can be found at the [`/examples`](/examples) directory.\n\n## License\n[MIT](LICENSE)\n\n## Contributors\n\n- [Ned Palacios](https://github.com/nedpals) - creator and maintainer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/nedpals.github.io%2Fvex%2F","html_url":"https://awesome.ecosyste.ms/projects/nedpals.github.io%2Fvex%2F","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/nedpals.github.io%2Fvex%2F/lists"}