{"id":25970955,"url":"https://github.com/krkarma777/javelin","last_synced_at":"2026-04-23T03:31:25.898Z","repository":{"id":279177404,"uuid":"937943697","full_name":"krkarma777/Javelin","owner":"krkarma777","description":"A high-performance, lightweight Java Web Application Server powered by Virtual Threads. 🚀","archived":false,"fork":false,"pushed_at":"2025-04-03T08:26:27.000Z","size":1102,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-03T09:30:50.545Z","etag":null,"topics":["concurrency","high-performance","http-server","java","java21","javelin","lightweight","modern-java","virtual-threads","was","web-server"],"latest_commit_sha":null,"homepage":"","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/krkarma777.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-02-24T07:01:40.000Z","updated_at":"2025-04-03T08:26:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"81473bd4-728e-4900-8dd9-88761daec965","html_url":"https://github.com/krkarma777/Javelin","commit_stats":null,"previous_names":["krkarma777/javelin"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/krkarma777/Javelin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krkarma777%2FJavelin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krkarma777%2FJavelin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krkarma777%2FJavelin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krkarma777%2FJavelin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krkarma777","download_url":"https://codeload.github.com/krkarma777/Javelin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krkarma777%2FJavelin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32164858,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-23T02:19:40.750Z","status":"ssl_error","status_checked_at":"2026-04-23T02:17:55.737Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["concurrency","high-performance","http-server","java","java21","javelin","lightweight","modern-java","virtual-threads","was","web-server"],"created_at":"2025-03-04T23:29:09.868Z","updated_at":"2026-04-23T03:31:25.893Z","avatar_url":"https://github.com/krkarma777.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/user-attachments/assets/16897406-0432-4734-a59f-26f85e5cf038\" alt=\"logo\" width=\"400\" /\u003e\n\u003c/p\u003e\n\n# Javelin WAS - A High-Performance Virtual Thread-Based Web Application Server 🚀\n\nJavelin WAS is a lightweight, high-performance web application server built on Java Virtual Threads.  \nIt aims to provide a modern alternative to traditional Java-based WAS solutions like Tomcat and Jetty, leveraging Virtual Threads for maximum concurrency and efficiency.\n\n---\n\n## 🔥 Features\n- **Virtual Thread-Based Concurrency** – Handles thousands of concurrent requests efficiently without blocking OS threads.\n- **Lightweight \u0026 Fast** – Designed to be minimal and optimized for high performance.\n- **Easy Routing** – Supports simple and flexible request handling.\n- **Middleware System** – Easily extendable with logging, authentication, and security middleware.\n- **JSON Support** – Built-in JSON serialization and deserialization.\n- **Static File Serving** – Serves static files efficiently without external dependencies.\n- **Designed for Modern Java Applications** – No heavy frameworks required.\n\n---\n\n## ☕ Requirements\n- Java **21** or higher (required for Virtual Threads)\n- Gradle **7+**\n\n---\n\n## 🛠️ Installation \u0026 Running\n\n### 1. Clone the repository\n```sh\ngit clone https://github.com/your-repo/Javelin.git\ncd javelin-was\n```\n\n### 2. Build \u0026 Run (Using Gradle)\n```sh\n./gradlew run\n```\n\n---\n\n## 🚀 Test the Server\n\nOnce the server is running, open your browser or use `curl`:\n\n```sh\ncurl http://localhost:8080\n```\n\n✅ **Expected Response:**\n```\nHello from Javelin Virtual Thread WAS!\n```\n\n#### ✅ Example Code (Minimal)\n```java\npublic class Main {\n    public static void main(String[] args) {\n        VirtualThreadServer server = new VirtualThreadServer(8080);\n\n        server.get(\"/\", ctx -\u003e ctx.send(\"Hello from Javelin Virtual Thread WAS!\"));\n\n        server.start();\n    }\n}\n```\n\n---\n\n## 🧪 Example Usage\n\n### 🧩 Middleware\n```java\nserver.use(ctx -\u003e {\n    System.out.println(\"Request Path: \" + ctx.path());\n    ctx.next();\n});\n```\n\n### 📦 JSON Handling\n```java\nserver.post(\"/echo\", ctx -\u003e {\n    Map\u003cString, Object\u003e data = ctx.body(Map.class);\n    ctx.json(Map.of(\"you_sent\", data));\n});\n```\n\n---\n\n## 📁 Serving Static Files\nTo serve files from a `public/` directory under `/static`:\n\n```java\nserver.use(new StaticFileHandler(\"/static\", \"public\"));\n```\n\nThen access:\n```\nhttp://localhost:8080/static/index.html\n```\n\n---\n\n## 🧠 How It Works\n\nJavelin WAS uses **Java 21+ Virtual Threads** to efficiently handle HTTP requests without the overhead of traditional thread pools.  \nEach request is processed in a lightweight Virtual Thread, allowing **massive concurrency with minimal resource usage**.\n\n---\n\n## 📜 License\nThis project is licensed under the **Apache License 2.0**.  \nSee the [`LICENSE`](LICENSE) file for more details.\n\n---\n\n## 👥 Contributing\nWe welcome contributions!  \nFeel free to submit issues, feature requests, or pull requests.\n\n---\n\n## 📧 Contact\nFor inquiries or collaboration:  \n**📩 krkarma777@gmail.com**\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrkarma777%2Fjavelin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrkarma777%2Fjavelin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrkarma777%2Fjavelin/lists"}