{"id":18647611,"url":"https://github.com/artcom/service-init","last_synced_at":"2025-11-05T06:30:34.912Z","repository":{"id":76813848,"uuid":"66536574","full_name":"artcom/service-init","owner":"artcom","description":null,"archived":false,"fork":false,"pushed_at":"2019-03-26T12:51:06.000Z","size":139,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":23,"default_branch":"master","last_synced_at":"2025-01-27T14:18:51.142Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/artcom.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-08-25T07:43:40.000Z","updated_at":"2019-03-26T12:51:07.000Z","dependencies_parsed_at":"2023-03-11T23:09:17.525Z","dependency_job_id":null,"html_url":"https://github.com/artcom/service-init","commit_stats":{"total_commits":62,"total_committers":2,"mean_commits":31.0,"dds":"0.032258064516129004","last_synced_commit":"38cf0e76cb3b345da102302342f90bdccc988561"},"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artcom%2Fservice-init","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artcom%2Fservice-init/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artcom%2Fservice-init/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artcom%2Fservice-init/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/artcom","download_url":"https://codeload.github.com/artcom/service-init/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239449583,"owners_count":19640535,"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-07T06:27:09.391Z","updated_at":"2025-11-05T06:30:34.881Z","avatar_url":"https://github.com/artcom.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Service Init\n\nWraps the initialization tasks of a backend service.\n\n## Features\n\n* A [bunyan](https://www.npmjs.com/package/bunyan) logger\n* MQTT client connection via [mqtt-topping](https://www.npmjs.com/package/mqtt-topping)\n* A config query method which \n* Bootstrap parameter returned by a query of a given uri with retries\n\n## Usage\n\n```javascript\nvar init = require(\"service-init\");\n\nvar serviceId = \"myService\";\nvar bootstrapUri = \"http://bootstrap-server.com/myService\"; // process.env is used for bootstrapping if null\n\ninit(serviceId, bootstrapUri, (log, mqttClient, queryConfig, bootstrapData) =\u003e {\n  // application logic goes here\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartcom%2Fservice-init","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fartcom%2Fservice-init","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartcom%2Fservice-init/lists"}