Unleash the Power of Hypermedia
A Framework
for Speedy WebApplications
Backend Framework
for High-PerformanceWeb Applications
A superset of TypeScript running on the V8 engine in a hyper-efficient Rust web server environment.
// HTML pages and fragmentsget/(<html lang="en"><body><h1>Hello from WebX!</h1><button hx-get="/about" hx-swap="outerHTML">About</button><h2>Favorite Foods</h2><ul id="foods">{foods.map(renderFood)}// Server-side rendering</ul><form hx-post="/api/foods" hx-swap="afterend" hx-target="#foods" hx-trigger="submit"><input type="text" name="name" placeholder="Food name"/><input type="text" name="emoji" placeholder="Emoji"/><button type="submit"/>Add Food</button></form></body></html>)get/about(<p>This is an example WebX project witha list of all of my favorite foods!</p>)// Server-side codemodelFood{name:String,emoji:String}handlerrenderFood(food: Food)(<li>{food.emoji}{food.name}</li>)constfoods:Food[]= [{name:"Hamburger",emoji:"🍔"},{name:"Pizza",emoji:"🍕"},{name:"Taco",emoji:"🌮"},];// API endpointslocationapi{post/foodsform(newFood:Food){foods.push(newFood);} -> renderFood(newFood)}
Discover Web X
Web X is a minimal and powerful framework designed to optimize productivity for developers to build high-performance and scalable web application backends, REST APIs, and hypermedia systems.
- Seamless TSX/JSX support
- Built-in HTMX linting
- Minimal and intuitive syntax
- Blazing fast performance with Rust
Awesome Community
Developers from all over the world contribute to our open-source projects. Join the Web X community on GitHub and help us build the future of technology.
Join us on DiscordScale with Confidence
Web X allow you applications to scale seamlessly as demand increase. Focus on business logic writing clean and maintainable code while Web X handles the heavy lifting. We built Web X for your success.
Embrace the future — start building today
Get StartedSponsor Web X
The Web X project is maintained by a team of hard-working dedicated developers. Your sponsorship and donations helps us keep the project alive and ensures continued delivery of high-quality software to our users.
Sponsor on GitHub100% of all funds go to maintainers and community initiatives.
Have any questions?
Frequently Asked Questions
How is Web X different from other frameworks?
Web X stands out due to its HTML-first methodology, the use of TypeScript, and its execution on an efficient Rust-based runtime. This combination offers a unique blend of simplicity, performance, and advanced hypermedia support not commonly found in other frameworks. This allows developers to create web applications and APIs using a familiar and straightforward approach.
Is Web X limited to only HTML?
No, Web X is a versatile framework that can be used with any MIME-and structured data format, including HTML, CSS, XML, JSON, and more. Its flexible and adaptable design allows you to process many different data formats, making it suitable for a wide range of applications. Web X follows an HTML-first approach for ease of use and simplicity but allow users to define parsers for other data formats.
Why should I choose Web X over Node.js or Deno?
Node.js and Deno are not designed specifically for web development, whereas Web X is designed to be perfect. Web X is a lightweight, easy-to-use language and framework for building web applications and APIs with TypeScript. Web X is built on top of the Deno core runtime, while also offering a more streamlined and developer-friendly experience.
Does Web X have a package manager?
Almost, Web X integrates smoothly with JSR similar to Deno, allowing you to use a vast ecosystem of packages and plugins available for JavaScript and TypeScript. This ensures you can extend the functionality of your Web X applications easily. However, Web X does not have a built-in package manager for handlers and models as of yet.
How does Web X handle real-time data and WebSocket?
Web X provides a WebSocket API that allows you to create real-time, bidirectional communication between clients and servers. The API directly binds to a native Rust WebSocket library, ensuring high performance and reliability. Web X also supports server-sent events (SSE) for one-way communication from the server to the client.