{"id":15706481,"url":"https://github.com/koooooo-7/kono","last_synced_at":"2025-05-12T18:55:39.084Z","repository":{"id":37110685,"uuid":"280895255","full_name":"Koooooo-7/Kono","owner":"Koooooo-7","description":"💊 A simplified lightweight restful web framework.","archived":false,"fork":false,"pushed_at":"2022-11-19T15:48:13.000Z","size":94,"stargazers_count":4,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-01T01:51:08.554Z","etag":null,"topics":["java","kono","spirngboot","webframework"],"latest_commit_sha":null,"homepage":"https://github.com/Koooooo-7/Kono","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Koooooo-7.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":"2020-07-19T15:33:11.000Z","updated_at":"2023-04-12T11:59:07.000Z","dependencies_parsed_at":"2023-01-21T02:50:16.760Z","dependency_job_id":null,"html_url":"https://github.com/Koooooo-7/Kono","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Koooooo-7%2FKono","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Koooooo-7%2FKono/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Koooooo-7%2FKono/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Koooooo-7%2FKono/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Koooooo-7","download_url":"https://codeload.github.com/Koooooo-7/Kono/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253805346,"owners_count":21967050,"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":["java","kono","spirngboot","webframework"],"created_at":"2024-10-03T20:23:12.824Z","updated_at":"2025-05-12T18:55:39.051Z","avatar_url":"https://github.com/Koooooo-7.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://user-images.githubusercontent.com/33706142/97104005-35c28c00-16eb-11eb-85e9-025d6926ade5.png\" /\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eKono\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n    \u003cem\u003e💊 A simplified lightweight restful web framework.\u003c/em\u003e\n\u003c/p\u003e\n\n*When I used lots of out-of-box stuff, I wanna create something by myself, it does not matter whether it is fellowing the trending right now. I just wanna integrate those classic features from different languages/frameworks in my mind to one place, thus `Kono` is here, which is a simplified lightweight web framework.*\n\n\n\n### ✨ Features\n\n- Automatically route\n\n  It will automatically generate the route based on the controller and methods.\n\n- Dynamical request support\n\n  You can use one method to support both `GET` and `POST` requests. \n\n- Flexible acquire parameters\n\n  There is more flexible way to acquire request parameters, and support parameter preprocessing. \n\n- Streaming responses\n\n  Using the builder way to return your responses and build your own fully response.\n\n\n\n### 📝 Usage\n\nLet us have a look how it works easily. *(More details see the samples in project.)*\n\nCreate an `IndexController` supports the requests.\n\n- GET /index/user\n- POST /index/user\n\n```java\n// the default root route will be /index\npublic class IndexController extends BaseController {\n\n    // both support the GET and POST request to /index/user\n    public void user() {\n        // get the specific request parameter\n        Optional\u003cString\u003e user = this.getRequest().get(\"user\", (parameter) -\u003e {\n            // you could do some thing before you get the parameter, such as set a filter;\n            return parameter;\n        });\n        Map\u003cString, Object\u003e map = new HashMap\u003c\u003e();\n        map.put(\"Koy\", \"Hello World!\");\n        map.put(user.orElseGet(() -\u003e \"Anonymous\"), \"Kono!\");\n        this.getResponse().send(map).json();\n    }\n    \n    // only support the GET request to /index/user, the specific request type method has higher priority.\n    public void getUser(){\n        Optional\u003cString\u003e user = this.getRequest().get(\"user\");\n        Map\u003cString, Object\u003e map = new HashMap\u003c\u003e();\n        map.put(\"Koy2\", \"Hello World!2\");\n        map.put(user.orElseGet(() -\u003e \"Anonymous2\"), \"Kono!2\");\n        this.getResponse().send(map).json();\n    }\n}\n```\n\n\n\n### 💡 Reference\n\nThanks to those projects which inspire me and give me references a lot. (and there will get more and more)\n\n[SpringBoot](https://github.com/spring-projects/spring-boot) - A  popular, wonderful and elegant web framework in Java.\n\n[Laravel](https://github.com/laravel/laravel) - A PHP framework for web artisans.\n\n[ThinkPHP](https://github.com/top-think/framework) - A  easy to use PHP framework.\n\n[Django](https://github.com/django/django) - The Web framework for perfectionists with deadlines in Python. \n\n[JOOQ](https://github.com/jOOQ/jOOQ) -  A fancy ORM lib to write SQL in Java.\n\n\n\n### 📃 LICENSE\n\nApache-2.0 License [©Koy](https://github.com/Koooooo-7)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoooooo-7%2Fkono","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoooooo-7%2Fkono","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoooooo-7%2Fkono/lists"}