hardview
CommunityCreate fast vanilla UI components.
Software Engineering#patterns#ui-components#web-components#vanilla-js#dom-manipulation#no-dependencies#init-update
Authormatthewp
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Building UIs without frameworks can lead to spaghetti code, inconsistent patterns, and performance pitfalls. This skill provides a structured approach for crafting vanilla JavaScript views that are maintainable, predictable, and high-performance.
Core Features & Use Cases
- Template-first architecture using a <template> element for HTML structure.
- Dedicated clone() and init() functions that encapsulate rendering and state logic.
- Update cycle pattern: update() returns a renderable DOM and supports props down, events up.
- Optional composition with child views and explicit DOM/State update functions.
- Use cases: building small, framework-free UI components, widgets, or micro-views that can be embedded anywhere.
Quick Start
Import the skill's init function and call it to create an update function, then render the returned element into your page by passing the initial props.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: hardview Download link: https://github.com/matthewp/views-the-hard-way/archive/main.zip#hardview Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.