Skip to content

Add Summarizer, Writer, Rewriter, LanguageDetector, Translator, and Taxonomizer API polyfills based on Prompt API polyfill#238

Merged
tomayac merged 49 commits intomainfrom
task-apis-polyfill-summarizer
Feb 18, 2026
Merged

Add Summarizer, Writer, Rewriter, LanguageDetector, Translator, and Taxonomizer API polyfills based on Prompt API polyfill#238
tomayac merged 49 commits intomainfrom
task-apis-polyfill-summarizer

Conversation

@tomayac
Copy link
Member

@tomayac tomayac commented Jan 27, 2026

The way this works is that it extracts the system prompts semi-automatically from Chrome via the extractors in scripts/. Static dumps of these system prompts are stored in dumps/. This auto-generates the *-prompt-builder.js files that the actual polyfill then uses to create prompt templates that it runs against the Prompt API (or its polyfill).

Create tests by running npm run test:wpt. This opens the test landing page and you can run the tests.

Serve via npm start to play with the demos.

@tomayac tomayac changed the title Add Summarizer API polyfill based on Prompt API polyfill Add Summarizer, Writer, and Rewriter API polyfill based on Prompt API polyfill Feb 2, 2026
@tomayac tomayac marked this pull request as ready for review February 3, 2026 16:02
@tomayac tomayac changed the title Add Summarizer, Writer, and Rewriter API polyfill based on Prompt API polyfill Add Summarizer, Writer, Rewriter, LanguageDetector, Translator, and Taxonomizer API polyfills based on Prompt API polyfill Feb 10, 2026
Copy link
Contributor

@beaufortfrancois beaufortfrancois left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given the size of this PR, I'll rubber stamp it as discussed offline.

@tomayac tomayac merged commit 005e0d7 into main Feb 18, 2026
2 checks passed
@tomayac tomayac deleted the task-apis-polyfill-summarizer branch February 18, 2026 11:52
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.

2 participants