Third-party open-source notices (NOTICE)
This site (unnamed, repository wasm-oj-frontend) wrote only the interface, the interaction and the judging logic itself; what actually makes it run is a batch of open-source projects. This file is the single list of third-party components, for two purposes: giving credit, and keeping the copyright and licence notices each project requires when the site is distributed.
The short, user-facing version is the "Acknowledgements and open-source licences" section of guide.en.html — the complete version (this file) is generated into notice.en.html on the site (npm run notice), and that page is linked from the guide; this file is the one that counts.
The Chinese version of this list is NOTICE.md → notice.html. The two are kept in step by hand: whenever you change one, change the other. Sections and table rows correspond one to one.
Maintenance rules
- Five things force a return to this file: changing
package.json(adding/removing a dependency, or a major-version bump), replacing a toolchain directory underpublic/wasm/, replacing the rendering runtime underpublic/md/(it tracks the katex / marked versions), replacing the extension package inpublic/extension/, or replacing the bundled fonts underpublic/fonts/. - Always verify version numbers on the real artifact — never write them from memory (the commands are at the end of this file).
- The site is publicly deployed and its output carries other people's code, so this list is not a "local memo" but part of the distribution obligation.
- This file lists other people's projects only. This repository currently has no
LICENSEfile (i.e. "all rights reserved" by default); that does not affect the obligations of the third-party licences above, but it is a separate decision if the site's own code is ever open-sourced.
Last verified: 2026-11-03 (the extension package under public/extension/ was replaced → cc-for-web-2.71.2.zip. Fixes "one-click submission gets stuck on the submit page": Codeforces now enables the submit button asynchronously — the problem select's change handler (called updateProblemLockInfo on the 2026-11-03 submit page) first POSTs to /data/problemLock and only removeAttr("disabled") inside its callback. The extension used to click the button 50ms after selecting the problem, i.e. on a still-greyed-out button (click() is a no-op), so the page neither navigated nor showed an error and the background waited 20 seconds before wrongly reporting "rejected". It now waits until the button is really clickable (at most 4 seconds, below the background's 8-second reply timeout) before replying and clicking; if it never gets enabled (e.g. the problem is locked), the result is rejected. Verified against the real submit-page source of contest 2272. The manifest is unchanged: API permissions, host_permissions (195 entries) and content_scripts (5 entries) are all identical, and so are the versions and licences of the third-party components inside the package). Verified before that: 2026-11-03 (the extension package under public/extension/ was replaced → cc-for-web-2.71.1.zip. It only fixes two parsing bugs seen on the real standings page: ① the friends-standings rank cell holds two numbers, 2 (1236) (second among friends, 1236th overall), and the old code took the first one, so "my rank" showed 2; it now prefers the overall rank in the parentheses and still accepts the single number of the merged-standings fallback page. ② the standings header is not inside <thead> (the table has a single tbody whose first row is <th> cells), so only looking at thead read no per-problem cells at all; columns now come from the first row that contains <th>. Both were found and re-verified on the real page of contest 2278. The manifest is unchanged: API permissions, host_permissions (195 entries) and content_scripts (5 entries) are all identical, and so are the versions and licences of the third-party components inside the package). Verified before that: 2026-11-03 (the extension package under public/extension/ was replaced → cc-for-web-2.71.0.zip. After a virtual participation is started, the contest has to behave in the site like an official one: ① VP discovery — CF's contest.list never reflects VPs, and only the "Recent virt. contests" sidebar of the signed-in /contests page knows about them, so the extension now reads that column back (cp-contest-states-result carries virtuals, each entry holding only id / name / start time); the start time comes from the entry's countdown link when the page gives no absolute time, otherwise the page timestamp (Nov/03/2026 01:55) is converted to absolute milliseconds via the page's meta[name="utc_offset"]. The site then places the contest at the VP's start moment and keeps the problems and standings locked before it begins. ② Unofficial row detail — a new contest-unofficial-row capability: each row of cp-unofficial-rank-result now carries score and cells (A / B / C… per-problem state strings mapped by the standings header's columns, without mistaking Hacks / Penalty for problem letters), which lets the site show the user's own row on the standings. The trust boundary is unchanged: only enums, numbers and short text, no cookies and no page content. The manifest is unchanged: API permissions, host_permissions (195 entries) and content_scripts (5 entries) are all identical, and so are the versions and licences of the third-party components inside the package). Verified before that: 2026-11-03 (the extension package under public/extension/ was replaced → cc-for-web-2.70.0.zip. Two fixes for starting a virtual participation: ① the old implementation dispatched change on both radios of the "individual / team" pair; CF's registration script caches the identity by the radio that fired, so it flipped to "team" and the submission showed "Please, choose the team" instead of going through — it now only dispatches when the checked state actually changes. ② the VP form has always had the start-time fields (startDay / startTime, defaulting to now); the site's confirmation card now exposes them and sends startAt, and the extension writes them in CF's own format (MMM/DD/YYYY + HH:mm) while syncing clientTimezoneOffset; the new capability is contest-virtual-start-time, so the row does not appear with an older extension. The manifest is unchanged: API permissions, host_permissions (195 entries) and content_scripts (5 entries) are all identical, and so are the versions and licences of the third-party components inside the package). Verified before that: 2026-10-28 (the extension package under public/extension/ was replaced → cc-for-web-2.68.1.zip. No page refresh needed after installing or reloading the extension: content scripts are only injected at page load, so tabs opened before the extension existed have no bridge, the site's probe is never answered and the UI stays on "not detected". On every background start — which covers installing, updating and pressing "Reload" on the extensions page — the extension now looks up the already-open tabs matching the bridge entry's matches in its manifest and injects js/bridge.js into them; the bridge marks itself in its own isolated world, so a second injection is a no-op. The manifest is unchanged (scripting and the site host permissions were already there): API permissions, host_permissions (195 entries) and content_scripts (5 entries) are all identical, and so are the versions and licences of the third-party components inside the package). Verified before that: 2026-10-26 (the extension package under public/extension/ was replaced → cc-for-web-2.68.0.zip. Contest core features: the extension gains four new capabilities — contest-schedule, contest-register, contest-virtual and contest-unofficial — plus four cross-repository message pairs, cp-contest-states, cp-register, cp-start-virtual and cp-unofficial-rank: it reads each contest's registration state from /contests, registers the user or starts a virtual participation after their confirmation (submitting exactly that one form, never replaying it), and reads the friends standings (falling back to the first page of the merged standings) for a rank that includes unofficial participants. The trust boundary matches the other actions: only state enums, reason enums and rank numbers come back — no cookies, no page content — and only on an explicit user click. The manifest changes accordingly: host_permissions 190 → 195 and content_scripts 4 → 5 (the extra one is injected on /contests, /contestRegistration and the three kinds of standings pages); API permissions are unchanged. Dependencies and the versions and licences of the third-party components inside the package are untouched). Verified before that: 2026-10-24 (the extension package under public/extension/ was replaced → cc-for-web-2.67.4.zip. Keeps the submission page open on a non-AC verdict: the extension used to close the Codeforces tab it opened as soon as the verdict was final; now it only closes it on AC, and for WA / TLE / MLE / RE / CE and the like it navigates that tab to the submission's detail page and brings it to the front, so the user can see the failing test or the compilation error directly. Dependencies, manifest and API permissions are untouched, and so are the versions and licences of the third-party components inside the package). Verified before that: 2026-10-23 (the extension package under public/extension/ was replaced → cc-for-web-2.67.3.zip. Fixes "filled in but never submitted": Codeforces renders its submit button as disabled on the server, and only the problem select's change event enables it; the extension used to set .value without dispatching an event, so it clicked a greyed-out button (click() is a no-op) and wrongly reported "Codeforces rejected the submission" 20 seconds later. Problem and compiler selection now both dispatch change. Verified on the real page: a submission from a freshly opened page using the extension's timing → #395709826, Accepted (46 ms). Dependencies, manifest and API permissions are untouched). Verified before that: 2026-10-23 (the extension package under public/extension/ was replaced → cc-for-web-2.67.2.zip. Fixes the source-box selector that one-click submission uses on the real page: Codeforces' source textarea is called source (#sourceCodeTextarea, hidden under the Ace editor), while sourceFile is the file-upload input next to it; the previous lookup for textarea[name="sourceFile"] never matched on the real page, which is exactly what users saw as "submit page not recognised". The form structure was checked on a signed-in real page, and a real submission was made (Educational Round 148 problem A, #395707398, Accepted). Dependencies are untouched (same figures as the entry below: 108 packages / 32 production / 76 development), the manifest and API permissions are untouched, and so are the versions and licences of the third-party components inside the package). Verified before that: 2026-10-23 (one new runtime dependency, canvas-confetti 1.9.4 (ISC) — the confetti that falls inside the sample panel when every test case passes, shipped inside the main bundle; it draws on the canvas the sample panel itself owns and runs on the main thread (its worker mode is off). Version and licence were read off node_modules/canvas-confetti/package.json, not written from memory. The dependency figures were re-verified against the same day's package-lock.json: lockfileVersion: 3, 108 packages in total — 32 production, 76 development; the 94 / 30 / 64 recorded under 2026-09-30 below was that day's reading, and @tauri-apps/api and others were added since, so this entry is the one that counts). Verified before that: 2026-10-23 (the extension package under public/extension/ was replaced → cc-for-web-2.67.1.zip. A same-day patch fixing three things in one-click submission: ① a freshly created tab can report complete before navigation actually starts (it is still about:blank at that point), so the extension asked the content script too early, got no answer and wrongly reported "submit page not recognised" — it now waits until the tab is on a real document (http / https); ② when no submit form can be found, that page is now kept open and brought to the front (just like the not-signed-in case) so the redesign / redirect evidence stays visible; ③ Cloudflare's human-verification page is now separated from "not recognised" and reported as challenge, recognised by the challenge page's own markers (cf-chl-widget-*, window._cf_chl_opt, and "please wait" in the title) — the site then asks the user to finish the verification in the opened page. The manifest and API permissions are untouched, and so are the versions and licences of the third-party components inside the package). Verified before that: 2026-10-23 (the extension package under public/extension/ was replaced → cc-for-web-2.67.0.zip. This one is one-click submission to Codeforces: a new submit-code capability plus three cross-repository messages cp-submit / cp-submit-result / cp-submit-status — when the user clicks the submit button in this site's sample panel (or presses the shortcut), the extension writes the current editor contents into the Codeforces submit form and clicks submit, then polls the verdict on the /my page and pushes each change back to this site. The trust boundary is the same as the verification-code fill-in: it writes the source into the submit box only, reads no cookies and returns no page content, and only happens once on an explicit user click. The manifest changes accordingly: host_permissions 184 → 190 and content_scripts 3 → 4 (the extra one is registered for the contest / gym / group submit pages and "my submissions" pages on Codeforces), with no new API permissions. These are behaviour/manifest changes rather than dependency changes, so the version numbers and licences of the third-party components inside the package are unchanged). Verified before that: 2026-10-11 (the extension package under public/extension/ was replaced → cc-for-web-2.66.4.zip. Two behaviour changes, both conveniences for cloud-sync sign-in: ① verification-code fill-in — when the user clicks the button on this site, the extension writes the site's code into the Last name field of the Codeforces Social settings page and submits it (that one field only; no cookies, no credentials); ② sign-in pre-check — the extension compares locally whether the handle this browser is signed in as matches the one the user entered, answering with only four enumerations (match / mismatch / not-logged-in / unknown) and never the handle itself. The manifest changes accordingly: host_permissions 183 → 184 and content_scripts 2 → 3 (the extra one is registered for https://codeforces.com/settings/social* only), with no new API permissions. These are behaviour/manifest changes rather than dependency changes, so the version numbers and licences of the third-party components inside the package are unchanged). Verified two rounds earlier: 2026-10-10 (the extension package under public/extension/ was replaced → cc-for-web-2.66.3.zip. Three behaviour changes: ① the extension now supports Firefox for Android (gecko_android added to the manifest, minimum 142), and two fatal crashes in the background script on Android were fixed (the contextMenus / commands namespaces do not exist on Android; the old code threw a TypeError during module evaluation, killing the whole background — on Android this showed up as the site reporting "extension not detected" and parse clicks doing nothing — verified on a real device running Firefox 143); ② the injection scope for problem source sites is now derived from the parser registry, enlarging host_permissions and the auto-parse content script (6 → 183 patterns / 2 → 182 patterns); ③ the Firefox manifest description now notes "Fork of Competitive Companion, now also working on Firefox for Android.". All three are behaviour/manifest changes rather than dependency changes, so the version numbers and licences of the third-party components inside the package are unchanged). Verified three rounds earlier: 2026-10-02 (three monospace fonts are now bundled for the code area: JetBrains Mono 2.211 / Fira Code 5.002 / Cascadia Code 2407.024, with the source files under public/fonts/. Latin-subset woff2 only (Regular + Bold, 149KB in total), taken from the @fontsource 5.3.0 builds; all three upstreams are OFL-1.1. The version numbers were read off the fonts themselves — the fontsource packages lag upstream, e.g. Fira Code is 6.2 upstream but 5.002 inside the package, so naming the files after the upstream release tags would have recorded them wrongly. This adds assets rather than dependencies, so package.json and the runtime manifest are unchanged). Verified four rounds earlier: 2026-10-01 (the extension package under public/extension/ was replaced twice the same day: first → cc-for-web-2.66.1.zip (same behaviour change as the previous entry, dropping the cph- handshake prefix), then → cc-for-web-2.66.2.zip (behaviour change: the "pending-samples list" mechanism was removed entirely — the extension no longer stores a list; instead, when the user opens a problem page, the extension asks the page on the spot whether that problem exists in the workspace with empty samples (new messages cp-query-need / cp-need-answer, see src/composables/useCompanionBridge.js), and only fetches if so; a cross-repository contract that must ship in lockstep with this site). Both are behaviour changes rather than dependency changes, so the version numbers and licences of the third-party components inside it are unchanged). Verified five rounds earlier: 2026-10-01 (the extension package under public/extension/ was replaced → cc-for-web-2.66.0.zip. The only change is that the handshake message names between the extension and the page dropped the cph- prefix and became cp-* (a cross-repository contract, see src/composables/useCompanionBridge.js); that is a behaviour change rather than a dependency change, so the version numbers and licences of the third-party components inside it are unchanged). Verified six rounds earlier: 2026-09-30 (two things the same day: ① the extension package under public/extension/ was replaced → cc-for-web-2.65.3.zip, the behaviour change being "the delivery targets can now be switched straight from this site's settings page", with the version numbers and licences of the third-party components inside it unchanged; ② the notes feature shipped, adding a self-hosted Markdown / LaTeX rendering runtime under public/md/ (KaTeX 0.18.9 + marked 14.0.0), and consequently promoting marked / dompurify / katex to direct dependencies of this site. The dependency figures were re-verified against the same day's package-lock.json: lockfileVersion: 3, 94 dependencies in total: 30 production, 64 development).
1. Site runtime dependencies (shipped with the build)
| Component | Version | Licence | Purpose |
|---|---|---|---|
| Vue | 3.5.42 | MIT | The framework behind the whole interface |
| Monaco Editor | 0.56.0 | MIT | The code editor (VS Code's editor core) |
| ├─ marked | 14.0.0 | MIT | Transitive dependency of Monaco (Markdown rendering) |
| └─ DOMPurify | 3.4.8 | MPL-2.0 OR Apache-2.0 (dual-licensed) | Transitive dependency of Monaco (HTML sanitising). The only non-permissive runtime dependency on this site |
| KaTeX | 0.18.9 | MIT | LaTeX math rendering for the notes. Not in the main bundle — only downloaded on demand from public/md/ (see 2.2) |
| @runno/wasi | 0.10.0 | MIT | The local sandbox's WASI runtime: instantiate, feed stdin, kill() (TLE relies on it) |
| canvas-confetti | 1.9.4 | ISC | The confetti celebration shown when every test case passes. Shipped in the main bundle: it draws on the canvas the sample panel itself owns (placed by TestPanel.vue, position: absolute; inset: 0; pointer-events: none) and deliberately does not use its Web Worker mode (useWorker: false, see src/services/confetti.js); nothing is drawn when the system asks for reduced motion |
The notes feature (shipped 2026-09-30) also promoted those two Monaco transitive dependencies to direct dependencies of this site: mdRenderer.js imports DOMPurify directly (it was already in the main bundle via Monaco), while marked is self-hosted in public/md/ for on-demand download in addition to the copy Monaco pulls into the main bundle. What was verified to actually ship in the build (by searching dist/assets/main-*.js): DOMPurify ✓, marked ✓ (the copy from Monaco's dependency tree), katex ✗ (the main bundle contains only the word "katex" in UI copy and file names). So "downloaded on demand" does not mean "a user who never downloaded anything has no marked in the shell" — marked is in the main bundle already; the copy under public/md/ keeps the renderer aligned with the site's own version, and keeps katex out of first paint entirely.
The rest of the 32 "production dependencies" in package-lock.json (@vue/compiler-*, @babel/*, entities, postcss, magic-string, source-map-js, estree-walker, csstype, nanoid, picocolors and so on) are Vue's compiler chain: used at build time only, and not shipped in the output.
2. Self-hosted runtimes (under public/, none of them reaches the browser until the user clicks "download")
What the two have in common: both come from upstream and are distributed with their upstream notices (the copy under public/md/ is produced by scripts/prepare-md-runtime.mjs from node_modules; the C++ toolchain is built by scripts/wasm-core/ from the LLVM 23.1.0 sources, with no upstream code modified), and neither is in the Service Worker precache manifest —— a user who never clicked download has not a single byte of them in the shell.
2.1 Local sandbox toolchain (public/wasm/, the live build is about 23MB)
The site loads only the 23.1.0/ build today. All three artifacts are .br: brotli is a transfer encoding, decoded transparently by the browser's network stack via Content-Encoding: br, which is why the file names keep the .br suffix. 8.0.1/ (about 50MB) stays in the repository as a deployment rollback only —— no code selects it (see HANDOFF.md §22.4).
| Component | Version | Licence | Where it lands and what it is for |
|---|---|---|---|
| LLVM / clang | 23.1.0 | Apache-2.0 WITH LLVM-exception | public/wasm/23.1.0/clang.wasm.br (13.6MB) —— compiling C++ locally. Built by scripts/wasm-core/build.mjs from the llvmorg-23.1.0 sources for wasm32-wasip1 |
| LLVM lld (wasm-ld) | 23.1.0 | Apache-2.0 WITH LLVM-exception | public/wasm/23.1.0/wasm-ld.wasm.br (8.1MB) —— linking. Built from the same sources; run it with -flavor wasm |
| wasi-libc | taken from wasi-sdk 34.0 | Apache-2.0 WITH LLVM-exception | libc.a, libm.a, libpthread.a, libdl.a, librt.a, libutil.a, libxnet.a, libcrypt.a, libresolv.a, libwasi-emulated-*.a and crt1-command.o under sys/lib/wasm32-wasip1/ inside sys23-fs.tar.br (1.54MB, 1385 files unpacked) —— the C standard library and startup code |
| libc++ / libc++abi | the eh variant of wasi-sdk 34.0 | MIT (University of Illinois / NCSA family) | sys/lib/wasm32-wasip1/eh/libc++.a, libc++abi.a, libunwind.a in the same tar —— the C++ standard library (the exception-enabled build that makes try / catch work); headers under sys/include/wasm32-wasip1/eh/c++/v1 |
| compiler-rt | with LLVM 23 above | Apache-2.0 WITH LLVM-exception | sys/lib/clang/23/lib/wasm32-unknown-wasip1/libclang_rt.builtins.a in the same tar —— compiler runtime builtins |
| CPython | 3.11.3 | PSF License | public/wasm/python-3.11.3/python.wasm + python-fs.tar.gz —— running Python locally. A wasm32-wasi build with the standard library in usr/local/lib/python311.zip; the build likewise comes from runno's langs/ |
- The sysroot is a subset, not the whole thing: trimmed from the full wasi-sdk 34 sysroot (about 416MB) down to 1.54MB for "C++20 contest code, compiled in a browser". The trimming rules are documented at the top of
scripts/wasm-core/pack-sysroot.mjs:noehand__cxx03dropped, the headers of the other three targets dropped, every.sodropped, most clang intrinsic headers dropped, and all archives run throughllvm-strip --strip-debug. Change the trimming list and that header is the one place to update with it. - Rollback build
8.0.1/: clang 8.0.1, wasm-ld 8.0.1 andclang-fs.tar.gz(about 50MB together). The prebuilt artifacts come from binji/wasm-clang, distributed via runno'slangs/, under the same licences. It is loaded only when a deployment is rolled back to the previous version —— the site itself never picks it.
2.2 Notes rendering runtime (public/md/, about 578KB)
Parsing Markdown and rendering LaTeX for the notes takes the same "download on demand" route (src/services/mdRuntime.js): before the download there is only a hint line, afterwards it lands in the cp-md-runtime Cache Storage bucket, and the "local runtimes" section of the settings page can uninstall it together with the cache and the globals it put on the browser.
| Component | Version | Licence | Where it lands and what it is for |
|---|---|---|---|
| KaTeX | 0.18.9 | MIT | katex.min.js + katex.min.css + fonts/KaTeX_*.woff2 (20 weights) —— the bulk of the size |
| marked | 14.0.0 | MIT | marked.min.js —— Markdown parsing (same version as the copy in the main bundle from section 1) |
- woff2 only: KaTeX's CSS references both woff and ttf fallbacks; copying everything would be 1.1MB, whereas woff2 comes to 296KB, so the script strips the fallbacks (and asserts no leftovers afterwards).
public/md/assets.jsonis the single source of truth for the download manifest ({ katex, marked, bytes, assets[] }, written by the script), so the versions need not be transcribed here —— but this file's rule is "measure it on the artifact", so the table above still defers topublic/md/assets.json.
3. UI assets
| Asset | Licence | Source |
|---|---|---|
seti-ui's icons/cpp.svg | MIT | jesseweed/seti-ui (VS Code's default file icon theme, glyph \E01A). Used in SOLID_PATHS.cpp of src/components/AppIcon.vue; the source is recorded in a comment in that file |
| Bundled code fonts JetBrains Mono 2.211 / Fira Code 5.002 / Cascadia Code 2407.024 | OFL-1.1 (each ships its own SIL OFL; redistribution is permitted) | public/fonts/*.woff2, latin subsets with Regular and Bold only (6 files, 149KB), taken from the @fontsource 5.3.0 builds; the @font-face rules in src/styles/fonts.css are the single place they are declared. The filenames carry the fonts' own internal version numbers, not the upstream release tags |
- The other icons (
play/gear/files/cases/file-plus/folder-plus/pythonand so on) are inline SVGs drawn for this site in the 24×24 stroked style of lucide; no icon dependency was introduced. - The UI (everything outside the code area) still goes entirely through the system font stack (
-apple-system/ PingFang SC / …); no self-hosted or CDN webfont. - The code area is the exception: the three monospace fonts in the table above are self-hosted, but they are downloaded only when the user picks one under Settings › Editor › Font (anyone who never picks one downloads nothing). They are also not in the Service Worker precache list; they land in the shell bucket through the first-use caching strategy — which is why the filenames must carry version numbers, since an in-place overwrite would leave existing users with the old file forever.
- The PWA icons (
public/icons/*.png),favicon.svgandog-cover.pngare all made for this site. - ⚠️ To be confirmed: the Python two-snake mark in
SOLID_PATHS.pythonhas no recorded source in the code (its shape matches the Python mark in simple-icons). Once it is confirmed who added it and where it came from, add a row to this table.
4. Browser extension CC for Web
The package is distributed from this site (public/extension/cc-for-web-<version>.zip, currently 2.68.1; re-versioned on 2026-10-28 to re-inject the bridge into already-open target-site tabs whenever the background starts, so installing or reloading the extension no longer requires refreshing the page (manifest unchanged); before that re-versioned on 2026-10-26 for registration state, register / virtual participation and the unofficial rank (host_permissions 190 → 195, content_scripts 4 → 5); before that re-versioned on 2026-10-24 to keep the submission page open and show its detail page on a non-AC verdict, closing it only on AC; before that re-versioned on 2026-10-23 (first fixing the source-box selector — the real page calls it source, while sourceFile is the file-upload input; then the submit-button enablement — the problem select must dispatch change before the button goes from disabled to clickable; then the blank-page race on a freshly created tab, keeping the page open when no submit form is found, and reporting Cloudflare's human-verification page as challenge), the behaviour change being one-click submission to Codeforces: when the user clicks the submit button in the sample panel (or presses the shortcut), the extension writes the current editor contents into the Codeforces submit form and clicks submit, then polls the verdict on the /my page and pushes it back to this site (it writes the submit box only, reads no cookies, returns no page content, and only runs on an explicit user click; host_permissions therefore go 184 → 190 and content_scripts 3 → 4; the third-party components inside are unchanged from the table below), and its source lives in another repository (CC-for-Web).
| Component | Version | Licence | Notes |
|---|---|---|---|
| Competitive Companion | upstream major 2.x | MIT (© 2017 Jasper van Merle) | This project's fork (renamed CC for Web, changed to deliver to the web page and to local IDE tools at the same time). The upstream LICENSE is included in the zip |
| jszip | 3.10.1 | MIT OR GPL-3.0-or-later (dual-licensed; this project uses the MIT branch) | Extension runtime |
| pdfjs-dist | 4.2.67 | Apache-2.0 | Extension runtime (PDF statements) |
| nanobar | 0.4.2 | MIT | Extension runtime |
| snarkdown | 2.0.0 | MIT | Extension runtime |
| p-limit | 7.3.0 | MIT | Extension runtime |
| cyrillic-to-translit-js | 3.2.1 | MIT | Extension runtime |
All of these are bundled into js/content.js (about 2MB) and distributed with the extension package.
5. Build-time tools (not shipped, credited all the same)
| Component | Version | Licence | Purpose |
|---|---|---|---|
| Vite | 8.3.0 | MIT | Build and dev server |
| Rolldown | 1.2.8 | MIT | Vite 8's bundling core |
| Lightning CSS | 1.33.0 | MPL-2.0 | CSS processing |
| @vitejs/plugin-vue | 6.0.9 | MIT | SFC compilation |
| PostCSS + postcss-pxtorem | 8.5.28 / 6.1.0 | MIT | Global UI scaling (px→rem conversion) |
| puppeteer-core | 25.11.0 | Apache-2.0 | The headless regression script (npm run verify) |
| Binaryen | 132.0.0 | Apache-2.0 | npm run wasm:opt (currently not needed) |
6. External judging services (this repository contains none of their code)
Both are external services this site talks to over HTTP; you have to deploy the server side yourself. The site implements only the protocol client, and has copied or linked none of their code.
| Service | Licence | Notes |
|---|---|---|
| Piston | MIT | The default engine; recommended: docker run -p 2000:2000 ghcr.io/piston-cli/piston:stable |
| Judge0 | GPL-3.0 | Optional engine. GPL obligations follow its server side and have nothing to do with this front end; but if Judge0's code is ever moved into this project, the licence picture changes and must be re-evaluated at that point |
7. Where the full licence texts live
- npm packages:
node_modules/<package>/LICENSE*; production vs. development is inpackage-lock.json. - Toolchain binaries: the upstream repositories named in the table in section 2 (LLVM / wasi-libc / CPython / runno).
- Self-hosted rendering runtime: these are
distartifacts from npm packages copied over verbatim (KaTeX / marked), so their full licence texts are likewise undernode_modules/<package>/LICENSE*. - Extension: the
LICENSEinsidepublic/extension/cc-for-web-<version>.zip.
Appendix: how to re-verify this list
# 1) direct dependencies
cat package.json
# 2) versions and licences of every dependency (production / development split)
node -e "const l=require('./package-lock.json');for(const [k,v] of Object.entries(l.packages))if(k)console.log((v.dev?'dev ':'prd ')+k.replace('node_modules/','')+' '+v.version+' '+(v.license||'?'))"
# 3) toolchain versions (strings measured from the artifacts, not guessed from directory names. They are brotli, so decompress first)
node -e "const z=require('node:zlib'),fs=require('node:fs');const s=z.brotliDecompressSync(fs.readFileSync('public/wasm/23.1.0/clang.wasm.br')).toString('latin1');console.log([...new Set(s.match(/LLVM[0-9][^\x00]{0,10}/g)||[])])"
# → [ 'LLVM23.1.0' ]; the version pins live in scripts/wasm-core/versions.json (with the source tarball's sha256)
LC_ALL=C grep -a -o -E "3\.11\.[0-9]+" public/wasm/python-3.11.3/python.wasm | sort -u
# 4) which libraries the sysroot actually contains (to confirm where wasi-libc / libc++ / compiler-rt landed)
node -e "process.stdout.write(require('node:zlib').brotliDecompressSync(require('node:fs').readFileSync('public/wasm/23.1.0/sys23-fs.tar.br')))" | tar tf - | grep "sys/lib/"
# 5) whether a dependency really made it into the build (NB: katex / marked take the on-demand route, so the library itself is not searchable in the main bundle)
grep -l DOMPurify dist/assets/*.js
grep -c "marked" dist/assets/main-*.js
# 6) versions and byte size of the notes rendering runtime
cat public/md/assets.json
After changing this list, do two things: run npm run notice to regenerate notice.html / notice.en.html (skipping it leaves a stale page; node scripts/render-notice.mjs --check will catch it), and take another look at the "Acknowledgements and open-source licences" section of guide.en.html (and guide.html for the Chinese side) to see whether it still holds — that is the short version users read. Do not forget to update NOTICE.md as well: the two language versions are kept in step by hand, with no automatic sync.