{"id":16612462,"url":"https://github.com/taichi/siden","last_synced_at":"2025-10-19T20:59:07.184Z","repository":{"id":21492543,"uuid":"24811435","full_name":"taichi/siden","owner":"taichi","description":"tiny web application framework for Java SE 8 on top of undertow.","archived":false,"fork":false,"pushed_at":"2016-03-04T16:29:55.000Z","size":500,"stargazers_count":59,"open_issues_count":1,"forks_count":3,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-03-01T07:05:53.073Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/taichi/siden","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/taichi.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-10-05T08:19:14.000Z","updated_at":"2022-06-27T05:40:26.000Z","dependencies_parsed_at":"2022-09-20T12:25:41.735Z","dependency_job_id":null,"html_url":"https://github.com/taichi/siden","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taichi%2Fsiden","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taichi%2Fsiden/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taichi%2Fsiden/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taichi%2Fsiden/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/taichi","download_url":"https://codeload.github.com/taichi/siden/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244141444,"owners_count":20404837,"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":"2024-10-12T01:42:17.751Z","updated_at":"2025-10-19T20:59:02.139Z","avatar_url":"https://github.com/taichi.png","language":"Java","funding_links":[],"categories":["开发框架"],"sub_categories":["Web框架"],"readme":"# Siden\ntiny web application framework for Java SE 8.\n\nSiden focus on writing your application quickly and running server more faster.\n\n## Getting Started\n\n### Write simple java application\n\n```java\nimport ninja.siden.App;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tApp app = new App();\n\t\tapp.get(\"/hello\", (req, res) -\u003e \"Hello world\");\n\t\tapp.listen();\n\t}\n}\n```\n\nif you want to more examples, see [example/Main.java](https://github.com/taichi/siden/blob/master/siden-example/src/main/java/example/Main.java).\n\n### Add dependency to your build.gradle\n\n```groovy\napply plugin: 'java'\n\nrepositories.jcenter()\n\ndependencies {\n\tcompile 'ninja.siden:siden-core:0.6.0'\n}\n\nsourceCompatibility = targetCompatibility = 1.8\n```\n\n### Run and View\n\n    http://localhost:8080/hello\n\n## WebSocket Example\n\n```java\nimport java.nio.file.Paths;\nimport ninja.siden.App;\n\npublic class UseWebsocket {\n\tpublic static void main(String[] args) {\n\t\tApp app = new App();\n\t\tapp.get(\"/\", (q, s) -\u003e Paths.get(\"assets/chat.html\"));\n\t\tapp.websocket(\"/ws\").onText(\n\t\t\t(con, txt) -\u003e con.peers().forEach(c -\u003e c.send(txt)));\n\t\tapp.listen(8181);\n\t}\n}\n```\n\n# License\n\nApache License, Version 2.0\n\n# Inspired projects\n\n* http://expressjs.com/\n* http://www.sinatrarb.com/\n* http://www.sparkjava.com/\n* http://flask.pocoo.org/\n\n# Badges\n\n[![wercker status](https://app.wercker.com/status/de09957e13da7a18ae6cf3fbd67afc68/m \"wercker status\")](https://app.wercker.com/project/bykey/de09957e13da7a18ae6cf3fbd67afc68)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaichi%2Fsiden","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaichi%2Fsiden","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaichi%2Fsiden/lists"}