[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-5510":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":29,"readmeContent":30,"aiSummary":31,"trendingCount":16,"starSnapshotCount":16,"syncStatus":32,"lastSyncTime":33,"discoverSource":34},5510,"pkgx","pkgxdev\u002Fpkgx","pkgxdev","Run Anything","https:\u002F\u002Fpkgx.sh",null,"Rust",9731,1378,74,30,0,3,12,1,68.12,"Apache License 2.0",false,"main",true,[26,27,28],"environment-manager","package-manager","package-runner","2026-06-12 04:00:25","![pkgx.dev](https:\u002F\u002Fpkgx.dev\u002Fbanner.png)\n\n`pkgx` is a 4 MiB, standalone binary that can _run anything_.\n\n[![coverage][]][coveralls] [![teaRank][]](https:\u002F\u002Ftea.xyz)\n\n> [!NOTE]\n>\n> You want your tools to _just work_ and we want that too. We pride ourselves\n> on packaging things as well as possible because we want you to change the\n> world with what you build and not have to worry about the rest.\n\n&nbsp;\n\n### Quickstart\n\n```sh\nbrew install pkgx || curl https:\u002F\u002Fpkgx.sh | sh\n```\n\n```pwsh\n# Windows 10+\nirm https:\u002F\u002Fpkgx.sh | iex\n# ^^ we only have limited packages so far\n```\n\n> [docs.pkgx.sh\u002Finstalling-w\u002Fout-brew]\n\n&nbsp;\n\n# Run Anything\n\n```sh\n$ deno\ncommand not found: deno\n\n$ pkgx deno\nDeno 2.1.4\n> ^D\n\n$ deno\ncommand not found: deno\n# ^^ nothing was installed; your wider system is untouched\n```\n\n## Run _Any Version_ of Anything\n\n```sh\n$ pkgx node@14 --version\nNode.js v14.21.3\n\n$ pkgx python@2 --version\nPython 2.7.18\n```\n\n## Run Anywhere\n\n\u003Cdetails>\u003Csummary>macOS\u003C\u002Fsummary>\u003Cbr>\n\n- macOS >= 11\n- 64 bit Intel & Apple Silicon\n\n\u003C\u002Fdetails>\n\u003Cdetails>\u003Csummary>Linux\u003C\u002Fsummary>\u003Cbr>\n\n- glibc >=2.28 [repology](https:\u002F\u002Frepology.org\u002Fproject\u002Fglibc\u002Fversions)\n- libgcc\n- `x86_64` & `arm64`\n\n> Specifically these libs are needed:\n>\n> - libatomic.so.1 (provided by libgcc)\n> - libdl.so.2 (provided by glibc)\n> - libm.so.6 (provided by glibc)\n> - libgcc_s.so.1 (provided by libgcc)\n> - libpthread.so.0 (provided by glibc)\n> - libc.so.6 (this _is_ glibc)\n> - ld-linux-x86-64.so.2 (provided by the kernel, you get this for free)\n>\n> `libgcc` is built as part of the GCC distribution and usually is split out\n> into multiple packages by the linux distribution. `libgcc` is almost always\n> a separate package, but you may need to install `gcc` in its entirety.\n> Sometimes libatomic is also a separate package rather than being part of\n> `gcc` or `libgcc`.\n\n\u003C\u002Fdetails>\n\u003Cdetails>\u003Csummary>Windows\u003C\u002Fsummary>\u003Cbr>\n\n- Experimental Windows native support (limited packages)\n- WSL2 (everything Linux supports)\n\n\u003C\u002Fdetails>\n\u003Cdetails>\u003Csummary>Docker\u003C\u002Fsummary>\u003Cbr>\n\nWe provide an image with `pkgx` in it:\n\n```sh\n$ pkgx docker run -it pkgxdev\u002Fpkgx\n\n(docker) $ pkgx node@16\nWelcome to Node.js v16.20.1.\nType \".help\" for more information.\n>\n```\n\nYou can use this image to try out (pretty much) any version of any program:\n\n```sh\n$ docker run pkgxdev\u002Fpkgx node@21.1 --version\nv21.1.0\n```\n\nOr in a `Dockerfile`:\n\n```Dockerfile\nFROM pkgxdev\u002Fpkgx\nRUN pkgx deno@1.35 task start\n```\n\nOr in any image:\n\n```Dockerfile\nFROM ubuntu\nRUN curl https:\u002F\u002Fpkgx.sh | sh\nRUN pkgx python@3.10 -m http.server 8000\n```\n\n\u003C\u002Fdetails>\n\u003Cdetails>\u003Csummary>CI\u002FCD\u003C\u002Fsummary>\u003Cbr>\n\n```yaml\n- uses: pkgxdev\u002Fsetup@v4\n- run: pkgx shellcheck\n```\n\nOr in other CI\u002FCD providers:\n\n```sh\ncurl https:\u002F\u002Fpkgx.sh | sh\npkgx shellcheck\n```\n\n\u003C\u002Fdetails>\n\u003Cdetails>\u003Csummary>Scripts\u003C\u002Fsummary>\u003Cbr>\n\n```sh\n#!\u002Fusr\u002Fbin\u002Fenv -S pkgx +git python@3.12\n\n# python 3.12 runs the script and `git` is available during its execution\n```\n\n> [docs.pkgx.sh\u002Fscripts]\n\n\u003C\u002Fdetails>\n\u003Cdetails>\u003Csummary>Editors\u003C\u002Fsummary>\u003Cbr>\n\nUse [`dev`][dev]; a separate tool that uses the pkgx primitives to\nautomatically determine and utilize your dependencies based on your project’s\nkeyfiles.\n\n```sh\n$ cd myproj\n\nmyproj $ dev\n+cargo +rust\n\nmyproj $ code .\n```\n\n\u003C\u002Fdetails>\n\n## What Can `pkgx` Run?\n\nWe have a web based package listing at\n[pkgx.dev\u002Fpkgs](https:\u002F\u002Fpkgx.dev\u002Fpkgs\u002F).\n\nFrom the CLI you can use query mode:\n\n```sh\n$ pkgx -Q git\n# ^^ can you run git? (outputs the fully qualified project name)\n\n$ pkgx -Q\n# ^^ list everything that could be run\n\n$ pkgx -Q | grep git-\n# ^^ what git extensions does pkgx provide?\n```\n\n&nbsp;\n\n# The `pkgx` Ecosystem\n\n`pkgx` is not just a package runner, it’s a composable primitive that can be\nused to build a whole ecosystem of tools.\n\n## `dev`\n\n`dev` uses `pkgx` and `pkgm` (or shellcode) to create “virtual environments”\nconsisting of the specific versions of tools and their dependencies you need\nfor your projects.\n\n```sh\n$ cd my-rust-proj && ls\nCargo.toml  src\u002F\n\nmy-rust-proj $ cargo build\ncommand not found: cargo\n\nmy-rust-proj $ dev\n+rust +cargo\n\nmy-rust-proj $ cargo build\nCompiling my-rust-proj v0.1.0\n#…\n```\n\n> [github.com\u002Fpkgxdev\u002Fdev][dev]\n\n## `pkgm`\n\n`pkgm` installs `pkgx` packages to `\u002Fusr\u002Flocal`. It installs alongside `pkgx`.\n\n> [github.com\u002Fpkgxdev\u002Fpkgm][pkgm]\n\n## Scripting\n\nA powerful use of `pkgx` is scripting, eg. here’s a script to release new\nversions to GitHub:\n\n```sh\n#!\u002Fusr\u002Fbin\u002Fenv -S pkgx +gum +gh +npx +git bash>=4 -eo pipefail\n\ngum format \"# determining new version\"\n\nversions=\"$(git tag | grep '^v[0-9]\\+\\.[0-9]\\+\\.[0-9]\\+')\"\nv_latest=\"$(npx -- semver --include-prerelease $versions | tail -n1)\"\nv_new=$(npx -- semver bump $v_latest --increment $1)\n\ngum format \"# releasing v$v_new\"\n\ngh release create \\\n  $v_new \\\n  --title \"$v_new Released 🎉\" \\\n  --generate-notes \\\n  --notes-start-tag=v$v_latest\n```\n\nAbove you can see how we “loaded” the shebang with `+pkg` syntax to bring in all\nthe tools we needed.\n\n> We have pretty advanced versions of the above script, eg\n> [teaBASE][teaBASE-release-script]\n\nThere’s tools for just about every language ecosystem so you can import\ndependencies. For example, here we use `uv` to run a python script with pypi\ndependencies, and pkgx to load both `uv` and a specific python version:\n\n```sh\n#!\u002Fusr\u002Fbin\u002Fenv -S pkgx +python@3.11 uv run\n\n# \u002F\u002F\u002F script\n# dependencies = [\n#   \"requests\u003C3\",\n#   \"rich\",\n# ]\n# \u002F\u002F\u002F\n\nimport requests\nfrom rich.pretty import pprint\n\nresp = requests.get(\"https:\u002F\u002Fpeps.python.org\u002Fapi\u002Fpeps.json\")\ndata = resp.json()\npprint([(k, v[\"title\"]) for k, v in data.items()][:10])\n```\n\n> [!TIP]\n>\n> ### Mash\n>\n> We love scripting with `pkgx` so much that we made a whole package manager for\n> scripts to show the world what is possible when the whole open source\n> ecosystem is available to your scripts Check it out [`mash`].\n\n> [!NOTE]\n>\n> Notably, packages used during your script aren’t installed and don’t pollute\n> your system and anyone else’s systems either. Don’t be confused— they are\n> downloaded to `~\u002F.pkgx` but the wider system is not touched.\n\n## `pkgo` (Package…GO!)\n\nSome Open Source resists packaging and instead includes long installation\ninstructions that can be… tedious. [`pkgo`] makes using amazing tools like\n[“Stable Diffusion WebUI”] as easy as typing `pkgo` (thanks to `pkgx`).\n\n## Recursive Run\n\nEasily run tools from other language ecosystems:\n\n```sh\npkgx uvx cowsay \"Run Python (PyPi) programs with `uvx`\"  # or pipx\npkgx bunx cowsay \"Run JavaScript (NPM) programs tools with `bunx`\"  # or `npx`\n```\n\n&nbsp;\n\n# Further Reading\n\n[docs.pkgx.sh][docs] is a comprehensive manual and user guide for the `pkgx`\nsuite.\n\n&nbsp;\n\n# Migrating from `pkgx`^1\n\n## Shellcode\n\nThe `pkgx` suite has had its scopes tightened. There is no shellcode in `pkgx`\nanymore. Instead [`dev`] is its own separate tool that has its own shellcode.\nMigrate your shell configuration with:\n\n```sh\npkgx pkgx^1 deintegrate\npkgx dev integrate\n```\n\n## `env +foo`\n\nIf you used this, let us know, we can make a mash script to provide this\nfunctionality again. You can achieve the same result as eg. `env +git` with:\n\n```sh\neval \"$(pkgx +git)\"\n```\n\nSurround the `eval` with `set -a` and `set +a` if you need the environment\nexported.\n\n## `pkgx install`\n\nWe now provide [`pkgm`][pkgm] which fully installs `pkgx` packages to\n`\u002Fusr\u002Flocal\u002F`.\n\nIf you miss the leanness of pkgx^1 “shims then use `pkgm shim`.\n\n```sh\n$ pkgm shim git\ncreated shim: ~\u002F.local\u002Fbin\u002Fgit\n\n$ cat ~\u002F.local\u002Fbin\u002Fgit\n#!\u002Fusr\u002Fbin\u002Fenv -S pkgx -q! git\n```\n\n&nbsp;\n\n# Contributing\n\nWe recommend using [`dev`] to make rust available.\n\n- To add packages see the [pantry README]\n- To hack on `pkgx` itself; clone it and `cargo build`\n  - [`hydrate.rs`] is where optimization efforts will bear most fruit\n\n## Pre-PR Linting\n\n```sh\ncargo fmt --all --check\ncargo clippy --all-features\npkgx npx markdownlint --config .github\u002Fmarkdownlint.yml --fix .\n```\n\n&nbsp;\n\n# Chat \u002F Support \u002F Questions\n\nWe love a good chinwag.\n\n- [Discord](https:\u002F\u002Fdiscord.gg\u002FrNwNUY83XS)\n- [github.com\u002Forgs\u002Fpkgxdev\u002Fdiscussions][discussions]\n\n[docs]: https:\u002F\u002Fdocs.pkgx.sh\n[pantry README]: ..\u002F..\u002F..\u002Fpantry#contributing\n[discussions]: ..\u002F..\u002Fdiscussions\n[docs.pkgx.sh\u002Fscripts]: https:\u002F\u002Fdocs.pkgx.sh\u002Fscripts\n[docs.pkgx.sh\u002Finstalling-w\u002Fout-brew]: https:\u002F\u002Fdocs.pkgx.sh\u002Finstalling-w\u002Fout-brew\n[dev]: https:\u002F\u002Fgithub.com\u002Fpkgxdev\u002Fdev\n[pkgm]: https:\u002F\u002Fgithub.com\u002Fpkgxdev\u002Fpkgm\n[teaBASE-release-script]: https:\u002F\u002Fgithub.com\u002Fteaxyz\u002FteaBASE\u002Fblob\u002Fmain\u002FScripts\u002Fpublish-release.sh\n[`hydrate.rs`]: crates\u002Flib\u002Fsrc\u002Fhydrate.rs\n[`mash`]: https:\u002F\u002Fgithub.com\u002Fpkgxdev\u002Fmash\n[`dev`]: https:\u002F\u002Fgithub.com\u002Fpkgxdev\u002Fdev\n[`pkgo`]: https:\u002F\u002Fgithub.com\u002Fpkgxdev\u002Fpkgo\n[“Stable Diffusion WebUI”]: https:\u002F\u002Fgithub.com\u002FAUTOMATIC1111\u002Fstable-diffusion-webui\n[coverage]: https:\u002F\u002Fcoveralls.io\u002Frepos\u002Fgithub\u002Fpkgxdev\u002Fpkgx\u002Fbadge.svg?branch=main\n[coveralls]: https:\u002F\u002Fcoveralls.io\u002Fgithub\u002Fpkgxdev\u002Fpkgx?branch=main\n[teaRank]: https:\u002F\u002Fimg.shields.io\u002Fendpoint?url=https%3A%2F%2Fchai.tea.xyz%2Fv1%2FgetTeaRankBadge%3FprojectId%3D79e9363b-862c-43e0-841d-4d4eaad1fc95\n","`pkgx` 是一个仅4 MiB大小的独立二进制工具，能够运行任何软件包。它集成了环境管理和包管理功能，允许用户在不改变系统环境的情况下运行特定版本的软件，包括但不限于编程语言、工具和库。该工具使用Rust编写，确保了高性能与安全性。`pkgx` 适用于开发、测试以及CI\u002FCD流程中需要快速切换或隔离不同版本依赖的场景。此外，它还支持跨平台使用，包括macOS、Linux（glibc >=2.28）、Windows（实验性支持）及Docker容器内。",2,"2026-06-11 03:03:42","top_language"]