Repository navigation
Conversation
- env-file-to-kubernetes-secret: .env → Secret manifest with data: (not stringData, which kubectl's YAML 1.1 reads on/yes/no as booleans) - convert-unix-timestamps-in-json: flatten → per-value epoch → ISO → unflatten - decode-jwts-in-log-file: every distinct token's payload, date claims as ISO - remove-tracking-parameters-from-urls: curated drop list per bare link - hash-email-list-for-customer-match: Google's normalization, SHA-256 per line - extract-domains-from-urls: hostname per line with the browser's URL rules - parse-user-agents-from-access-log: UA field per line → CSV Guides name each recipe's limits; the pages people paste secrets or personal data into explain the editor's input history and share links. decode-kubernetes-secret links back to the .env recipe. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016MBDS61t2hQgzoraTNWAvz
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
PR 2 of 3 from the "run on each" recipe brief. Stacked on String-Utility-Belt/string-utility-belt#49, because it needs that PR's nested-step rendering (otherwise the tracker list, the lane conditions and the nested date conversion would be invisible on the pages) and its
laneEach()helper. Merge #49 first; this PR then retargets tomain, or retarget it by hand if the base branch isn't deleted automatically.Each recipe was rebuilt in
src/recipes/from the reviewed draft (nothing was copied from the research folder) and re-verified against currentmain. Every sample is synthetic: example.com hosts, RFC 5737 IPs, and tokens and payloads produced by the research generators.env-file-to-kubernetes-secretenv_to_json(stop on error) → each(values:base64_encode) → wrap in a v1 Secret →json_to_yamlconvert-unix-timestamps-in-jsonjson_flatten→ each(values:timestamp_convertif 10/13-digit epoch, 2008–2033) →json_unflattendecode-jwts-in-log-fileextract_preset jwt, unique→ each(lines, onError empty:jwt_decode payload→ laneEach(values:timestamp_convertif 2014–2033)) →jsonl_to_jsonremove-tracking-parameters-from-urlsunescape_html→ each(lines:query_params_normalizewith the curated drop list, only on a bare link with a query)hash-email-list-for-customer-matchextract-domains-from-urlshttps://if no scheme →url_parse→$.hostname) → dropwww.parse-user-agents-from-access-loguser_agent_parse) →jsonl_to_json→json_to_csv(8 columns)Changes from the drafts, and why:
whyno longer claims "the way dotenv libraries do". It says that an unquoted value ends at#(python-dotenv and Compose), and the guide tells readers to quote values containing#because Node's dotenv cuts at any#.whysaid byte counts never match, but 1.2–2 GB byte counts do. It now points to the guide, which lists the false positives:costMicros, 1.2–2 GB byte counts, and 10/13-digit ids starting 12–19.eachliteral is nowlaneEach(), labelled "dates in every claim".__s(Drip),_kx(Klaviyo),ck_subscriber_id(Kit) and_ga, with a_kxlink in the email sample;siandrefare kept;ONE_LINK_WITH_QUERYlane condition (iflag).example.com,home, because commas are legal in a parsed host; a DNS hostname can't contain one, so the cut is safe. A third sample, "Rows of a CSV file", covers it.discovery/verified/ua-def.ts(8 columns). The query is "parse user agents from access log", which doesn't contain theuser_agent_parsehead term ("user agent parser").onError: 'stop'on theeach. The parser never throws on text, so this only fires past the 100k-item budget, and the run then stops at step 2 with "the input has N lines; one run can process at most 100000" instead of a misleading "invalid JSON" two steps later. I tested both.each, which makes the page harder to read than the column helps. Rows map 1:1 to input lines (blank lines included), and the guide explains how to paste the CSV beside the source lines. Auafield onuser_agent_parsewould make it one column name (see follow-ups).recipe.tsnotes that the goldens act as a canary forua-parser-jsbumps.decode-kubernetes-secretnow listsenv-file-to-kubernetes-secretas related, in both directions.Every guide states its limits, and I reproduced each limit against the recipe before writing it down, for example: URL-encoded JWTs, the
#fragment and;queries,&amp;, a label before a URL, health-checker UAs, and the 100k budget.For you to decide (not done here)
Sponsor topics.
src/app/sponsors/topics.ts(new onmain) sells explicit page lists, and its comment says a page joins a topic only when it's added there. I left the seven recipes out, because adding them changes what a sponsor buys. Natural fits:env-file-to-kubernetes-secret→ kubernetes-clouddecode-jwts-in-log-file→ auth-tokensconvert-unix-timestamps-in-json→ data-formatshash-email-list-for-customer-match→ security-hashingBrowser extension
Like the recipes in #49, these use
each, so the published extension (1.4.1) shows "needs a newer version" until the pending manual extension release goes out. This PR doesn't touch the extension or the bridge.Follow-ups (from the brief, not done here)
slugperLine param and apostrophe foldingpunycode_encodeperLine and UTS Look up the VS Code publisher member ID in a way that works for an app #46 mappinghashoutput-format param, and MD5 inhash(the email guide points to themd5utility instead)json_to_yaml(would quoteon/yes/nokeys for kubectl)json5_parseua(raw string) field onuser_agent_parse, behind a param, for a raw-UA CSV columnPR 3 (five tier-2 recipes) is on hold until these pages have traffic data, as agreed.
Label
release:minor+enhancement: these are new site pages, and existing pipelines behave as before.How it was tested
npm run check:recipes: 20/20 recipes plus the cross-recipe rules (unique titles, descriptions and queries; the head-term rule from Recipes: nested steps on pages, checker fixes, three refactors and seven new run-on-each recipes #49; prose overlap).sha256sum, andJohn_Smith@gmail.comgives Meta's documented hash;md5matchesmd5sum;npm test(7042 passed),npm run typecheckplus the worker, e2e, bench and everypackages/*config, andnpm run lint.npm run build(including the new CSP check on every pre-rendered page),npm run check:bundle, andnpm run build:seowith OG images (earlier on this branch).Checklist
npm test,npm run typecheckandnpm run lintpassindex.test.ts,guide.md(npm run check:guides -- <id>) and regenerated_generated/files (npm run gen) (no new utilities; recipe_generated/regenerated)## [Unreleased]inCHANGELOG.mdrelease:minor(new features) orrelease:major(breaking changes) if a patch release isn't right🤖 Generated with Claude Code
https://claude.ai/code/session_016MBDS61t2hQgzoraTNWAvz
Generated by Claude Code