~/talk

Write CLI applications with Node.js like it’s 2023

Talkat NodeTLV 2023 · on Wednesday, 2023-06-28· [nodejs, developer-experience]
slides:none on file

A working DALL·E CLI that takes a positional prompt plus --size and --target options calls the OpenAI SDK, returns either a URL or saves a base64 image file, and shows a spinner; code uses node's parseArgs for structured args, Zod for schema validation, readline/promises and a select UI library for interactivity. Tests run with the built-in Node test runner against a fake OpenAI server as true end‑to‑end runs that execute the real binary in isolated temp dirs. Binaries are produced by transpiling ESM→CJS and injecting the app into node-c single executable, and rich UIs are possible via Ink and Pastel.

AI-written summary · about

  1. 0:00Introduction to CLI development
  2. 1:50Limitations of traditional CLIs
  3. 3:14Modern Node.js CLI capabilities
  4. 4:58Parsing command arguments
  5. 6:01Validating user input
  6. 7:25Adding interactivity
  7. 8:49Advanced interactive UIs
  8. 9:54Single executable applications
  9. 11:04Live demo of a CLI
  10. 14:39Testing CLI applications
  11. 19:01Creating binary executables
  12. 22:13Building CLIs with React
  13. 24:47Introducing Pastel framework
  14. 25:30Live demo of Pastel CLI
  15. 29:44Summary and closing
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.