fluent-vx
v0.1.19
Published
Zero-config frontend framework with automatic routing and optimization
Maintainers
Readme
Fluent VX
Zero-config frontend framework with automatic routing and optimization
Fluent VX is a next-generation frontend framework that prioritizes developer experience with zero configuration. It provides automatic routing, reactive templates, and intelligent optimization out of the box.
✨ Features
- 🚀 Zero Configuration - Just
vx initand start coding - 🛣️ Automatic File-based Routing - Pages in
src/pages/become routes - ⚡ Built-in Reactivity - Reactive data binding without extra setup
- 🎨 Simple Template Syntax - Clean
.vxfiles with familiar syntax - 🔧 Auto Optimization - Intelligent bundling and minification
- 📦 Modern Build System - ES modules, TypeScript support
- 🛠️ Professional CLI - Create, develop, build, and deploy
- 🔌 Extensible Architecture - Plugin system for integrations
🚀 Quick Start
Create a new project
# Create a new Fluent VX project
npx vx create my-app
cd my-app
# Install dependencies
npm install
# Start development server
npm run devInitialize in existing directory
# Initialize in current directory
npx vx init
# Install dependencies
npm install
# Start development server
npm run devThat's it! Your app is running at http://localhost:5172
📁 Project Structure
my-app/
├── src/
│ ├── app.vx # Main application layout
│ ├── pages/ # File-based routing
│ │ ├── index.vx # Home page (/)
│ │ └── about.vx # About page (/about)
│ └── styles/
│ └── global.css # Global styles
├── fluent-vx.config.ts # Configuration (optional)
├── package.json
└── README.md🎨 Template Syntax
Fluent VX uses a simple, reactive template syntax:
// pages/index.vx
#data
title = "Hello World"
count = 0
items = ["Item 1", "Item 2", "Item 3"]
#end data
#view
<div class="container">
<h1>{{ title }}</h1>
<p>Count: {{ count }}</p>
<button @click="count++">Increment</button>
<ul>
@for(item in items)
<li>{{ item }}</li>
@end for
</ul>
@if(count > 5)
<p>Count is high!</p>
@end if
</div>
#end view
#style
.container {
max-width: 800px;
margin: 0 auto;
padding: 2rem;
}
#end style🛣️ Routing
Routes are automatically created from files in src/pages/:
src/pages/
├── index.vx → /
├── about.vx → /about
├── blog.vx → /blog
├── blog/
│ ├── index.vx → /blog
│ └── [id].vx → /blog/:id
└── [...slug].vx → /blog/*🔧 CLI Commands
# Create new project
vx create <name>
# Initialize in current directory
vx init
# Start development server
vx dev
# Build for production
vx build
# Preview production build
vx preview
# Add integration
vx add <integration-name>
# Remove integration
vx remove <integration-name>
# Verify and fix integrations
vx iv🔌 Integrations
Fluent VX supports integrations for enhanced functionality:
# Add Tailwind CSS
vx add tailwind
# Add MDX support
vx add mdx
# Add sitemap generation
vx add sitemap🤝 Contributing
We welcome contributions! Please see our Contributing Guide for details.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
Built with ❤️ by VeelV Team
