{"id":18862813,"url":"https://github.com/eik-lib/core","last_synced_at":"2026-06-10T04:00:57.383Z","repository":{"id":35304492,"uuid":"215166421","full_name":"eik-lib/core","owner":"eik-lib","description":"The implementation of the different HTTP API endpoint handlers","archived":false,"fork":false,"pushed_at":"2026-06-05T14:30:35.000Z","size":1699,"stargazers_count":3,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-06-05T16:17:31.786Z","etag":null,"topics":["eik"],"latest_commit_sha":null,"homepage":"https://eik.dev","language":"JavaScript","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/eik-lib.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":null,"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":"2019-10-14T23:56:16.000Z","updated_at":"2026-06-05T14:30:43.000Z","dependencies_parsed_at":"2026-02-15T12:03:35.349Z","dependency_job_id":null,"html_url":"https://github.com/eik-lib/core","commit_stats":null,"previous_names":[],"tags_count":219,"template":false,"template_full_name":null,"purl":"pkg:github/eik-lib/core","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eik-lib%2Fcore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eik-lib%2Fcore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eik-lib%2Fcore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eik-lib%2Fcore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eik-lib","download_url":"https://codeload.github.com/eik-lib/core/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eik-lib%2Fcore/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34082189,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["eik"],"created_at":"2024-11-08T04:35:49.052Z","updated_at":"2026-06-10T04:00:57.333Z","avatar_url":"https://github.com/eik-lib.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @eik/core\n\nThis module holds the core server functionality of [`@eik/service`](https://github.com/eik-lib/service#readme).\nEach [HTTP API endpoint](https://eik.dev/docs/server/http-api) has\nits own class handling the specific path and method.\n\n## API\n\n### http\n\nThis namespace holds the different HTTP API endpoint handlers. Each handler is a class with an async `handler` method.\n\n```js\nimport { http } from \"@eik/core\";\n\nlet pkgGetHandler = new eik.http.PkgGet({ organizations, sink, logger });\n\nlet response = await pkgGetHandler.handler(\n\trequest,\n\ttype,\n\tname,\n\tversion,\n\textras,\n);\n```\n\nFor a more complete usage example, see\n[the implementation in `@eik/service`](https://github.com/eik-lib/service/blob/00c85c1d366df50b688a82e62e5890381df11b0f/lib/main.js#L76-L113).\n\n### prop\n\nA gollection of globals holding base paths.\n\n```js\nimport { prop } from \"@eik/core\";\n\nconst { base_auth, base_map, base_pkg, base_npm } = prop;\n```\n\n### HealthCheck\n\nA health check implementation that does a create, read and delete check\nagainst the configured [storage sink](https://eik.dev/docs/server/storage).\n\n```js\nimport { HealthCheck } from \"@eik/core\";\n\nconst health = new HealthCheck({\n\tlogger,\n\tsink,\n});\n\nawait health.check();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feik-lib%2Fcore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feik-lib%2Fcore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feik-lib%2Fcore/lists"}