MCPcopy Index your code
hub / github.com/stenciljs/core

github.com/stenciljs/core @v4.43.5

Chat with this repo
repository ↗ · DeepWiki ↗ · release v4.43.5 ↗ · + Follow
7,178 symbols 21,059 edges 1,638 files 341 documented · 5% 31 cross-repo links updated 2d agov4.43.5 · 2026-05-28★ 13,110175 open issues

Browse by type

Functions 5,077 Types & classes 2,101
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

stencil-logo

Stencil

A compiler for generating Web Components using technologies like TypeScript and JSX, built by the Ionic team.

StencilJS is released under the MIT license. StencilJS is released under the MIT license. PRs welcome! Follow @stenciljs Official Ionic Discord

Quick Start · Documentation · Contribute · Blog Community: Discord · Forums · Twitter

Getting Started

Start a new project by following our quick Getting Started guide. We would love to hear from you! If you have any feedback or run into issues using Stencil, please file an issue on this repository.

Examples

A Stencil component looks a lot like a class-based React component, with the addition of TypeScript decorators:

import { Component, Prop, h } from '@stencil/core';

@Component({
  tag: 'my-component',            // the name of the component's custom HTML tag
  styleUrl: 'my-component.css',   // css styles to apply to the component
  shadow: true,                   // this component uses the ShadowDOM
})
export class MyComponent {
  // The component accepts two arguments:
  @Prop() first: string;
  @Prop() last: string;

   //The following HTML is rendered when our component is used
  render() {
    return (



        Hello, my name is {this.first} {this.last}



    );
  }
}

The component above can be used like any other HTML element:

<my-component first="Stencil" last="JS"></my-component>

Since Stencil generates web components, they work in any major framework or with no framework at all. In many cases, Stencil can be used as a drop in replacement for traditional frontend framework, though using it as such is certainly not required.

Contributing

Thanks for your interest in contributing! Please take a moment to read up on our guidelines for contributing. We've created comprehensive technical documentation for contributors that explains Stencil's internal architecture, including the compiler, runtime, build system, and other core components in the /docs directory. Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Function 2,907
Method 2,170
Class 1,155
Interface 923
Enum 23

Languages

TypeScript100%

Modules by API surface

test/wdio/slot-ng-if/assets/angular.min.js285 symbols
src/declarations/stencil-public-compiler.ts225 symbols
src/mock-doc/node.ts205 symbols
src/declarations/stencil-private.ts190 symbols
src/mock-doc/window.ts157 symbols
src/mock-doc/element.ts148 symbols
test/end-to-end/src/components.d.ts138 symbols
src/declarations/stencil-public-runtime.ts108 symbols
test/wdio/ts-target/components.d.ts101 symbols
src/client/polyfills/core-js.js64 symbols
src/testing/puppeteer/puppeteer-declarations.ts53 symbols
src/testing/puppeteer/puppeteer-element.ts51 symbols

Dependencies from manifests, versioned

@ionic/core6.0.10 · 1×
@ionic/prettier-config4.0.0 · 1×
@jridgewell/source-map0.3.6 · 1×
@rollup/plugin-commonjs28.0.2 · 1×
@rollup/plugin-json6.1.0 · 1×
@rollup/plugin-node-resolve16.0.0 · 1×
@rollup/plugin-replace6.0.2 · 1×
@rollup/pluginutils5.1.4 · 1×
@stencil/corefile:../../ · 1×
@stencil/react-output-target0.0.9 · 1×
@stencil/sass1.3.2 · 1×
@types/eslint8.4.6 · 1×

For agents

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

⬇ download graph artifact

Ask about this repo answers extend the page