MCPcopy Index your code
hub / github.com/aidenybai/hundred

github.com/aidenybai/hundred @v0.1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.1.0 ↗ · + Follow
4 symbols 6 edges 2 files 0 documented · 0% updated 3y agov0.1.0 · 2022-03-06★ 442
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

💯 Hundred

Hyper-lightweight Virtual DOM

hundred is intended to be the most lightweight virtual DOM implementation, and is a proof-of-concept and a learning resource more than a tool you should actually use in production.

Additionally, just because hundred is lightweight doesn't mean it's performant by any means. It is faster and smaller than simple-virtual-dom, but ranks behind production-ready Virtual DOM libraries

Note: If you're looking for something a bit more comprehensive, check out Million

Installation

npm install hundred

Usage

import { h, createElement, patch } from 'hundred';

const el = createElement(h('div'));

patch(el, h('div', null, 'Hello World!'), h('div'));

patch() function has a standard interface that is used in many Virtual DOM libraries. First argument is a DOM node that will be used as the live DOM reference, and the second one is a Virtual DOM to render.

h() function will instantiate a "Virtual DOM" node for an element.

License

hundred is MIT-licensed open-source software by Aiden Bai.

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Function 3
Interface 1

Languages

TypeScript100%

Modules by API surface

src/index.ts4 symbols

For agents

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

⬇ download graph artifact

Ask about this repo answers extend the page