{"id":20494058,"url":"https://github.com/jaystack/corpjs-system","last_synced_at":"2025-03-05T17:46:09.653Z","repository":{"id":57209525,"uuid":"81822822","full_name":"jaystack/corpjs-system","owner":"jaystack","description":"Start and stop your modules in proper order","archived":false,"fork":false,"pushed_at":"2017-03-13T16:11:37.000Z","size":63,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-02-16T06:32:53.972Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jaystack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-13T12:27:46.000Z","updated_at":"2017-02-16T15:56:54.000Z","dependencies_parsed_at":"2022-09-01T08:41:09.228Z","dependency_job_id":null,"html_url":"https://github.com/jaystack/corpjs-system","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaystack%2Fcorpjs-system","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaystack%2Fcorpjs-system/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaystack%2Fcorpjs-system/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaystack%2Fcorpjs-system/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaystack","download_url":"https://codeload.github.com/jaystack/corpjs-system/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242075673,"owners_count":20068227,"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-15T17:38:05.163Z","updated_at":"2025-03-05T17:46:09.628Z","avatar_url":"https://github.com/jaystack.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# corpjs-system\nStart and stop your components in proper order\n\n## Features\n\n### Reused features from Electric by Systemic\n\n- System built on components\n- Dependencies between components\n- Graceful start and stop\n\n### Additional and enhanced features beyond Electric by Systemic\n\n- Dependencies are controlled globaly\n- More descriptive dependencies\n  - renaming\n  - taking subresources\n- Grouping subsystems\n\n### Additional and enhanced features beyond Systemic by corpjs-system\n\n- Type-based\n- Promise interface instead of callback interface\n- More ergonomic system grouping\n- Opportunity for restarting the whole system from any component\n- Opportunity for stopping the whole system from any component\n- Opportunity for ignorable component errors\n- Graceful stop and optional process exit on abnormal behavior\n- Graceful SIGINT / SIGTERM termination\n\n## Events\n\n- start\n  - `resources: ResourceDescriptor` - all resources of the whole system\n- stop\n- restart\n  - `resources: ResourceDescriptor` - all resources of the whole system after restart\n- componentStart\n  - `componentName: String`\n  - `resources: ResourceDescriptor` - currently available resources\n- componentStartFailed\n  - `componentName: String`\n  - `error: Error`\n- componentStop\n  - `componentName: String`\n- componentStopFailed\n  - `componentName: String`\n  - `error: Error`\n- stopTimeout\n  - `stopTimeout: Number`\n- componentRunFailed\n  - `componentName: String`\n  - `error: Error`\n- uncaughtException\n  - `error: Error`\n- unhandledRejection\n  - `error: Error`\n- terminate\n  - `signal: String`\n- exit\n  - `code: Number`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaystack%2Fcorpjs-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaystack%2Fcorpjs-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaystack%2Fcorpjs-system/lists"}