{"id":45616079,"url":"https://github.com/zrosenbauer/lauf","last_synced_at":"2026-04-02T18:39:25.498Z","repository":{"id":340147423,"uuid":"1164344743","full_name":"zrosenbauer/lauf","owner":"zrosenbauer","description":"Discover, validate, and execute TypeScript scripts with Zod-powered arguments.","archived":false,"fork":false,"pushed_at":"2026-03-26T21:49:55.000Z","size":587,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-27T08:42:29.420Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://zrosenbauer.github.io/lauf/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zrosenbauer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null},"funding":{"github":"zrosenbauer"}},"created_at":"2026-02-23T01:04:46.000Z","updated_at":"2026-03-26T20:22:10.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/zrosenbauer/lauf","commit_stats":null,"previous_names":["zrosenbauer/lauf"],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/zrosenbauer/lauf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zrosenbauer%2Flauf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zrosenbauer%2Flauf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zrosenbauer%2Flauf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zrosenbauer%2Flauf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zrosenbauer","download_url":"https://codeload.github.com/zrosenbauer/lauf/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zrosenbauer%2Flauf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31198607,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-30T15:24:02.938Z","status":"ssl_error","status_checked_at":"2026-03-30T15:23:44.804Z","response_time":138,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":[],"created_at":"2026-02-23T18:13:38.084Z","updated_at":"2026-04-02T18:39:25.493Z","avatar_url":"https://github.com/zrosenbauer.png","language":"TypeScript","funding_links":["https://github.com/sponsors/zrosenbauer"],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"assets/banner.svg\" alt=\"lauf\" width=\"100%\" /\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cb\u003eTyped script runner for monorepos\u003c/b\u003e\u003cbr/\u003e\n  Discover, validate, and execute TypeScript scripts with Zod-powered arguments.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/laufen\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/laufen.svg\" alt=\"npm version\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/zrosenbauer/lauf/blob/main/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/npm/l/laufen.svg\" alt=\"license\" /\u003e\u003c/a\u003e\n  \u003c!-- TODO: replace with valid downloads badge once npm stats are available --\u003e\n  \u003c!-- \u003ca href=\"https://www.npmjs.com/package/laufen\"\u003e\u003cimg src=\"https://img.shields.io/npm/dm/laufen.svg\" alt=\"downloads\" /\u003e\u003c/a\u003e --\u003e\n\u003c/p\u003e\n\n---\n\n## Features\n\n- 🔍 **Auto-discovery** — Scans every workspace package for scripts matching your configured glob patterns.\n- ✅ **Zod-powered validation** — Define args with Zod schemas and get runtime validation + full TypeScript inference.\n- 📦 **Package management** — Declare npm packages in scripts or workspace config, auto-installed to cache without polluting project dependencies.\n- 🧩 **Workspace-agnostic** — Auto-detects pnpm, npm, yarn, bun, lerna, and single-package projects.\n- 💬 **Auto-prompting** — Missing required args are interactively prompted, so scripts work both in CI and locally.\n- 🪶 **Tiny API surface** — One function (`lauf()`), one schema library (`z`), one convention (`scripts/` directory).\n\n---\n\n## Quick Start\n\nInstall the `laufen` package.\n\n```bash\npnpm add -D laufen\n```\n\nSetup a `lauf` script, including defining args, env variables, and packages.\n\n```ts\nimport { lauf, z, infisical } from 'laufen';\n\nexport default lauf({\n  description: 'Say hello',\n  env: infisical({ path: '/ops/ci', env: 'dev' }),\n  packages: {\n    chalk: '^5.0.0', // Auto-installed to cache, no project dependency needed\n  },\n  args: {\n    name: z.string().default('world'),\n    loud: z.boolean().default(false),\n  },\n  async run(ctx) {\n    const { default: chalk } = await ctx.import('chalk');\n    const greeting = `Hello, ${ctx.args.name}!`;\n    const message = ctx.args.loud ? greeting.toUpperCase() : greeting;\n    ctx.logger.info(chalk.blue(message));\n  },\n});\n```\n\nRun the script using the args you defined.\n\n```bash\nlauf run @my-org/my-package/hello --name=Zac --loud=true\n```\n\n\u003e [!TIP]\n\u003e Requires Node.js \u003e= 22.0.0\n\n## Quick Reference\n\n```bash\nlauf init        # scaffold lauf.config.ts\nlauf create      # generate a new script from a template\nlauf list        # discover all scripts across the workspace\nlauf run         # execute a script by name\nlauf info        # view a script's args and description\n```\n\n---\n\n## 📖 Documentation\n\nFor full docs — configuration, script API, CLI reference, examples, and more — visit the **[documentation site](https://zrosenbauer.github.io/lauf/)**.\n\n## 📝 License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzrosenbauer%2Flauf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzrosenbauer%2Flauf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzrosenbauer%2Flauf/lists"}