6 comments

  • camkego1 hour ago
    This looks useful. But, it's interesting how the backend-world and front-end world keep diverging. I must admit, I had no idea what this was from the title. "CLI framework"? But in backend-land, these would typically be called "argument parsers" or "command line argument parsers". But maybe I am missing some of the functionality.
    • jellyotsiro1 hour ago
      good point.<p>we’re using “framework” intentionally because it goes beyond argument parsing. crust handles parsing, but also:<p>type inference across args + flags end to end compile-time validation (so mistakes fail before runtime) plugin system with lifecycle hooks (help, version, autocomplete, etc.) composable modules (prompts, styling, validation, build tooling) auto-generates agent skills and modules from the CLI definitions<p>so it sits a layer above a traditional arg parser like yargs or commander, closer to something like oclif, but much lighter and bun-native.
  • bennettpompi11 hour ago
    this is cool! i&#x27;d recommend fleshing out the README. Clicked on the link before the discussion and was a tad confused.
  • rgbrgb1 hour ago
    nice, congrats on launch. To get an idea... what&#x27;s the size of a standalone hello world cli binary?
    • jellyotsiro32 minutes ago
      tens of KBs (v small)
      • rgbrgb5 minutes ago
        Isn&#x27;t a standalone Bun binary like 50MB because it has to bundle the runtime? How could this get smaller?
  • matt_kantor2 hours ago
    &gt; Versions before 1.0 do not strictly follow semantic versioning.<p>Sorry for being nitpicky, but yes they do. Semantic versioning[0] allows arbitrary changes while the major version is 0:<p>&gt; Major version zero (0.y.z) is for initial development. Anything MAY change at any time. The public API SHOULD NOT be considered stable.<p>[0]: <a href="https:&#x2F;&#x2F;semver.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;semver.org&#x2F;</a>
    • jellyotsiro2 hours ago
      thanks for the catch, what we meant is that we’re not committing to strict stability guarantees yet, so APIs may still change as we iterate toward 1.0.
      • matt_kantor1 hour ago
        I understand, but that&#x27;s already implied by a 0.y.z version number.
  • landl0rd2 hours ago
    Is there an examples section? Would be helpful to see a demo
    • jellyotsiro2 hours ago
      one of the examples would be trynia.ai (search and index api for ai agents)<p>here is github: github.com&#x2F;nozomio-labs&#x2F;nia-cli
  • dnlzro1 hour ago
    Psst, the GitHub link in your post is broken (it should be <a href="https:&#x2F;&#x2F;github.com&#x2F;chenxin-yan&#x2F;crust" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;chenxin-yan&#x2F;crust</a>).
    • dang12 minutes ago
      Fixed above. Thanks for the heads-up!
    • jellyotsiro1 hour ago
      thanks for flagging! the post itself works, just the link at the bottom