3.08M downloads / month 10+ years in open source 1,275 GitHub stars 5 packages · 2.73M downloads / month · 1,161 stars
Builders that let you keep using the Angular CLI (ng build, ng test, ng serve) while changing something in the middle: your own webpack or esbuild config, or Jest as the test runner.
An Angular CLI with a builder slot, and the ready-made builders that drop into it A pill on the left reads ng command. A dashed arrow leads into a box labelled angular cli, and another dashed arrow leaves it for a smaller box marked output. A slot is cut clean through the lid of that box and stays there in both states, because it belongs to the CLI. Inside the box the dashed flow line continues, aimed straight at the slot. The figure moves between two states. In the first the slot is empty, the flow line has a gap in the middle where nothing sits, and a dashed unfilled outline of a part hovers above the machine — a builder nobody has written yet. In the second three shaded parts are there instead, named webpack, esbuild and jest; one has dropped through the slot and the other two wait on either side of it. The seated one has a channel bored through its lower half and the flow line runs through that channel, so a dot travelling from the command to the output passes through the builder itself. A handwritten line above the machine names each state and settles on “builders off the shelf”. The whole sequence runs forwards and then backwards. ng <command> angular cli output esbuild webpack jest builders off the shelf the slot also takes yours esbuild webpack jest builders off the shelf a sealed CLI, its builder slot, and three builders Read more: Angular CLI under the hood - builders demystified
350.9K downloads / month · 114 stars
A set of helper functions and Jest matchers for RxJS marble testing. You write the stream you expect as a marble string, and when the test fails Jest prints marbles back.
plain Jest Array [ Object { - "frame": 3, + "frame": 4, "notification": Object { "error": undefined, "kind": "N", "value": "r", One failing test, as plain Jest prints it and as jest-marbles prints it Two halves divided by a drawn line. The upper half, labelled plain Jest, is part of the diff Jest prints when a test of an RxJS stream fails: a nested dump of notification objects in which one line, marked minus, says frame 3 and the next, marked plus, says frame 4. Those two lines are in terracotta, and the dump fades out below them because it goes on. The lower half, labelled jest-marbles, starts with the one line of setup the test needs, const cold equals require jest-marbles. Under it are two drawn timelines of7 frames, expected above received, each with the string jest-marbles prints set under it one character per tick: expected, dash dash dash r dash dash bar; received, dash dash dash dash r dash bar. Ticks are frames, a marble is the value, a bar is completion. The expected marble sits on frame 3; a dashed arrow drops from it to the same frame on the received line, which is empty. The received marble sits 1 frame later, on frame 4, ringed in teal. A key underneath reads: tick, frame; marble, value; bar, complete. jest-marbles const { cold } = require('jest-marbles'); expected - - - r - - | received r - - - - - | - frame value complete the r arrived one frame late I wrote the Home Assistant addon that streams speech from an ESP32 speaker straight to OpenAI’s Realtime API and back, with web search for live answers. Each wake word starts one back-and-forth conversation.
Speaker, Home Assistant and the OpenAI Realtime API, with the voice going out and coming back Three boxes in a row: speaker on the left, home assistant in the middle, realtime api on the right. Dashed arrows run left to right along the top of the gaps between them and right to left along the bottom, the speaker’s also noting it is any compatible esp32. Three arcs to the left of the speaker stand for the sound it makes. A dot travels the whole way out and the whole way back, over and over, and rests inside the speaker. A handwritten line above the row names each leg of the trip as the dot makes it, and settles on "the answer comes back as speech". speaker any compatible esp32 home assistant realtime api you ask, out loud home assistant sends it on the api answers the answer comes back as speech the answer comes back as speech three parts, and a voice that makes the round trip