MCPcopy Index your code
hub / github.com/GoogleChrome/samples

github.com/GoogleChrome/samples @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
4,214 symbols 10,398 edges 631 files 181 documented · 4% updated 6d ago★ 5,884104 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Google Chrome Samples

Samples tied to new functionality in Google Chrome and general samples.

Some samples correspond to an entry in https://www.chromestatus.com/features, and using that interface is currently the best way to browse.

Contributing a sample for a ChromeStatus feature

Please use SAMPLE_STARTING_POINT as a starting point.

While it's possible to simply create a standard set of HTML/JS/CSS files within the new directory, you can take advantage of the Jekyll-based templating system to handle most of the boilerplate. Any files that start with a front matter block will be templated, and any other files will be served verbatim.

If you're still unsure, two canonical samples that use templates are: - image-rendering-pixelated - report-validity

Follow the Using Jekyll with Pages guide to mimic the production Jekyll environment during local development.

Once complete, please file a pull request against the gh-pages branch with your sample. It's ideal when filing a pull request @-mention the relevant engineer who worked on adding the feature into Chrome, to solicit their feedback and ensure that the sample properly describes the functionality. The email address of the engineer who worked on a given feature can be found in the corresponding https://www.chromestatus.com/features entry. If you're unsure of the GitHub username corresponding to the engineer, an alternative is to email them a link to the pull request and ask for feedback directly.

Contributing a general sample

Just add all the resources for your sample in a dedicated folder. One example is mkbitmap, which is referenced and embedded in the article Compiling mkbitmap to WebAssembly.

Style / Linting / CI

The samples ideally should follow the Google JavaScript Style Guide, and for samples for a ChromeStatus feature that's enforced via ESLint, using the eslint-config-google base configuration, with a few overrides as needed.

Linting can be performed via npm run lint (make sure to npm install first).

Various IDEs offer real-time ESLint integration, and using those integrations that can help avoid errors before anything gets checked in.

Extension points exported contracts — how you extend this code

Todo (Interface)
(no doc)
todo-ai/src/app/todo.ts
ButtonProps (Interface)
(no doc)
vercel-ai-sdk-built-in-ai/src/components/ui/button.tsx

Core symbols most depended-on inside this repo

set
called by 592
handwriting-recognition/index-ClEgWSF6.js
log
called by 557
sqlite-wasm-cos/sqlite3.mjs
warn
called by 511
sqlite-wasm-cos/sqlite3.mjs
log
called by 461
web-sql-to-sqlite-wasm/worker.js
get
called by 276
handwriting-recognition/index-ClEgWSF6.js
error
called by 254
sqlite-wasm-cos/sqlite3.mjs
Y
called by 224
examplescript-to-wasm/binaryen.js
createElement
called by 173
handwriting-recognition/index-ClEgWSF6.js

Shape

Function 3,400
Method 618
Class 194
Interface 2

Languages

TypeScript100%
Python1%

Modules by API surface

sqlite-wasm-cos/sqlite3.mjs487 symbols
sqlite-wasm-cos/sqlite3-bundler-friendly.mjs487 symbols
sqlite-wasm-cos/sqlite3-node.mjs411 symbols
web-vr/hello-world/third_party/three.min.js286 symbols
web-vr/basic-input/third_party/three.min.js286 symbols
sqlite-wasm-opfs/jswasm/sqlite3.js242 symbols
websocketstream-demo/public/socket.io.esm.min.js237 symbols
handwriting-recognition/index-ClEgWSF6.js174 symbols
examplescript-to-wasm/binaryen.js174 symbols
mkbitmap/mkbitmap.js68 symbols
webassembly/image.js46 symbols
webassembly/fib.js40 symbols

Dependencies from manifests, versioned

@11ty/eleventy3.1.5 · 1×
@11ty/eleventy-img6.0.4 · 1×
@11ty/eleventy-navigation1.0.5 · 1×
@11ty/eleventy-plugin-rss3.0.0 · 1×
@11ty/eleventy-plugin-syntaxhighlight5.0.2 · 1×
@ai-sdk/google3.0.64 · 1×
@ai-sdk/react3.0.170 · 1×
@angular-devkit/build-angular19.0.4 · 1×
@angular/animations19.0.0 · 1×
@angular/cdk19.0.2 · 1×
@angular/cli19.0.4 · 1×
@angular/common19.2.16 · 1×

For agents

$ claude mcp add samples \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact