toolchain-node
Node.js / TypeScript Toolchain
Common commands for Node.js and TypeScript projects.
Package managers
# Detect which package manager is used
[ -f pnpm-lock.yaml ] && echo "pnpm" || ([ -f yarn.lock ] && echo "yarn" || echo "npm")
npm install # or: pnpm install / yarn
npm ci # Clean install (CI)
npm install lodash # Add dependency
npm install -D vitest # Add dev dependency
Run scripts
npm run build
npm run dev
npm test
npm run lint
Testing
# Jest
npx jest --coverage
npx jest --watch
npx jest path/to/test.ts
# Vitest
npx vitest run
npx vitest run --coverage
npx vitest path/to/test.ts
# Node test runner (built-in)
node --test src/**/*.test.ts
Linting & formatting
npx eslint . --fix
npx prettier --write .
npx biome check --write .
TypeScript
npx tsc --noEmit # Type check only
npx tsc --noEmit --watch # Watch mode
npx tsc --showConfig # Show resolved config
npx tsx src/script.ts # Run TS directly
Debugging
node --inspect-brk dist/index.js # Debug with breakpoint
node --enable-source-maps dist/index.js # Enable source maps
Dependencies
npm outdated # Check for updates
npm audit # Security audit
npm ls --depth=0 # List top-level deps
npx depcheck # Find unused deps
Monorepo (Turborepo / Nx)
npx turbo run build
npx turbo run test --filter=my-package
npx nx run my-app:build
Notes
- Check
package.jsonscripts section for project-specific commands. - Use
npxto run locally-installed binaries without global install. - Prefer
npm ciovernpm installin CI environments.
More from thinkfleetai/thinkfleet-engine
local-whisper
Local speech-to-text using OpenAI Whisper. Runs fully offline after model download. High quality transcription with multiple model sizes.
148flyio-cli-public
Use the Fly.io flyctl CLI for deploying and operating apps on Fly.io: deploys (local or remote builder), viewing status/logs, SSH/console, secrets/config, scaling, machines, volumes, and Fly Postgres (create/attach/manage databases). Use when asked to deploy to Fly.io, debug fly deploy/build/runtime failures, set up GitHub Actions deploys/previews, or safely manage Fly apps and Postgres.
24kagi-search
Web search using Kagi Search API. Use when you need to search the web for current information, facts, or references. Requires KAGI_API_KEY in the environment.
22feishu-bridge
Connect a Feishu (Lark) bot to ThinkFleet via WebSocket long-connection. No public server, domain, or ngrok required. Use when setting up Feishu/Lark as a messaging channel, troubleshooting the Feishu bridge, or managing the bridge service (start/stop/logs). Covers bot creation on Feishu Open Platform, credential setup, bridge startup, macOS launchd auto-restart, and group chat behavior tuning.
13bambu-local
Control Bambu Lab 3D printers locally via MQTT (no cloud). Supports A1, A1 Mini, P1P, P1S, X1C.
10voice-transcribe
Transcribe audio files using OpenAI's gpt-4o-mini-transcribe model with vocabulary hints and text replacements. Requires uv (https://docs.astral.sh/uv/).
10