{"id":20929399,"url":"https://github.com/cognitive-engineering-lab/depot","last_synced_at":"2025-12-28T20:48:02.705Z","repository":{"id":62402025,"uuid":"559390465","full_name":"cognitive-engineering-lab/depot","owner":"cognitive-engineering-lab","description":"A JS devtool orchestrator","archived":false,"fork":false,"pushed_at":"2025-03-14T15:45:22.000Z","size":553,"stargazers_count":41,"open_issues_count":8,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-02T00:37:07.272Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","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/cognitive-engineering-lab.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2022-10-30T00:44:25.000Z","updated_at":"2025-03-14T15:45:25.000Z","dependencies_parsed_at":"2023-12-18T02:25:21.036Z","dependency_job_id":"0e1582c2-2be9-4c2b-b490-a301b6c0113d","html_url":"https://github.com/cognitive-engineering-lab/depot","commit_stats":null,"previous_names":["cognitive-engineering-lab/depot"],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cognitive-engineering-lab%2Fdepot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cognitive-engineering-lab%2Fdepot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cognitive-engineering-lab%2Fdepot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cognitive-engineering-lab%2Fdepot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cognitive-engineering-lab","download_url":"https://codeload.github.com/cognitive-engineering-lab/depot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254003385,"owners_count":21997878,"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-18T21:19:16.888Z","updated_at":"2025-12-28T20:48:02.692Z","avatar_url":"https://github.com/cognitive-engineering-lab.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Depot: A Javascript devtool orchestrator\n\n\u003cimg width=\"1233\" alt=\"Screen Shot 2023-07-18 at 11 26 06 AM\" src=\"https://github.com/cognitive-engineering-lab/depot/assets/663326/49cb46f9-bc88-46f5-9a1c-71ee6f1ffdea\"\u003e\n\nDepot (formerly Graco) is a tool for orchestrating other Javascript devtools. As an analogy:\n* Depot is like [Cargo], but for Javascript.\n* Depot is like [create-react-app], but for people who like software engineering.\n* Depot is like the [`\"scripts\"` field of package.json][package.json], but with more power and flexibility.\n\nDepot works on Javascript workspaces that have been created by Depot, specifically those using the [model JS workspace] format. Depot supports the following commands:\n\n* `depot new` - creates a new workspace or package with devtools preinstalled\n* `depot init` - installs workspace dependencies with [pnpm]\n* `depot build` - type-checks with [Typescript], lints with [Biome], and:\n  * For libraries, transpiles with [Typescript]\n  * For scripts and websites, bundles with [Vite]\n* `depot test` - runs tests with [Vitest]\n* `depot fmt` - formats source files with [Biome]\n* `depot doc` - generates documentation with [Typedoc]\n\nA few benefits of using Depot:\n* Depot works with either browser or Node packages.\n* Depot automatically runs command dependencies. For example, `depot test` will run `depot build`, and `depot build` will run `depot init`.\n* Depot provides an interactive terminal interface for showing the running output of processes when building in watch mode.\n\n\n## Installation\n\nAs prerequisites, you must have [NodeJS][node-install] (≥24) and [pnpm][pnpm-install] (≥10) installed on your computer.\n\nThe [install script] will download a prebuilt binary if possible. Run the script as follows:\n\n```\ncurl https://raw.githubusercontent.com/cognitive-engineering-lab/depot/main/scripts/install.sh | sh\n```\n\nAlternatively, you can follow one of these installation methods:\n\n### From crates.io\n\n```\ncargo install depot-js --locked\n```\n\n### From source\n\n```\ngit clone https://github.com/cognitive-engineering-lab/depot\ncd depot\ncargo install --path crates/depot --locked\n```\n\n## Usage\n\nTo get started, create a new package:\n\n```\ndepot new my-lib\n```\n\nYou can specify `--target \u003clib|site|script\u003e` to indicate that the package is a library (a Javascript package used by other packages), a website (an HTML site that uses Javascript), or a script (a Javascript program that would be either run on the CLI or included as a `\u003cscript\u003e` tag.) You can also specify `--platform \u003cbrowser|node\u003e` depending on whether your package is intended to run in the browser or via NodeJS.\n\nYou can also create a workspace and a package within that workspace, like this:\n\n```\ndepot new --workspace my-workspace\ncd my-workspace\ndepot new my-lib\n```\n\nInside the workspace, you can build all packages like this:\n\n```\ndepot build\n```\n\nThis generates a `\u003cpackage\u003e/dist` directory containing the built files. You can run in watch mode by passing `-w` like this:\n\n```\ndepot build -w\n```\n\nAdditional documentation about each command will be created soon once the Depot design is finalized.\n\n\n## Projects using Depot\n\nDepot is used in a few of our projects:\n* [mdbook-quiz](https://github.com/cognitive-engineering-lab/mdbook-quiz/tree/main/js)\n* [aquascope](https://github.com/cognitive-engineering-lab/aquascope/tree/main/frontend)\n\n[model JS workspace]: https://github.com/willcrichton/model-js-workspace/\n[Cargo]: https://doc.rust-lang.org/cargo/\n[create-react-app]: https://create-react-app.dev/\n[Typescript]: https://www.typescriptlang.org/\n[Vite]: https://vitejs.dev/\n[Vitest]: https://vitest.dev/\n[Biome]: https://biomejs.dev/\n[Typedoc]: https://typedoc.org/\n[pnpm]: https://pnpm.io/\n[node-install]: https://nodejs.org/en/download/package-manager\n[pnpm-install]: https://pnpm.io/installation\n[install script]: https://github.com/cognitive-engineering-lab/depot/blob/main/scripts/install.sh\n[package.json]: https://docs.npmjs.com/cli/v9/using-npm/scripts\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcognitive-engineering-lab%2Fdepot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcognitive-engineering-lab%2Fdepot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcognitive-engineering-lab%2Fdepot/lists"}