{"id":27131051,"url":"https://github.com/candyframework/luban","last_synced_at":"2025-04-07T20:20:13.215Z","repository":{"id":285052142,"uuid":"956920552","full_name":"candyframework/luban","owner":"candyframework","description":"An object-oriented efficient MVC and RESTful framework re-write from candyjs","archived":false,"fork":false,"pushed_at":"2025-03-29T06:11:44.000Z","size":120,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-29T07:21:52.182Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/candyframework.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-29T05:55:36.000Z","updated_at":"2025-03-29T06:11:47.000Z","dependencies_parsed_at":"2025-03-29T07:21:53.520Z","dependency_job_id":"d60a3148-d658-4261-8c09-b978cb370cb1","html_url":"https://github.com/candyframework/luban","commit_stats":null,"previous_names":["candyframework/luban"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/candyframework%2Fluban","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/candyframework%2Fluban/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/candyframework%2Fluban/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/candyframework%2Fluban/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/candyframework","download_url":"https://codeload.github.com/candyframework/luban/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247721888,"owners_count":20985085,"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":[],"created_at":"2025-04-07T20:20:12.592Z","updated_at":"2025-04-07T20:20:13.204Z","avatar_url":"https://github.com/candyframework.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## An object-oriented efficient MVC and RESTful framework\n\nThis project is rewritten based on the architecture of Project [CandyJs](https://github.com/candyframework)\n\n## Quick start\n\nLuBan application start with an entry file\n\n```typescript\nimport type HttpRequest from '@luban/framework/http/HttpRequest';\nimport Main from '@luban/framework';\nimport Application from '@luban/framework/rest/Application';\nimport HttpResponse from '@luban/framework/http/HttpResponse';\nimport Hook from '@luban/framework/core/Hook';\n\nHook.use(async (_req: Request, hook: Hook) =\u003e {\n    console.log('hook1 run');\n    return await hook.next();\n});\nHook.use(async (_req: Request, hook: Hook) =\u003e {\n    console.log('hook2 run');\n    return await hook.next();\n});\n\nconst app = new Application({\n    id: 'rest',\n    debug: true,\n});\n\napp.get('/', async (_request: HttpRequest) =\u003e {\n    return HttpResponse.fromText('Hello, world!');\n});\n\napp.get('/user/{id}', async (_request: HttpRequest, parameters: any) =\u003e {\n    return HttpResponse.fromText('User ' + parameters.id);\n});\n\nconst main = new Main(app);\nmain.listen({\n    port: 2333,\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcandyframework%2Fluban","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcandyframework%2Fluban","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcandyframework%2Fluban/lists"}