DEV Community

Cover image for Introducing WebLite DSL + Try-It Editor: YAML Meets Web Design Simplicity!
Schrodingerssk
Schrodingerssk

Posted on

Introducing WebLite DSL + Try-It Editor: YAML Meets Web Design Simplicity!

Hey devs! πŸ‘‹
I’m excited to introduce WebLite DSL, a minimalist domain-specific language that lets you build clean static websites with just YAML β€” and its perfect companion, the WebLite Try-It Editor, a real-time playground to bring your .wl sites to life instantly. πŸ”₯

🧠 What is WebLite DSL?

WebLite is a simple yet powerful DSL (Domain Specific Language) that transforms human-readable .wl (YAML) files into full-blown HTML and CSS websites β€” no need to write a single HTML tag yourself!

Home:
Hero:
- "Title >> big centered red": "
Hello WebLite*"
- "Description >> small gray": "Your YAML-powered site starts here!" *

This snippet magically becomes:

*

Hello WebLite

Your YAML-powered site starts here!

πŸ’‘ *

Highlights:
πŸ” Components: Create reusable layout blocks
🎨 Inline Styling: Use aliases like big, red, centered, or raw CSS
πŸ“„ Multi-page Support: Define pages like Home, About, Contact in one file
πŸ“¦ Zero dependencies on the frontend β€” it’s pure HTML/CSS

πŸ’» Try It Online β€” Instantly!

Writing YAML is one thing. Seeing it come alive instantly? That’s what the WebLite Try-It Editor does!

πŸ‘‰ [Live Demo (https://weblite-tryit.vercel.app/)]
βš™οΈ Built with MERN stack on the frontend and a Python Flask backend that runs the builder.py engine.

*πŸ‘‡ Features: *
πŸ“ Monaco-based code editor with syntax highlighting
πŸŒ— Dark/Light theme toggle
πŸ–Ό Real-time browser preview via iframe
πŸ“ No account needed β€” paste YAML and hit Run

πŸ”— GitHub Repositories
www.github.com/scgssk/WebLite-DSL
πŸ› οΈ WebLite DSL (Builder Engine)

πŸ§ͺ Try-It Editor (Frontend & Flask API)
🧩 Built With PyYAML, Flask, uuid, shutil React, Monaco Editor, Render (for deployment)
❀️ Lots of modularity & markdown-like syntax handling
πŸ›  Roadmap
[x] Dark mode
[x] Components
[x] Responsive Editor UI
[x] One-click hosting via Render
[ ] Custom themes & animations
[ ] Export to zip
[ ] Shareable URLs with your .wl site
[ ] Minify build (weblite site.wl --minify)

πŸ‘‹ Final Thoughts

Whether you're building personal pages, documentation sites, or teaching HTML/CSS concepts visually β€” WebLite DSL + Try-It gives you the cleanest workflow you’ve seen.

✨ All from a .wl file.

Would love to hear your feedback, ideas, or contributions!

Let’s make the web more readable, one YAML block at a time. πŸ’›

YAML #WebDev #OpenSource #React #Python #Flask #SideProject #Hackathon #DeveloperTools

Top comments (0)