Skip to content

docs: replace broken install snippets in README + docs#46

Merged
travisbreaks merged 1 commit into
mainfrom
chore/readme-install-snippet-fix-2026-05-20
May 20, 2026
Merged

docs: replace broken install snippets in README + docs#46
travisbreaks merged 1 commit into
mainfrom
chore/readme-install-snippet-fix-2026-05-20

Conversation

@travisbreaks
Copy link
Copy Markdown
Owner

Summary

Caught during a final pre-send audit pass. The README and two docs files promise install paths that don't exist:

Surface Old (broken) What actually happens
README.md Install <script src="https://eats.travisfixes.com/v1.js" ...> URL returns 401; worker only serves API routes
README.md Install pnpm add @travisbreaks/travisEATSbugs Package is not on the public npm registry
docs/install.md Option 1 Same /v1.js URL Same 401
docs/install.md Option 2 Same pnpm add Same 404
docs/install.md "Getting a project token" "Sign up at eats.travisfixes.com" That's an API worker, not a signup site
docs/architecture.md Widget Delivery Same /v1.js and pnpm add snippets Same

The README's own Status line already states "Public npm publish lands at v1.0.0", so the snippet block on the same page contradicted it. Same logic for the CDN: an honest pre-1.0 framing exists at the marketing-site level after today's marketing refresh; the README needed the same treatment.

Changes

  • README.md Install section rewritten with two working paths (script tag + vendor from repo) and the canonical wiring snippet using LocalStorageAdapter + AnnotationPageMode + init({ onToggle }).
  • docs/install.md fully rewritten. Four options (script tag, vendor bundle, pnpm pack, self-hosted worker) plus a picking-guide table at the end. Adds an honest section explaining that eats.travisfixes.com is not a public signup destination today; the hosted tier lands in the future teb-cloud repo.
  • docs/architecture.md Widget Delivery: snippets swapped, the v1.0 CDN goal correctly framed as a future deliverable.

What this does NOT touch

docs/client-facing-tenancy.md line 239 still references eats.travisfixes.com/v1.js but that file is the Phase 2 multi-tenant design doc; its present-tense-sounding "Worker serves both..." sentence is in a clearly future-state planning section. No change needed.

Verification

  • No code or schema change. Tests + lint surface unchanged.
  • Em-dash gate green locally (grep -rPn '\x{2014}' returns no matches).
  • The script-tag URL https://travismakes.org/travis-eats-bugs/widget.js returns 200 with content-type: application/javascript and serves the IIFE bundle (verified via curl just now).

Test plan

  • CI green on Node 20 + Node 22
  • Em-dash gate green
  • After merge, the live README shows the new Install section
  • Anyone copy-pasting the script tag gets a working widget

Caught during a final pre-send audit. The CDN snippet pointed at
`https://eats.travisfixes.com/v1.js`, which returns 401 (the worker
only serves API routes). The npm snippet pointed at
`@travisbreaks/travisEATSbugs`, which is not on the public npm
registry (the README's own Status line correctly states "Public npm
publish lands at v1.0.0", so the snippet contradicted itself).

This PR replaces both with paths that actually work today, mirroring
the fix that just landed on the marketing site:

- **README.md** Install section: script tag pointing at the
  travismakes.org bundle that the live demo uses, plus a vendor-from-
  repo path. Includes the canonical wiring snippet
  (`LocalStorageAdapter` + `AnnotationPageMode` + `init({ onToggle })`).
- **docs/install.md** fully rewritten. Four options (script tag,
  vendor bundle, pnpm pack, self-hosted worker) with a picking-guide
  table at the bottom. Honest note about `eats.travisfixes.com` being
  a not-public-signup destination today; public hosted tier lands in
  the `teb-cloud` repo per the strategic plan.
- **docs/architecture.md** Widget Delivery section: same swap; the
  `eats.travisfixes.com/v1.js` route is correctly framed as a v1.0
  deliverable, not a present-tense claim.

`client-facing-tenancy.md` line 239 still mentions `eats.travisfixes.com/v1.js`
but that file is a design doc for the multi-tenant Phase 2 work and
correctly describes future state. No change needed there.

No code or schema change. Tests + lint untouched. Em-dash gate green.

Co-Authored-By: Tadao <tadao@travisfixes.com>
@travisbreaks travisbreaks merged commit 073ed04 into main May 20, 2026
2 checks passed
@travisbreaks travisbreaks deleted the chore/readme-install-snippet-fix-2026-05-20 branch May 20, 2026 20:11
travisbreaks added a commit that referenced this pull request May 20, 2026
* docs: replace broken install snippets in README + docs

Caught during a final pre-send audit. The CDN snippet pointed at
`https://eats.travisfixes.com/v1.js`, which returns 401 (the worker
only serves API routes). The npm snippet pointed at
`@travisbreaks/travisEATSbugs`, which is not on the public npm
registry (the README's own Status line correctly states "Public npm
publish lands at v1.0.0", so the snippet contradicted itself).

This PR replaces both with paths that actually work today, mirroring
the fix that just landed on the marketing site:

- **README.md** Install section: script tag pointing at the
  travismakes.org bundle that the live demo uses, plus a vendor-from-
  repo path. Includes the canonical wiring snippet
  (`LocalStorageAdapter` + `AnnotationPageMode` + `init({ onToggle })`).
- **docs/install.md** fully rewritten. Four options (script tag,
  vendor bundle, pnpm pack, self-hosted worker) with a picking-guide
  table at the bottom. Honest note about `eats.travisfixes.com` being
  a not-public-signup destination today; public hosted tier lands in
  the `teb-cloud` repo per the strategic plan.
- **docs/architecture.md** Widget Delivery section: same swap; the
  `eats.travisfixes.com/v1.js` route is correctly framed as a v1.0
  deliverable, not a present-tense claim.

`client-facing-tenancy.md` line 239 still mentions `eats.travisfixes.com/v1.js`
but that file is a design doc for the multi-tenant Phase 2 work and
correctly describes future state. No change needed there.

No code or schema change. Tests + lint untouched. Em-dash gate green.

Co-Authored-By: Tadao <tadao@travisfixes.com>

* chore(memory): record colleague-send polish sprint in thread-state

Captures today's late-day work (post-Phase-1 sprint EOD wrap):

- PR #37 / #38 / #39 / #46 merged on TEB repo
- v0.0.10-alpha.0 release tagged + GitHub Release published
- 10 shipped roadmap issues closed with version pointers
- Dependabot merge train (#27-#30) merged; #31-#32 auto-closed by
  dependabot when ungrouping landed; #40-#44 closed with tracking
  issue #45 opened for major dep migrations
- CODE-side PR #231 merged + deployed (TEB marketing refresh +
  travisfixes.com em-dash sweep)
- GitHub profile README slimmed (Featured Projects + Stats + Stack
  cut; bio + 4 destination badges kept)
- Colleague-send (Adam Masonbrink + Rikard Arkebaeck at timeglass.ai)
  shipped after a final pre-send audit caught broken install
  snippets in the README and docs that would have looked bad to a
  CEO-level reader.

Memory note for future-self: pre-send audits must sweep README +
docs alongside marketing surfaces. The same broken install URL was
in four places and fixing one is not fixing the rest.

Co-Authored-By: Tadao <tadao@travisfixes.com>

---------

Co-authored-by: Tadao <tadao@travisfixes.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant