Hasty Briefsbeta

Bilingual

Nub – A TypeScript-first toolchain that runs TypeScript files and package.json

8 hours ago
  • Nub is a TypeScript-first, all-in-one JavaScript toolkit that enhances Node.js without replacing it, allowing users to run TypeScript files, scripts, and CLIs with existing package managers.
  • It provides a single Rust binary for running files, installing dependencies, and managing Node.js versions, with features like native watch mode, automatic .env loading, and support for modern syntax (e.g., decorators, JSX).
  • Nub offers a faster alternative to npm/pnpm commands (e.g., 24× faster script runs, 19× faster npx) while maintaining full compatibility, including flag-for-flag support and lockfile compatibility across package managers.
  • The toolchain includes supply-chain security features like deny-by-default build scripts, OSV advisory checks, and trust downgrade prevention, all enabled without configuration.
  • Nub is not a runtime; it transpiles code in memory using Rust-based oxc and runs on stock Node.js, ensuring no lock-in or Nub-specific APIs.