{"id":24988478,"url":"https://github.com/lit-protocol/lit-scheduled-tasks","last_synced_at":"2025-04-12T00:07:36.589Z","repository":{"id":229961599,"uuid":"777577425","full_name":"LIT-Protocol/lit-scheduled-tasks","owner":"LIT-Protocol","description":"CRON-like scheduled tasks","archived":false,"fork":false,"pushed_at":"2025-04-10T19:10:22.000Z","size":321,"stargazers_count":0,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-12T00:07:21.462Z","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/LIT-Protocol.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-03-26T05:38:50.000Z","updated_at":"2025-04-10T19:10:25.000Z","dependencies_parsed_at":"2024-06-20T05:12:33.225Z","dependency_job_id":"7725a7e7-cb92-4b9e-8da2-39e9839e079d","html_url":"https://github.com/LIT-Protocol/lit-scheduled-tasks","commit_stats":null,"previous_names":["lit-protocol/lit-scheduled-tasks"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIT-Protocol%2Flit-scheduled-tasks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIT-Protocol%2Flit-scheduled-tasks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIT-Protocol%2Flit-scheduled-tasks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIT-Protocol%2Flit-scheduled-tasks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LIT-Protocol","download_url":"https://codeload.github.com/LIT-Protocol/lit-scheduled-tasks/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248497810,"owners_count":21113984,"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":"2025-02-04T12:04:25.381Z","updated_at":"2025-04-12T00:07:36.532Z","avatar_url":"https://github.com/LIT-Protocol.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🔥 LIT Scheduled Tasks 🔧\n\nThis repo provides scaffolding for running internal scheduled tasks on a CRON-like schedule.\n\n### If you need to add an account to receive auto-top-up rate limit NFTs, see the [worker readme](./worker/README.md)\n\n## ❌ Installation\n\nPackages in this repository are currently not published to NPM; it is expected to be deployed as a worker to Heroku.\n\n## 🎮 Usage\n\n#### To prepare for either production usage or local development, you must install dependencies and build the packages.\n\n```zsh\npnpm install \u0026\u0026 pnpm build\n```\n\n#### For local development:\n\nNote that local development uses `dotenvx` to load necessary environment vars from a `.env` file which must be located in the root directory of the repository to be loaded.\n\n```zsh\npnpm dev\n```\n\n#### For production:\n\nNote that [all environment variables](.env.example) for the worker process must be defined in the host environment. Production does not use `dotenvx`.\n\n```zsh\npnpm start\n```\n\n## 📦 Packages\n\n| Package                                                         | Purpose                                                                                                    |\n| --------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |\n| [lit-task-client](packages/lit-task-client/README.md)           | Load and validate mongo credentials from env in a type-safe way, and produce a task client Agenda instance |\n| [lit-task-auto-top-up](packages/lit-task-auto-top-up/README.md) | Task to mint capacity credit NFTs for a list of recipient addresses defined in JSON at a configured URL    |\n\n## 💻 Development\n\nThe repository is a mono-repo leveraging `pnpm` as the package manager, using `pnpm workspaces`. It requires Node v18+, it is recommended that you use `nvm` to select the correct node version via the included `.nvmrc` file.\n\n- Clone the repository\n- Enable [Corepack](https://github.com/nodejs/corepack) using `corepack enable`\n- Install dependencies by executing `pnpm install` in the root of the repo\n- Build all packages by executing `pnpm build` in the root of the repo\n- Currently, you must manually rebuild packages that are referenced locally using `workspace:*` references after making changes, until `unbuild stub` issues with Typescript have been resolved. Reference issue: https://github.com/unjs/unbuild/issues/370\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flit-protocol%2Flit-scheduled-tasks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flit-protocol%2Flit-scheduled-tasks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flit-protocol%2Flit-scheduled-tasks/lists"}