@lukas_holdings/castdom 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -21
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
<img src="https://img.shields.io/badge/license-MIT-000?style=flat-square" alt="license" />
|
|
5
5
|
<img src="https://img.shields.io/badge/runtime-CSS%20only-000?style=flat-square" alt="CSS only runtime" />
|
|
6
6
|
<img src="https://img.shields.io/badge/bundle-~14KB-000?style=flat-square" alt="bundle size" />
|
|
7
|
-
<img src="https://img.shields.io/badge/tests-71%20passed-000?style=flat-square" alt="tests" />
|
|
8
7
|
</p>
|
|
9
8
|
|
|
10
9
|
<h1 align="center">CastDOM</h1>
|
|
@@ -694,27 +693,9 @@ export type SkeletonName = "user-card" | "feed-item";
|
|
|
694
693
|
|
|
695
694
|
---
|
|
696
695
|
|
|
697
|
-
##
|
|
696
|
+
## AI-Friendly
|
|
698
697
|
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
- **Left panel**: Traditional spinner — blank until data loads, layout shifts on content render
|
|
702
|
-
- **Right panel**: CastDOM skeleton — pixel-perfect placeholder visible instantly, zero CLS
|
|
703
|
-
|
|
704
|
-
The demo simulates network latency (1s, 2s, 3s) and shows real-time Core Web Vitals metrics (CLS, FCP, LCP) for both approaches. [View the demo →](demo/index.html)
|
|
705
|
-
|
|
706
|
-
---
|
|
707
|
-
|
|
708
|
-
## AI Integration
|
|
709
|
-
|
|
710
|
-
CastDOM ships AI-friendly reference files for use with LLMs, AI coding assistants, and generative engine optimization:
|
|
711
|
-
|
|
712
|
-
| File | Purpose |
|
|
713
|
-
|------|---------|
|
|
714
|
-
| [`llms.txt`](llms.txt) | Short summary — install, concepts, exports, links |
|
|
715
|
-
| [`llms-full.txt`](llms-full.txt) | Complete reference — all types, APIs, patterns, config, file structure |
|
|
716
|
-
|
|
717
|
-
These follow the [llms.txt](https://llmstxt.org/) convention. Any AI assistant can read them to understand how to install, configure, and integrate CastDOM into a project.
|
|
698
|
+
CastDOM ships [`CASTDOM.md`](CASTDOM.md) — a comprehensive context file for AI coding assistants (Claude, Gemini, GPT, Cursor, Copilot, Windsurf, etc.). It contains every type, API, integration pattern, and CLI command so any AI can help you integrate CastDOM correctly.
|
|
718
699
|
|
|
719
700
|
---
|
|
720
701
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lukas_holdings/castdom",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Pixel-perfect skeleton loading screens, extracted from your real DOM. Zero-config, SSR-first, CSS-only runtime.",
|
|
5
5
|
"homepage": "https://kameeleonn.github.io/CastDOM/",
|
|
6
6
|
"repository": {
|