{"id":13657084,"url":"https://github.com/GoogleChromeLabs/howto-components","last_synced_at":"2025-04-24T01:31:10.362Z","repository":{"id":38325054,"uuid":"78592085","full_name":"GoogleChromeLabs/howto-components","owner":"GoogleChromeLabs","description":"Literate code examples for common UI patterns.","archived":false,"fork":false,"pushed_at":"2024-05-31T21:19:56.000Z","size":1499,"stargazers_count":864,"open_issues_count":51,"forks_count":72,"subscribers_count":53,"default_branch":"master","last_synced_at":"2024-08-02T05:06:44.839Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://developers.google.com/web/fundamentals/architecture/building-components/examples/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GoogleChromeLabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-01-11T01:46:19.000Z","updated_at":"2024-07-02T09:37:35.000Z","dependencies_parsed_at":"2024-08-02T05:03:11.704Z","dependency_job_id":null,"html_url":"https://github.com/GoogleChromeLabs/howto-components","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoogleChromeLabs%2Fhowto-components","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoogleChromeLabs%2Fhowto-components/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoogleChromeLabs%2Fhowto-components/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoogleChromeLabs%2Fhowto-components/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GoogleChromeLabs","download_url":"https://codeload.github.com/GoogleChromeLabs/howto-components/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223940830,"owners_count":17228908,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T05:00:36.643Z","updated_at":"2024-11-10T10:30:42.499Z","avatar_url":"https://github.com/GoogleChromeLabs.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","Guides","🌐 Web Development - Frontend"],"sub_categories":["Examples"],"readme":"# HowTo: Components\n\n![Travis CI Build status badge](https://travis-ci.org/GoogleChrome/howto-components.svg?branch=master)\n\n“HowTo: Components” is [a subsection on Web Fundamentals Architecture section](https://developers.google.com/web/fundamentals/web-components/examples/), containing a collection of web components that implement common web UI patterns using modern web technologies like Custom Elements v1 and ESnext with a special focus on accessibility, performance and progressive enhancement. Their purpose is to be an educational resource. Users are supposed to read and learn from their implementations. They are explicitly **NOT** a UI library meant to be used in production.\n\n## Demos\n\nYou can run the demos locally, after you build them:\n\n```\nnpm install  # if you haven't already\nnpm run build\npython -m SimpleHTTPServer  # or your favourite local server\n```\n\nIn your browser, navigate to `http://localhost:8000/docs` (or the port that you're running the local server from.)\n\nYou can also run\n\n```\nnpm run watch\n```\n\nto continuously run the build whenever a file changes.\n\n### WebFundamentals\n\nTo generate the content for [WebFundamentals](https://github.com/Google/WebFundamentals), run the `build-webfundamentals.sh` script. It will create a `webfundamentals` folder. The contents needs to be moved into the WebFundamentals repository. If new components have been created, they need to be added manually to [WebFundamentals Web Components table of contents](https://github.com/google/WebFundamentals/blob/master/src/content/en/fundamentals/web-components/_toc.yaml).\n\n## Testing\n\nTests are written using [Mocha](https://mochajs.org/) and [Chai](http://chaijs.com/). Each component has tests.\n\n### Local\n\nTests run using [Karma](https://karma-runner.github.io/1.0/config/browsers.html). Run the tests with\n\n```\n$ npm test\n```\n\nThis assumes that Chrome, Firefox and Safari are installed as the tests run in all of these browser (using the [Custom Elements v1 Polyfill](https://github.com/webcomponents/custom-elements)).\n\n### Local + Docker (or Travis)\n\nTests can also run in a [Docker](https://www.docker.com/) container (as we do on Travis):\n\n```\n$ npm run docker\n```\n\nThis builds a docker image `googlechrome/howto-components` and runs it. The dockerized tests use Chrome only.\n\n## Staging\n\nAll branches and PRs are built and uploaded on Travis CI. The staged version can be viewed at `http://dash-elements.surma.link/\u003ccommit hash\u003e`.\n\n## License\n\nCopyright 2017 Google, Inc.\n\nLicensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n\nPlease note: this is not a Google product\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGoogleChromeLabs%2Fhowto-components","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FGoogleChromeLabs%2Fhowto-components","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGoogleChromeLabs%2Fhowto-components/lists"}