crumbs-duck 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitattributes +1 -0
- package/CHANGELOG.md +11 -0
- package/DECISIONS.md +143 -0
- package/LICENSE +21 -0
- package/README.md +15 -3
- package/index.js +8 -0
- package/package.json +21 -4
package/.gitattributes
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* text=auto eol=lf
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.1.1 (2026-11-28)
|
|
4
|
+
|
|
5
|
+
- The npm page now links to the GitHub repo, and has keywords to help people find Crumbs in search.
|
|
6
|
+
- The README explains how to try a brand-new version when npm's `min-release-age` setting is on.
|
|
7
|
+
- Added DECISIONS.md, a log of design decisions and the reasons behind them.
|
|
8
|
+
|
|
9
|
+
## 0.1.0 (2026-11-27)
|
|
10
|
+
|
|
11
|
+
- First release. Crumbs prints a small ASCII duck that says hi.
|
package/DECISIONS.md
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
# Decisions
|
|
2
|
+
|
|
3
|
+
One line per decision, with the reason when reasonable to share. Newest at the bottom.
|
|
4
|
+
|
|
5
|
+
## 2026-11-25
|
|
6
|
+
|
|
7
|
+
- **Rubber ducking is the core.** Crumbs helps people think through problems themselves, so it asks questions instead of giving answers.
|
|
8
|
+
|
|
9
|
+
- **Three modes: Socratic, cheerleader, dry and sarcastic.** Same job, different personalities, so people can pick what suits them.
|
|
10
|
+
|
|
11
|
+
- **No AI by default; a large bank of lines instead.** Private, offline, free, instant and predictable. AI replies are an optional extra.
|
|
12
|
+
|
|
13
|
+
- **npm package is `crumbs-duck`; the command is `crumbs`.**
|
|
14
|
+
|
|
15
|
+
- **Stays still by default, with subtle idle movement only.** Constant motion is distracting while people focus.
|
|
16
|
+
|
|
17
|
+
- **No pop-ups.** Interrupting someone who's focused is a UX problem.
|
|
18
|
+
|
|
19
|
+
- **Celebrations are a color-shifting dance, not fireworks.** Reuses the duck, fits the pane, and smooth color blends avoid any flashing.
|
|
20
|
+
|
|
21
|
+
- **Reduced motion setting.** Anyone can turn the dance off.
|
|
22
|
+
|
|
23
|
+
- **Private by default.** It watches people's shells, so trust has to come first: minimal logging, opt-in pane reading, per-shell opt-out, redaction.
|
|
24
|
+
|
|
25
|
+
- **Hooks report events to a shared file instead of the duck watching panes.** Works across every shell and pane, and other tools can plug in.
|
|
26
|
+
|
|
27
|
+
- **Core plus integrations.** Works in any terminal; Rex extras turn on only in Rex and are skipped quietly elsewhere. More users without losing the Rex features.
|
|
28
|
+
|
|
29
|
+
- **Zsh support right after bash.** Rex launched on macOS first, so much of the Rex community is on Macs.
|
|
30
|
+
|
|
31
|
+
- **Art is separate from logic, with anchor points per pose.** Lets the look change without touching behavior, makes interactions accurate, and enables community art packs.
|
|
32
|
+
|
|
33
|
+
- **Built with Ink.** React in the terminal.
|
|
34
|
+
|
|
35
|
+
- **Feeding is free, not earned.** It's there just for fun, any time, not as a reward for tests or commits.
|
|
36
|
+
|
|
37
|
+
- **The crumb is tossed in an arc with a couple of bounces.** A straight drop would be boring.
|
|
38
|
+
|
|
39
|
+
- **Two eating styles: tip and peck.** Tip is funnier; peck is more natural. A config option, or random.
|
|
40
|
+
|
|
41
|
+
- **New feeds wait until the eating animation finishes.** Resetting mid-animation would leave the duck away from its spot and create edge cases. Waiting is simpler and less likely to break.
|
|
42
|
+
|
|
43
|
+
- **Crumbs has a home spot it always returns to, instead of wandering constantly.** Unlike pets that walk around all the time, Crumbs talks to you, so it should be easy to find. It still leaves home to eat, celebrate, or move around a little, then comes back. How much extra moving around it does is still to be decided.
|
|
44
|
+
|
|
45
|
+
- **The home spot is a setting (left, center or right; top or bottom).** Fits wherever the pane sits in someone's layout and their own preference.
|
|
46
|
+
|
|
47
|
+
- **Eating starts based on distance, not time.** Crumbs walks until its beak is within reach of the crumb, so the nom always lines up, whatever the landing spot, pane size or art pack. Each eating style has its own reach (tip reaches farther than peck), worked out from the beak anchor in the standing and eating poses. If the crumb lands within reach, Crumbs eats without walking.
|
|
48
|
+
|
|
49
|
+
- **Movement is separate from the waddle.** Crumbs calculates its exact stopping spot as soon as the crumb lands (crumb position minus reach), then moves one column per tick until it's there. The waddle frames only alternate for looks and never decide distance. On arrival it switches straight to the standing pose. No gaps, no overshooting, in any pane or art pack. The walk home works the same way.
|
|
50
|
+
|
|
51
|
+
- **Positions are stored as fractions and rounded only when drawn.** Gives smooth speeds, gentle easing in and out, and natural arcs and bounces, even though the screen is made of whole cells.
|
|
52
|
+
|
|
53
|
+
- **The crumb moves in finer steps than the duck.** Drawn with braille dots (2 across, 4 down per cell), the tossed crumb moves in half-cell and quarter-cell steps for a smooth arc. The duck moves in whole columns. In terminals that can show images, both can move pixel by pixel later.
|
|
54
|
+
|
|
55
|
+
## 2026-11-27
|
|
56
|
+
|
|
57
|
+
- **The duck is drawn with half-block characters and ANSI color, not plain ASCII art.** Each cell holds two square pixels, so the duck is a grid of colored squares instead of characters picked for their shape. Ink writes the color codes. The Phase 0 hello duck stays plain ASCII, since it's the simplest thing that works everywhere.
|
|
58
|
+
|
|
59
|
+
- **A small fixed set of muted shades per duck type, about 6 to 8.** Gives a retro look, with detail coming from pixels, outlines and one light and one dark shade. Muted tones keep the duck from pulling attention away from other panes.
|
|
60
|
+
|
|
61
|
+
- **Exact 24-bit colors, not the terminal's 16 theme colors.** The 16 basic colors change with each person's terminal theme, so the duck could come out the wrong color. 24-bit keeps it the same everywhere.
|
|
62
|
+
|
|
63
|
+
- **Start with one duck type: phosphor white.** One glowing color in a few brightness levels, like the earliest computer screens. Calmer than a multi-color duck, and it doesn't distract from other panes. Get a working duck first; the other types come in layer 9.
|
|
64
|
+
|
|
65
|
+
- **Drawings use color roles, not exact colors.** Roles: outline, beak outline, body, shadow, highlight, beak and feet, eye, eye glint, blush. In phosphor white each role is a brightness level of one color; in other duck types it can be a different color. Adding a duck type later is just a new palette, with no redrawing.
|
|
66
|
+
|
|
67
|
+
- **The "big head" duck is the chosen design.** A big head about as large as the body, a large eye with a bright glint, a tiny beak and a dim blush spot: the classic tricks that make small pixel characters read as cute.
|
|
68
|
+
|
|
69
|
+
- **Glow halo is a setting (on or off).** A ring of very dim pixels around the duck fakes the old screen glow, since terminals can't blur. It's worked out in code from the duck's shape, so no art pack has to draw it.
|
|
70
|
+
|
|
71
|
+
- **Brightness is fixed at full, with no setting.** Full brightness looked best, and one fewer setting keeps things simple.
|
|
72
|
+
|
|
73
|
+
- **Feeding poses come mostly from code.** Facing left is the standing drawing mirrored, and the fully tipped pose is the standing drawing rotated 90 degrees, which puts the big head's beak right at the crumb. Hand-drawn: the halfway tip, the peck (a forward lean, since a rubber duck has no neck), nibbling, blinking and the waddle.
|
|
74
|
+
|
|
75
|
+
- **The first version uses ANSI half-blocks, and they stay the fallback for good.** Compared ASCII, ANSI shading blocks, half-blocks and image sprites. Half-blocks look good and work in nearly every modern terminal. When image sprites come later (layer 15), any terminal without image support falls back to half-blocks, so Crumbs always both works and looks good. ASCII stays a planned optional art style, not the fallback, since every ASCII pose would need redrawing by hand and loses detail.
|
|
76
|
+
|
|
77
|
+
- **MIT license from the very first version.** Crumbs is open source from 0.1.0 instead of after the repo exists.
|
|
78
|
+
|
|
79
|
+
- **What Crumbs says goes in a clean text box, not a speech bubble.** A thin rounded border with the line inside, along the top of the pane (or the bottom if the home spot is at the top). It looks cleaner and calmer than a cartoon bubble, is simpler to draw in a terminal, and doesn't have to follow the duck around.
|
|
80
|
+
|
|
81
|
+
- **The beak's outline has its own color role.** A flat style with no outlines can then hide the beak's outline while the body's edge stays body-colored, so the beak stays tiny in every look.
|
|
82
|
+
|
|
83
|
+
- **Three duck types to keep: phosphor white (the default), flat yellow and shaded yellow.** All three looked good on the chosen duck. More duck types can still come later.
|
|
84
|
+
|
|
85
|
+
- **The text box stays the same size, whatever the reply length.** It's as wide as the pane allows and always two lines tall, matching the earlier mockup: a thin, rounded, dim gray border with plain text inside. A box that grows and shrinks would push the duck around and feel jumpy.
|
|
86
|
+
|
|
87
|
+
- **Longer replies split into pages instead of growing the box.** Text wraps at whole words, two lines per page. A small page counter such as "1/3 ›" sits in the box's bottom-right border, and only shows when there's more than one page. Pages turn by themselves after a reading time based on the number of words (at least a few seconds). The last page stays until Crumbs says something new. Pages are easy to read, never cut words off, and need no scrolling. Manual page controls are below.
|
|
88
|
+
|
|
89
|
+
- **Lines in the line bank are written to fit on one page.** Most should fit in one or two lines in a normal-width pane, so paging is mainly for narrow panes and optional AI replies.
|
|
90
|
+
|
|
91
|
+
- **Page controls work from Crumbs' pane and from any shell.** In Crumbs' pane: → or Space for the next page, ← for the previous one. A terminal only sends keys to the focused pane, so from other panes there are `crumbs next` and `crumbs back`, which write to the shared events file Crumbs already watches. `crumbs setup` can also offer opt-in shell shortcut keys for these (bash `bind -x`, zsh `bindkey`) using an unusual combination that won't clash. Shell shortcuts don't reach panes running full-screen programs such as Claude Code; there, auto-advance covers it. A Rex shortcut that works from any pane could be a Rex extra later, if Rex's config allows it.
|
|
92
|
+
|
|
93
|
+
- **Turning a page by hand pauses auto-advance for that reply.** Otherwise going back to reread a page would get interrupted when it flips forward on its own.
|
|
94
|
+
|
|
95
|
+
- **Crumbs never touches agent panes.** Anything that grabbed keys from Claude Code or another agent's pane could interfere with what people type to the agent. In agent panes, auto-advance covers page turning; everywhere else, Crumbs' own pane keys and the `crumbs next` and `crumbs back` commands do.
|
|
96
|
+
|
|
97
|
+
- **`crumbs next` and `crumbs back` work in every shell, not just bash.** They're regular npm commands, so Git Bash, PowerShell, Command Prompt and WSL can all run them. Only the optional shortcut keys are bash and zsh at first; PowerShell can get them later through `Set-PSReadLineKeyHandler`, with the other PowerShell support in layer 15.
|
|
98
|
+
|
|
99
|
+
- **Testers don't need Rex, and default terminals get tested too.** The core works in any terminal, so Mac and Linux testers can come from existing communities. Built-in terminals (Windows Terminal, Mac Terminal, GNOME Terminal, Konsole) matter as much as the fancier ones, since many people never install anything else.
|
|
100
|
+
|
|
101
|
+
- **Terminals without 24-bit color get the closest of 256 colors.** Mac's built-in Terminal only gained 24-bit color in macOS Tahoe (26), so older Macs need this fallback. Phosphor white survives it well, since the 256-color set includes a long ramp of grays; yellows shift slightly.
|
|
102
|
+
|
|
103
|
+
- **Testers get thanked in several ways: a thank-you list on GitHub, a "Tested by" list in the `?` menu's About screen, a shoutout at launch, a real say in what gets built, and returning the favor on their projects.** People help for fun and goodwill, so the thanks should be generous and cost them nothing.
|
|
104
|
+
|
|
105
|
+
- **A tester's name is never shared anywhere without their clear permission, asked for each place separately.** Being named can feel like putting their name on the product, and they have no control over whether it goes well. So permission is asked in the tester guide itself (where it's OK, and whether to use their name, a handle or "anonymous tester"), no answer means no, they can change their mind or be removed at any time, and the wording says "helped test", never that they vouch for Crumbs. Ask again before a launch shoutout, even if they agreed to a list earlier.
|
|
106
|
+
|
|
107
|
+
- **The tiny text duck becomes the look of the Classic ASCII art style, which is opt-in only.** It's the first duck anyone saw (the hello script and the first posts), and some people will prefer it. Half-block pixel art stays both the default art style and the fallback, and phosphor white stays the default duck type. Classic ASCII is only ever chosen in the config. Each of its poses (blink, eating, waddle) gets drawn by hand in text, in layer 14 with the other art styles.
|
|
108
|
+
|
|
109
|
+
## 2026-11-28
|
|
110
|
+
|
|
111
|
+
- **Crumbs speaks one way, like classic rubber ducking.** It prompts the thought and never takes typed replies. Developers already have AI tools for answers, a half-working conversation without AI would be worse than none, and nothing typed means nothing to protect. Keys or commands to steer it may come later.
|
|
112
|
+
|
|
113
|
+
- **No local AI.** Local models are large installs people would have to agree to. Optional AI replies through Claude Code are decided later in the roadmap.
|
|
114
|
+
|
|
115
|
+
- **The line bank is the main source of everything Crumbs says.** Community line packs are welcome and would help, but a small project can't count on a community, so Crumbs has to succeed without them.
|
|
116
|
+
|
|
117
|
+
- **The line bank covers every situation first, then grows.** Each situation in each mode (a failed command, a commit, being idle) gets lines that fit before any one situation gets lots of them. After that, more lines keep repeats rare.
|
|
118
|
+
|
|
119
|
+
- **The three modes stay as the starter set.** They cover three needs: help me think (Socratic), keep me going (Cheerleader) and make it less painful (Dry and sarcastic). Each new mode adds about 500 lines, so one or two more may come later, rarely.
|
|
120
|
+
|
|
121
|
+
- **Cheerleader and Dry and sarcastic still ask questions, and sarcasm targets the situation, never the person.** Otherwise they stop being rubber ducks, and someone having a bad day could feel mocked.
|
|
122
|
+
|
|
123
|
+
- **Command names are opt-in, and only from a list of known tools.** Anything not on the list (including the second word, like `install`) is treated as "other", so a pasted password, API key or other secret can never be recorded as a command name. Nothing after the name is ever seen, and nothing is saved.
|
|
124
|
+
|
|
125
|
+
- **The events file is a mailbox, not a diary.** Crumbs removes each note once it has read it, and clears leftover notes when it starts, so the file never builds into a history of what someone did.
|
|
126
|
+
|
|
127
|
+
- **Only a streak is kept for milestones: the current streak and the last active date, with no details.** It keeps counting even with celebrations off, since it takes almost no space. Turning celebrations on celebrates only what happens from then on, never past streaks. Other milestones are to be discussed.
|
|
128
|
+
|
|
129
|
+
- **Resetting the streak shows a warning that's hard to miss.** Losing a long streak by accident would feel bad.
|
|
130
|
+
|
|
131
|
+
- **Flags and fallback counts are removed after a report is sent or after 30 days, and a clear command removes them any time.** They exist only to improve the line bank, so they shouldn't pile up.
|
|
132
|
+
|
|
133
|
+
- **The privacy promise covers only what Crumbs keeps, plus a short reminder that terminals and shells keep their own history.** Crumbs can't control other tools, but many people don't realize their shell saves every command.
|
|
134
|
+
|
|
135
|
+
- **The docs say "removes", not "erases".** Deleting a file doesn't wipe it from the disk, so the docs say only what's true.
|
|
136
|
+
|
|
137
|
+
- **No-network rule: Crumbs never connects to the internet on its own; anything that sends data out is something the person chooses to do themselves.** Privacy comes first, and it keeps Crumbs free with no server to pay for or secure.
|
|
138
|
+
|
|
139
|
+
- **Never build a secret key into the package.** Anyone could pull it out and use it to spam or tamper with the repo.
|
|
140
|
+
|
|
141
|
+
- **Every privacy claim is tested before it's published, with automated tests in a standard, free test runner (to be chosen).** Privacy promises have to be true, and tests keep them true as the code changes.
|
|
142
|
+
|
|
143
|
+
- **Reports, if built, go to public GitHub issues, not a private form.** A form would be more private from the public, but issues make the project more active, and the report holds only counts and line numbers that are safe to be public. The approval screen says plainly that issues are public.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Alex Harris
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
# Crumbs
|
|
2
|
+
|
|
3
|
+
Early version: Crumbs says hi. A rubber duck debugging companion is on the way.
|
|
4
|
+
|
|
5
|
+
Run it with `npx crumbs-duck`, or install it with `npm install -g crumbs-duck` and type `crumbs`.
|
|
6
|
+
|
|
7
|
+
## Trying a brand-new version
|
|
8
|
+
|
|
9
|
+
If your npm config sets `min-release-age` (a supply-chain safety setting), npm won't install a version until it's that many days old. To try the latest release right away, skip the check for a single run:
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
npx --min-release-age=0 crumbs-duck
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
This only affects that one command. Your setting stays on for everything else.
|
package/index.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "crumbs-duck",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "A rubber duck debugging companion for your terminal. Early version: Crumbs says hi.",
|
|
5
|
+
"bin": {
|
|
6
|
+
"crumbs": "index.js"
|
|
7
|
+
},
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/iamspeedyalex/crumbs.git"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"rubber-duck",
|
|
15
|
+
"rubber-duck-debugging",
|
|
16
|
+
"debugging",
|
|
17
|
+
"terminal",
|
|
18
|
+
"cli",
|
|
19
|
+
"tui",
|
|
20
|
+
"duck",
|
|
21
|
+
"developer-tools"
|
|
22
|
+
]
|
|
23
|
+
}
|