{"id":13500948,"url":"https://github.com/sumory/lor","last_synced_at":"2025-05-16T06:00:20.372Z","repository":{"id":3471562,"uuid":"49632904","full_name":"sumory/lor","owner":"sumory","description":"a fast, minimalist web framework for lua based on OpenResty","archived":false,"fork":false,"pushed_at":"2024-01-02T14:22:58.000Z","size":352,"stargazers_count":1021,"open_issues_count":12,"forks_count":181,"subscribers_count":82,"default_branch":"master","last_synced_at":"2025-04-08T15:12:17.869Z","etag":null,"topics":["api","lua","nginx","openresty","restful","sinatra","web"],"latest_commit_sha":null,"homepage":"https://sumory.github.io/lor_site/","language":"Lua","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/sumory.png","metadata":{"files":{"readme":"README.md","changelog":"Changes.md","contributing":null,"funding":null,"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}},"created_at":"2016-01-14T08:19:34.000Z","updated_at":"2025-04-01T15:32:23.000Z","dependencies_parsed_at":"2024-10-15T09:40:34.685Z","dependency_job_id":"b7a27f78-7055-48e6-8c5a-05d4337f5318","html_url":"https://github.com/sumory/lor","commit_stats":{"total_commits":232,"total_committers":17,"mean_commits":"13.647058823529411","dds":0.1594827586206896,"last_synced_commit":"6be87db3d878de46e308f73e8c1443da3696ec79"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumory%2Flor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumory%2Flor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumory%2Flor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumory%2Flor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sumory","download_url":"https://codeload.github.com/sumory/lor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254478160,"owners_count":22077675,"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":["api","lua","nginx","openresty","restful","sinatra","web"],"created_at":"2024-07-31T22:01:20.454Z","updated_at":"2025-05-16T06:00:19.742Z","avatar_url":"https://github.com/sumory.png","language":"Lua","readme":"# Lor\n\n[![https://travis-ci.org/sumory/lor.svg?branch=master](https://travis-ci.org/sumory/lor.svg?branch=master)](https://travis-ci.org/sumory/lor)  [![GitHub release](https://img.shields.io/github/release/sumory/lor.svg)](https://github.com/sumory/lor/releases/latest) [![license](https://img.shields.io/github/license/sumory/lor.svg)](https://github.com/sumory/lor/blob/master/LICENSE)\n\n\u003ca href=\"./README_zh.md\" style=\"font-size:13px\"\u003e中文\u003c/a\u003e \u003ca href=\"./README.md\" style=\"font-size:13px\"\u003eEnglish\u003c/a\u003e\n\nA fast and minimalist web framework based on [OpenResty](http://openresty.org).\n\n\n\n```lua\nlocal lor = require(\"lor.index\")\nlocal app = lor()\n\napp:get(\"/\", function(req, res, next)\n    res:send(\"hello world!\")\nend)\n\napp:run()\n```\n\n## Examples\n\n- [lor-example](https://github.com/lorlabs/lor-example)\n- [openresty-china](https://github.com/sumory/openresty-china)\n- [lua-redis-admin](https://github.com/lifeblood/lua-redis-admin)\n\n\n## Installation\n\n1) shell\n\n```shell\ngit clone https://github.com/sumory/lor\ncd lor\nmake install\n```\n\n`LOR_HOME` and `LORD_BIN` are supported by `Makefile`, so the following command could be used to customize installation:\n\n```\nmake install LOR_HOME=/path/to/lor LORD_BIN=/path/to/lord\n```\n\n2) opm\n\n`opm install` is supported from v0.2.2.\n\n```\nopm install sumory/lor\n```\n\n`lord` cli is not supported with this installation.\n\n3) homebrew\n\nyou can use [homebrew-lor](https://github.com/syhily/homebrew-lor) on Mac OSX.\n\n```\n$ brew tap syhily/lor\n$ brew install lor\n```\n\n\n## Features\n\n- Routing like [Sinatra](http://www.sinatrarb.com/) which is a famous Ruby framework\n- Similar API with [Express](http://expressjs.com), good experience for Node.js or Javascript developers\n- Middleware support\n- Group router support\n- Session/Cookie/Views supported and could be redefined with `Middleware`\n- Easy to build HTTP APIs, web site, or single page applications\n\n\n## Docs \u0026 Community\n\n- [Website and Documentation](http://lor.sumory.com).\n- [Github Organization](https://github.com/lorlabs) for Official Middleware \u0026 Modules.\n\n\n## Quick Start\n\nA quick way to get started with lor is to utilize the executable cli tool `lord` to generate an scaffold application.\n\n`lord` is installed with `lor` framework. it looks like:\n\n```bash\n$ lord -h\nlor ${version}, a Lua web framework based on OpenResty.\n\nUsage: lord COMMAND [OPTIONS]\n\nCommands:\n new [name]             Create a new application\n start                  Starts the server\n stop                   Stops the server\n restart                Restart the server\n version                Show version of lor\n help                   Show help tips\n```\n\nCreate app:\n\n```\n$ lord new lor_demo\n```\n\nStart server:\n\n```\n$ cd lor_demo \u0026\u0026 lord start\n```\n\nVisit [http://localhost:8888](http://localhost:8888).\n\n\n## Tests\n\nInstall [busted](http://olivinelabs.com/busted/), then run test\n\n```\nbusted spec/*\n```\n\n## Homebrew\n\n[https://github.com/syhily/homebrew-lor](https://github.com/syhily/homebrew-lor) maintained by [@syhily](https://github.com/syhily)\n\n## Contributors\n\n- [@ms2008](https://github.com/ms2008)\n- [@wanghaisheng](https://github.com/wanghaisheng)\n- [@lihuibin](https://github.com/lihuibin)\n- [@syhily](https://github.com/syhily)\n- [@vinsonzou](https://github.com/vinsonzou)\n- [@lhmwzy](https://github.com/lhmwzy)\n- [@hanxi](https://github.com/hanxi)\n- [@诗兄](https://github.com/269724033)\n- [@hetz](https://github.com/hetz)\n- [@XadillaX](https://github.com/XadillaX)\n\n## License\n\n[MIT](./LICENSE)\n","funding_links":[],"categories":["Lua"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsumory%2Flor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsumory%2Flor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsumory%2Flor/lists"}