Skip to content

webcomponents/webcomponents.org

Folders and files

NameName
Last commit message
Last commit date

Latest commit

87974a6 · Jan 18, 2023
Dec 2, 2022
Jan 13, 2023
Jan 15, 2023
Jan 18, 2023
Sep 27, 2022
Sep 27, 2022
Sep 13, 2022
Sep 12, 2022
Sep 24, 2022
Jun 30, 2016
Dec 2, 2022
Jan 18, 2023
Jan 15, 2023
Jan 17, 2023

Repository files navigation

webcomponents.org

A new version of webcomponents.org

The currently deployed version is on the old-site branch.

See DESIGN.md for more information.

Packages

This monorepo contains several npm packages:

  • @webcomponents/catalog-server: A data-only backend that indexes npm packages and provides a GraphQL API into the database
  • @webcomponents/catalog-api: GraphQL schemas and TypeScript interfaces for the registry API.
  • @webcomponents/custom-elements-manifest-tools: Tools for working with Custom Element Manifests
  • @webcomponents/internal-site-content: An HTML client served by the frontend server
  • @webcomponents/internal-site-client: JavaScript for the site
  • @webcomponents/internal-site-server: A frontend server that serves the user-facing webcompoents.org site

Quick Start

  1. Install dependencies:

    npm ci
  2. Run tests:

    npm test
  3. Start everything in development mode and watch for changes:

    npm start --watch
  4. Visit http://localhost:6451/bootstrap-packages to bootstrap the database with a default set of elements.

  5. Visit http://localhost:5450/catalog and search for "button" to see example elements.

Docker

Using Docker locally gives you the most realistic simulation of a production environment:

npm run start:docker

Ports

We use the following port scheme for consistency and to prevent collisions: