Tag everything with worker support?
Nobody has claimed this yet.
- Dominant language
- JSON
- Stars
- 5.8k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 186
Description
Worker support of APIs is quite a challenge to track and maintain docs for - it can vary across an API and be spotty across browsers. It also isn't necessarily obvious to a user how they go about using some APIs.
I think it might make sense to "standardise" this in BCD and roll it out more or less for every single Web API.
- There are four types of workers - dedicated, shared, service, chrome. I don't know if we'd need to indicate these separately or not.
- It is useful to note the API used to access the feature in both main thread (often via window or window.navigator) and the web service (usually some context)
There are a few good examples where this has been done in an adhoc way:
FileReaderSync([mdn]((https://developer.mozilla.org/en-US/docs/Web/API/FileReaderSync) | bcd) has separate keys indicating support for service workers and for other workers.

CacheStorage(mdn) has a note indicating how it is used in both web workers and main thread.

FYI @chrisdavidmills @Elchi3 @ddbeck Would appreciate your thinking on this. To me this is a similar problem to documenting secure contexts.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by comparing the existing worker-support entries in FileReaderSync.json and CacheStorage.json with the linked MDN Web Workers documentation. Clarify how dedicated, shared, service, and chrome workers and their access contexts should be represented, then determine which Web API data files would need the standardized treatment. Done means the representation and rollout scope are agreed and consistently applied.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- json
- Domain
- data, documentation
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100