🧵 htmlweaver
Split HTML into threads. Weave them back together.
A simple CLI tool that splits AI-generated HTML files into clean, separate HTML, CSS, and JavaScript files — and exports them as Vue or React components.
✨ Features
- 🔪 Split — Break a single HTML file into
.html,.css, and.js - 🧩 Combine — Merge separate files back into one HTML file
- ⚡ Vue Export — Convert HTML into a Vue Single File Component
.vue - ⚛️ React Export — Convert HTML into a React functional component
.jsx
📦 Installation
pip install htmlweaver
🚀 Usage
Split
htmlweaver split --html mypage.html --output ./output
Output:
output/
├── mypage.html
├── mypage.css
└── mypage.js
Combine
htmlweaver combine --html ./output/mypage.html \
--css ./output/mypage.css \
--js ./output/mypage.js \
--output ./output/mypage_final.html
Export to Vue
htmlweaver export --html mypage.html --format vue --output ./output
Output:
output/
└── Mypage.vue
Export to React
htmlweaver export --html mypage.html --format react --output ./output
Output:
output/
├── Mypage.jsx
└── Mypage.css
🗂️ Project Structure
htmlweaver/
├── htmlweaver/
│ ├── __init__.py
│ ├── cli.py
│ ├── splitter.py
│ ├── combiner.py
│ ├── utils.py
│ └── exporters/
│ ├── __init__.py
│ ├── vue_exporter.py
│ └── react_exporter.py
├── tests/
├── pyproject.toml
└── README.md
🛣️ Roadmap
- Split HTML into separate files
- Combine files back into HTML
- Export as Vue component
- Export as React component
-
--watchmode for auto-split on save - TypeScript / TSX support
- SCSS export
- Angular component export
- VS Code Extension
- AI-powered smart component splitting
- Web app at htmlweaver.io
🤝 Contributing
Contributions are welcome!
Feel free to open an issue or submit a pull request.
📄 License
MIT © abutlb
Metadata
Release files for htmlweaver 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| htmlweaver-1.0.0.tar.gz | 9.6 kB | Without provenance | Details for htmlweaver-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| htmlweaver-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for htmlweaver-1.0.0-py3-none-any.whl |
Total release size: 21.8 kB
Release files / htmlweaver-1.0.0.tar.gz
| Download URL | htmlweaver-1.0.0.tar.gz |
|---|---|
| Size | 9.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b61e2a39a5393fe24a2c8b50eca2d970edc4970e5f8b999c931c61e26ace04db
|
|
BLAKE2b-256 checksum How to use checksums |
ef65df4fbed5cefe1f98f7221067150f6e009b51a7c429f2e49b1220e2999a26
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / htmlweaver-1.0.0-py3-none-any.whl
| Download URL | htmlweaver-1.0.0-py3-none-any.whl |
|---|---|
| Size | 12.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
36e583feb77d257fdbfc8a8ee6e77fd8cde940a8e822ce137f53dcfb23620078
|
|
BLAKE2b-256 checksum How to use checksums |
e31b569fd39c99440e0c7c16923371e4305c8a2723ac458ad6f651eff84b81b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Security for htmlweaver 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.