MCPcopy Index your code
hub / github.com/bep/gr

github.com/bep/gr @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
1,425 symbols 3,415 edges 46 files 581 documented · 41%
What it actually does AI analysis from the code graph — generated when you open this
loading…

Extension points exported contracts — how you extend this code

Renderer (Interface)
Renderer is the core interface used to render a Element. [22 implementers]
lifecycle.go
Modifier (Interface)
A Modifier modifies an element, adding attributes, style or child elements etc. [5 implementers]
element.go
Component (Interface)
A Component represents a React JS component. http://facebook.github.io/react/docs/glossary.html#react-nodes for a refer [4 …
component.go
ThisSetter (Interface)
ThisSetter must be implemented by a component if JavaScript's this is needed. The simplest way of doing this is to just [1 …
this.go
Listener (FuncType)
Listener is the signature for the func that needs to be implemented by the listener, e.g. the clickHandler etc.
event.go
StateInitializer (Interface)
StateInitializer sets up the initial state. [6 implementers]
lifecycle.go
Factory (Interface)
A Factory is a Component that can construct Elements (analogous to a ReactClass or a ReactFactory). [1 implementers]
component.go
ShouldComponentUpdate (Interface)
ShouldComponentUpdate gets invoked before rendering when new props or state are being received. This is not called for t [10 …
lifecycle.go

Core symbols most depended-on inside this repo

$funcType
called by 539
examples/lifecycle/lifecycle.js
$funcType
called by 519
examples/router/router.js
$funcType
called by 517
examples/composition/composition.js
$funcType
called by 514
examples/basic-click-counter/basic-click-counter.js
$funcType
called by 514
examples/debounce/debounce.js
$funcType
called by 511
examples/interop/interop-ext-reverse-bundle.js
$funcType
called by 511
examples/interop/interop.js
$funcType
called by 511
examples/basic/basic.js

Shape

Function 1,220
Method 139
Struct 41
Interface 15
TypeAlias 8
FuncType 2

Languages

Go52%
TypeScript48%

Modules by API surface

evt/event.autogen.go161 symbols
attr/htmlattributes.autogen.go143 symbols
el/elements.autogen.go114 symbols
examples/interop/interop-ext-reverse-bundle.js87 symbols
examples/router/router.js86 symbols
examples/lifecycle/lifecycle.js86 symbols
examples/interop/interop.js86 symbols
examples/debounce/debounce.js86 symbols
examples/composition/composition.js86 symbols
examples/basic/basic.js86 symbols
examples/basic-click-counter/basic-click-counter.js86 symbols
component.go48 symbols

For agents

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

⬇ download graph artifact