the playground support lane: examples, CDN recipe, ambient types - #67
Merged
Merged
Conversation
TODO.impl register (5/5 COMPLETE) - our side of the audience-scripting direction, everything the website playground runs on: - examples/: the runnable gallery (convert, detect-chain, neural diacritize, batch columns, server mode) sharing the site's exact strategy stack; test/examples.test.ts runs the registry in CI so the presets cannot rot - they are the public-API regression suite - docs/CDN.md: the no-bundler recipe, probed in a real browser - esm.sh works for both entry and /ml (a conversion completes end-to-end); the kotoshu wasm-CDN trap does not apply, and the doc says why with the evidence - src/playground.d.ts (shipped via dist): ambient declarations for the injected globals so playground editors autocomplete from the real published types - API server-mode CORS verified open (ACAO * on preflight and POST) - the no-download example is truthful as written
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
The playground support lane (TODO.impl, 5/5 COMPLETE) - our side of audience-facing scripting: everything the website playground runs on, so the client agent never rediscovers it.
examples/- the runnable gallery: convert, detect-chain, neural diacritize, batch columns, server mode. Each is a self-contained module ({title, summary, expected, run()}) sharing the site's exact strategy stack (iscStrategy first, compiled-JSON fallback).test/examples.test.tsiterates the registry in CI - the presets are the public-API regression suite and cannot rot.docs/CDN.md- the no-bundler recipe, probed in a real browser: esm.sh works for both the entry (a full conversion completes: "Anton Olehovych") and/ml(namespace loads, no import-time ORT requirement). The kotoshu wasm-CDN trap does not apply - documented with the evidence.test/cdn-urls.test.tspins the entry URLs.src/playground.d.ts(shipped viadist/) - ambient declarations for the injected globals, so playground editors autocomplete against the real published types from the first keystroke.*on preflight and POST/v1/transliterate) - the no-download example is truthful as written.Verification
vitest run test/examples.test.ts5/5 green (network: interscript.org/maps ISC + the API).