{"id":47755911,"url":"https://github.com/macielti/service","last_synced_at":"2026-04-03T04:20:43.521Z","repository":{"id":261887871,"uuid":"885622026","full_name":"macielti/service","owner":"macielti","description":"Service Component is a Pedestal service Integrant component","archived":false,"fork":false,"pushed_at":"2026-03-09T02:08:33.000Z","size":96,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-15T01:10:01.249Z","etag":null,"topics":["clojure","integrant","pedestal"],"latest_commit_sha":null,"homepage":"https://github.com/macielti/service-component","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/macielti.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-11-09T00:47:29.000Z","updated_at":"2026-03-09T02:08:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"5be27be1-d9de-4e22-bf5f-9c7e4334350a","html_url":"https://github.com/macielti/service","commit_stats":null,"previous_names":["macielti/service-component","macielti/service"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/macielti/service","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macielti%2Fservice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macielti%2Fservice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macielti%2Fservice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macielti%2Fservice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/macielti","download_url":"https://codeload.github.com/macielti/service/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macielti%2Fservice/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31333234,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-03T03:20:36.090Z","status":"ssl_error","status_checked_at":"2026-04-03T03:20:35.133Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["clojure","integrant","pedestal"],"created_at":"2026-04-03T04:20:42.743Z","updated_at":"2026-04-03T04:20:43.515Z","avatar_url":"https://github.com/macielti.png","language":"Clojure","readme":"[![Clojars Project](https://img.shields.io/clojars/v/net.clojars.macielti/service-component.svg)](https://clojars.org/net.clojars.macielti/service-component)\n![Compatible with GraalVM](https://img.shields.io/badge/compatible_with-GraalVM-green)\n\n# Service\n\nService is a Pedestal service Integrant component.\n\nIf you will be using this library in a project intended to be compiled using GraalVM, you should add the following\ndependencies to your project:\n\n``` clojure\n  [net.clojars.macielti/service \"x.y.z\"]\n  [io.pedestal/pedestal.service \"0.8.1\"]\n  [io.pedestal/pedestal.jetty \"0.8.1\"]\n  [io.pedestal/pedestal.error \"0.8.1\"]\n```\n\n## Configuration\n\nThe service component accepts configuration through the `:service` key in your config map. The following options are available:\n\n| Key                 | Type                | Required | Default        | Description                                                                          |\n|---------------------|---------------------|----------|----------------|--------------------------------------------------------------------------------------|\n| `:host`             | String              | Yes      | —              | The host address to bind the server to (e.g., `\"0.0.0.0\"`).                         |\n| `:port`             | Integer             | Yes      | —              | The port number to listen on (e.g., `8080`).                                         |\n| `:idle-timeout-ms`  | Integer             | No       | `30000`        | Jetty idle timeout in milliseconds. Connections idle beyond this duration are closed. |\n| `:allowed-origins`  | Collection\\\u003cString\u003e | No       | Allow all origins | A collection of allowed origin strings for CORS. When provided, only the specified origins are permitted. When omitted or empty, all origins are allowed. |\n\n### Example\n\n```clojure\n{:service {:host            \"0.0.0.0\"\n           :port            8080\n           :idle-timeout-ms 60000                                     ;; 60 seconds\n           :allowed-origins [\"https://example.com\" \"https://app.example.com\"]}}\n```\n\n\u003e **Note:** If `:idle-timeout-ms` is not provided, a default of **30 seconds** (`30000` ms) is applied to prevent long-running or stalled requests from tying up server threads indefinitely.\n\n\u003e **Note:** If `:allowed-origins` is not provided or is empty, the server will accept requests from **any origin**. In production, it is recommended to explicitly list trusted origins to prevent unwanted cross-origin access.\n\n## License\n\nCopyright © 2024 Bruno do Nascimento Maciel\n\nThis program and the accompanying materials are made available under the\nterms of the Eclipse Public License 2.0 which is available at\nhttp://www.eclipse.org/legal/epl-2.0.\n\nThis Source Code may also be made available under the following Secondary\nLicenses when the conditions for such availability set forth in the Eclipse\nPublic License, v. 2.0 are satisfied: GNU General Public License as published by\nthe Free Software Foundation, either version 2 of the License, or (at your\noption) any later version, with the GNU Classpath Exception which is available\nat https://www.gnu.org/software/classpath/license.html.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacielti%2Fservice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmacielti%2Fservice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacielti%2Fservice/lists"}