TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Pkgx – “Run anything” from the creator of brew

119 pointsby cowjanover 1 year ago

17 comments

kishanshover 1 year ago
So many commands to remember (pkgx &lt;etc etc&gt;, dev etc etc, env etc etc). I just want to cd into a directory with stuff like .terraform-version or .python-version or all of the above and installation should happen like magic. I should not even have to remember the name of the tool.. Thats the best user experience IMO. Let me know in the comments if what i am asking is dumb..<p>I tried my best to use this tool and many other all in one tools (asdf, rtx etc) but individual tools like tfenv, pyenv, nvm feel way more ergonomic that all the all in one tools to a point that i don&#x27;t mind having so many tools
pxcover 1 year ago
Looks like this is the same thing as we used to find here: <a href="https:&#x2F;&#x2F;tea.xyz&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;tea.xyz&#x2F;</a><p>Which has been turned into some kind of system aimed at generating&#x2F;distributing F&#x2F;OSS revenue based on usage via crypto. Pkgx is the package manager that drives it, which used to be called &#x27;tea&#x27;.<p>Here&#x27;s a previous discussion: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=30778924">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=30778924</a><p>And a more recent one: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=33681216">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=33681216</a>
ar_lanover 1 year ago
I know I&#x27;m a Nix elitist but I really don&#x27;t understand why people don&#x27;t just use Nix for all their package management.
评论 #37772164 未加载
评论 #37772556 未加载
评论 #37775809 未加载
评论 #37772766 未加载
评论 #37772523 未加载
评论 #37772344 未加载
sgarlandover 1 year ago
I have no idea who this appeals to, or why. If I want something, I want it to be installed and available, not mysteriously cached. If I want multiple versions of something, there are tools like asdf and rtx.<p>This feels like a solution for a problem that doesn’t exist.
评论 #37778958 未加载
评论 #37775502 未加载
评论 #37776986 未加载
评论 #37778325 未加载
pineapple_sauceover 1 year ago
&gt;&quot;blazingly fast&quot;<p>&gt; written by homebrew author (brew is notoriously slow)<p>&gt; written in typescript<p>hmmm... I have my doubts on that claim, especially when there is no evidence to support it.
评论 #37778204 未加载
mdeeksover 1 year ago
I literally don&#x27;t understand the first example. What just happened here? Did pkgx see that I failed to run bun and then just like... installed it and ran it for me? Does that mean on my next prompt I should run `bun` or should I run `pkgx` again?<p><pre><code> $ bun command not found: bun ^^ type `pkgx` to run that $ pkgx running `bun`… Bun: a fast JavaScript runtime, package manager, bundler and test runner. # …</code></pre>
评论 #37775994 未加载
评论 #37772892 未加载
mdanielover 1 year ago
fascinating that the &quot;creator of brew&quot; didn&#x27;t go ahead and shard the package names since it&#x27;s almost inevitable that GitHub&#x27;s &#x2F;tree&#x2F; is going to start :sad-trombone: since it is not designed for viewing thousands of directories: <a href="https:&#x2F;&#x2F;github.com&#x2F;pkgxdev&#x2F;pantry&#x2F;tree&#x2F;main&#x2F;projects">https:&#x2F;&#x2F;github.com&#x2F;pkgxdev&#x2F;pantry&#x2F;tree&#x2F;main&#x2F;projects</a><p>I&#x27;m also genuinely surprised they abandoned the sha256 from brew (e.g. &quot;welp, it is what it is&quot; <a href="https:&#x2F;&#x2F;github.com&#x2F;pkgxdev&#x2F;pantry&#x2F;blob&#x2F;main&#x2F;projects&#x2F;httpie.io&#x2F;package.yml">https:&#x2F;&#x2F;github.com&#x2F;pkgxdev&#x2F;pantry&#x2F;blob&#x2F;main&#x2F;projects&#x2F;httpie....</a> ). Ah, it&#x27;s an <i>implied</i> .sha256 path from their magic distribution something something: <a href="https:&#x2F;&#x2F;dist.pkgx.dev&#x2F;?prefix=httpie.io&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;dist.pkgx.dev&#x2F;?prefix=httpie.io&#x2F;</a>
justincliftover 1 year ago
Wonder if this is on the wrong side of the convenience vs security balance?
thatxlinerover 1 year ago
Did they rebrand tea again
n_aryover 1 year ago
Edit: I was wrong the example is fine.<p>I find it actually useful, sometimes I may want to try something temporarily for intermediate result now and then and having it installed doesn’t yield benefits.<p>Good example: I generate asyncapi docs and doing an npx is fine. Alternative approach like pulling a docker image and the executing something with all volume sharing, ports what not is a but cumbersome because am too lazy to press too many keys.
zapsover 1 year ago
So it’s tea without the blockchain part?
phplovesongover 1 year ago
So this tool is like &quot;fuck&quot;, as it looks at the previous command and figures out what the user wanted to do.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;EricFreeman&#x2F;fuck">https:&#x2F;&#x2F;github.com&#x2F;EricFreeman&#x2F;fuck</a>
评论 #37775345 未加载
Fudgelover 1 year ago
<a href="https:&#x2F;&#x2F;docs.pkgx.sh&#x2F;appendix&#x2F;deeper-dives&#x2F;conceptual-overview" rel="nofollow noreferrer">https:&#x2F;&#x2F;docs.pkgx.sh&#x2F;appendix&#x2F;deeper-dives&#x2F;conceptual-overvi...</a>
tripdoutover 1 year ago
So it&#x27;s similar to some features of Nix (namely the nix run command)
gorenbover 1 year ago
oh my god this is amazing
mdallastellaover 1 year ago
So it&#x27;s asdf?
andrewmcwattersover 1 year ago
I have this crazy idea that could improve pkgx:<p>If Max added “offline caching” to pkgx, you could still continue to use utilities even after the shell session ended or if you lost Internet connectivity!<p>&#x2F;s