{"id":21346891,"url":"https://github.com/queer/autumn","last_synced_at":"2025-07-12T17:31:24.782Z","repository":{"id":37860013,"uuid":"363503045","full_name":"queer/autumn","owner":"queer","description":"Experimental Netty-based Java 16 application/web framework","archived":false,"fork":false,"pushed_at":"2023-03-06T15:57:18.000Z","size":365,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"mistress","last_synced_at":"2023-03-06T17:16:49.074Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/queer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-01T20:40:14.000Z","updated_at":"2023-01-31T18:52:38.000Z","dependencies_parsed_at":"2023-02-19T10:01:30.225Z","dependency_job_id":null,"html_url":"https://github.com/queer/autumn","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/queer%2Fautumn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/queer%2Fautumn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/queer%2Fautumn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/queer%2Fautumn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/queer","download_url":"https://codeload.github.com/queer/autumn/tar.gz/refs/heads/mistress","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225829064,"owners_count":17530666,"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-11-22T02:11:51.090Z","updated_at":"2024-11-22T02:11:51.614Z","avatar_url":"https://github.com/queer.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"![autumn](./autumn.png)\n\nExperimental Netty-based application/web framework.\n\nAn example application can be seen [here](https://github.com/queer/autumn/tree/mistress/autumn-example).\n\n## Should I use this?\n\nProbably not! It's still incredibly early-stage -- everything's versioned at\n`0.0.1` for a reason, after all~ -- and so there's all sorts of instabilities,\nweirdness, etc. that you probably don't want to deal with.\n\n## Components\n\n- `autumn-example`: Example application.\n- `autumn-application`: Application bootstrap.\n- `autumn-config`: [HJSON](https://hjson.github.io/)-based configuration.\n- `autumn-di`: Dependency injection framework.\n- `autumn-data`: Database access layer.\n- `autumn-json`: JSON helper library.\n- `autumn-web`: Web framework.\n\n## What does work\n\n- JVM boot to usable API in ~500ms\n- Runs with 32MB of heap RAM or less\n- Runtime DI + modularisation via components\n- Component dependencies\n- JSON\n- Web server\n- [HJSON](https://hjson.github.io/)-based autoconfig\n- Object-mapping database manipulation via PostgreSQL JSONB.\n\n## What doesn't work\n\n- Multipart\n- Websockets\n- HTTP/2 (dealing with SSL is a hairy problem)\n- Globbing routes\n\n## Build an API in 30 seconds\n\n```java\npublic class Readme {\n    public static void main(String[] args) {\n        AutumnApplication.run();\n    }\n\n    @Route(method = HttpMethod.GET, path = \"/hello/:name\")\n    public Response hello(Request req) {\n        return Response.create().body(\"henlo \" + req.params().get(\"name\") + '!');\n    }\n}\n```\n\n## Modularise with components\n\n```java\n\n@Component\npublic class HelloComponent {\n    public String sayHello(String name) {\n        return \"henlo \" + name + \"!\";\n    }\n}\n\npublic class Readme {\n    @Inject\n    private HelloComponent hello;\n\n    public static void main(String[] args) {\n        AutumnApplication.run();\n    }\n\n    @Route(method = HttpMethod.GET, path = \"/hello/:name\")\n    public Response hello(Request req) {\n        return Response.create().body(hello.sayHello(req.params().get(\"name\")));\n    }\n}\n```\n\n## Singleton components for ex. databases\n\n```java\n\n@Component\n@Singleton\npublic class SingletonComponent {\n    public String sayHello(String name) {\n        return \"henlo \" + name + \"!\";\n    }\n}\n\npublic class Readme {\n    @Inject\n    private SingletonComponent singleton;\n\n    public static void main(String[] args) {\n        AutumnApplication.run();\n    }\n\n    @Route(method = HttpMethod.GET, path = \"/hello/:name\")\n    public Response hello(Request req) {\n        return Response.create().body(singleton.sayHello(req.params().get(\"name\")));\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqueer%2Fautumn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqueer%2Fautumn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqueer%2Fautumn/lists"}