{"id":48250204,"url":"https://github.com/litert/xxl-job-integration.js","last_synced_at":"2026-04-04T20:50:03.088Z","repository":{"id":300967379,"uuid":"1006958724","full_name":"litert/xxl-job-integration.js","owner":"litert","description":"A lightweight integration of XXL-Job for NodeJS.","archived":false,"fork":false,"pushed_at":"2025-06-25T15:13:17.000Z","size":116,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-13T01:01:59.623Z","etag":null,"topics":["cron","scheduler","timer","xxl-job"],"latest_commit_sha":null,"homepage":"https://litert.org/projects/xxl-job-integration.js/","language":"TypeScript","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/litert.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.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}},"created_at":"2025-06-23T08:50:53.000Z","updated_at":"2025-06-25T15:13:10.000Z","dependencies_parsed_at":"2025-06-24T13:58:21.821Z","dependency_job_id":"c48eaf3d-9c09-456c-b2be-1ed8f7719604","html_url":"https://github.com/litert/xxl-job-integration.js","commit_stats":null,"previous_names":["litert/xxl-job-integration.js"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/litert/xxl-job-integration.js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litert%2Fxxl-job-integration.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litert%2Fxxl-job-integration.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litert%2Fxxl-job-integration.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litert%2Fxxl-job-integration.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/litert","download_url":"https://codeload.github.com/litert/xxl-job-integration.js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litert%2Fxxl-job-integration.js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31413284,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T20:09:54.854Z","status":"ssl_error","status_checked_at":"2026-04-04T20:09:44.350Z","response_time":60,"last_error":"SSL_read: 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":["cron","scheduler","timer","xxl-job"],"created_at":"2026-04-04T20:50:02.210Z","updated_at":"2026-04-04T20:50:02.816Z","avatar_url":"https://github.com/litert.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LiteRT/XXL-Job Integration\n\n[![Strict TypeScript Checked](https://badgen.net/badge/TS/Strict \"Strict TypeScript Checked\")](https://www.typescriptlang.org)\n[![npm version](https://img.shields.io/npm/v/@litert/xxl-job-integration.svg?colorB=brightgreen)](https://www.npmjs.com/package/@litert/xxl-job-integration \"Stable Version\")\n[![License](https://img.shields.io/npm/l/@litert/xxl-job-integration.svg?maxAge=2592000?style=plastic)](https://github.com/litert/xxl-job-integration.js/blob/master/LICENSE)\n[![node](https://img.shields.io/node/v/@litert/xxl-job-integration.svg?colorB=brightgreen)](https://nodejs.org/dist/latest-v8.x/)\n[![GitHub issues](https://img.shields.io/github/issues/litert/xxl-job-integration.js.svg)](https://github.com/litert/xxl-job-integration.js/issues)\n[![GitHub Releases](https://img.shields.io/github/release/litert/xxl-job-integration.js.svg)](https://github.com/litert/xxl-job-integration.js/releases \"Stable Release\")\n\nA lightweight integration of XXL-Job for NodeJS.\n\n## Features\n\n- [x] Completely flexible and composable\n\n    The library is designed to be flexible and composable, allowing you to use only the features you need. And you can replace most of the components with other implementations if you want.\n\n- [x] Glue Types\n\n    - [x] [Bean](./src//lib/JobRunner/Bean.ts)\n\n        Write your job handler in NodeJS, so it can be called by the XXL-Job server with a specific handler name.\n\n    - [x] [NodeJS Script](./src/lib/JobRunner/NodeJsInProcess.ts)\n\n        Run a NodeJS script in current process, which can be used to run a job handler written in NodeJS.\n\n        This allows you to create extra job handlers without the need to change the executor code.\n\n        \u003e However, this may cause some RCE vulnerabilities if you use untrusted scripts, so be careful when using this feature.\n\n    - [ ] Shell Script\n\n        Not yet implemented, but will be available in the future.\n\n    - [ ] Python Script\n\n        Not yet implemented, but will be available in the future.\n\n- [x] [Register Agent](./src/lib/RegisterAgent.ts)\n\n    Automatically register the executor to the XXL-Job server and keep it alive.\n\n- [x] Routing strategies\n\n    - [x] FAIL_OVER\n    - [x] BUSY_OVER\n\n- [x] Log storage (with rotation support)\n\n    - [x] Built-in: [MemoryLogManager](./src/lib/LogManagers/MemoryLogManager.ts)\n    \n        Store the logs in memory, which is suitable for development and testing purposes.\n\n    - [x] Built-in: [FileLogManager](./src/lib/LogManagers/FileLogManager.ts)\n    \n        Store the logs in files, which is suitable for production environments. It supports log rotation based on file creation time.\n\n    - [x] Custom logs storage\n\n        You can also implement your own log storage to store the job logs in a persistent way as you want.\n\n## Requirement\n\n- TypeScript v5.0.0 (or newer)\n- Node.js v18.0.0 (or newer)\n- XXL-Job v3.1.0 (or newer)\n\n    \u003e The lower versions may work, but they are not tested and not guaranteed to work.\n\n## Installation\n\n```sh\nnpm i @litert/xxl-job-integration --save\n```\n\n## Example Usage\n\n- [Using `node:http` and `FileLogManager` to run a job handler](./src/examples/quick-start/app.ts)\n- [Using `fastify` and `MemoryLogManager` to run a job handler](./src/examples/using-fastify/app.ts)\n\n## Documentation\n\n- [Quick Start (en-US)](https://litert.org/projects/xxl-job-integration.js/guides/quick-start.html)\n\n    A quick start guide to get you started with the library.\n\n- [API Documentation (en-US)](https://litert.org/projects/xxl-job-integration.js/api/)\n\n    The API documentation of the library, including all the classes and methods.\n\n## License\n\nThis library is published under [Apache-2.0](./LICENSE) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flitert%2Fxxl-job-integration.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flitert%2Fxxl-job-integration.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flitert%2Fxxl-job-integration.js/lists"}