New Web Framework 'Datastar' Simplifies Dev

The Talk Python To Me podcast featured Datastar, a new lightweight web framework that unifies the functionality of HTMX and AlpineJS. The creators' philosophy is that "the fastest JavaScript you can write is no JavaScript," aiming to simplify the developer experience by reducing complexity.

- Datastar's creator, Delaney Gillilan, has a background in 3D art, game development, and high-performance, real-time systems for industries like video games and military applications. His frustration with the complexity and limitations of existing frontend tools, including what he perceived as shortcomings in HTMX and Alpine.js, directly led to the creation of Datastar to solve his own problems. - The core of Datastar is intentionally minimal, with a core of less than 300 lines of code, and nearly every feature is a plugin. This "everything is a plugin" philosophy was a direct response to Gillilan's difficulties in extending HTMX and Alpine.js and is designed to allow developers to replace or modify almost any part of the framework. - The project is sustained through a hybrid model: the core framework is MIT-licensed and free, supported by Star Federation, a 501(c)(3) non-profit organization. This structure allows for tax-deductible donations to support the project's maintenance and community activities. - To fund the non-profit's work, Datastar offers a "Pro" version, which is a one-time lifetime license for additional features and tooling. This includes a "Solo" license for individual developers and a "Team" license for organizations, providing access to convenience features like `data-animate` and a debugging inspector. - The introduction of a paid "Pro" version sparked debate within the developer community about open-source sustainability. The Datastar team positioned the paid features as non-essential "footguns" or conveniences that could be replicated using the core library, framing it as a way to cover support costs for more complex use cases. - Community building for Datastar has been centered around a Discord server, where early adopters and the core team interact. The project's growth has been organic, with the founder emphasizing that he uses Datastar daily in his own work, a process he refers to as "dogfooding". - Datastar is backend-agnostic, with community-contributed SDKs available for over 12 languages, including Go, Python, Rust, and .NET. The framework's primary means of communication with the server is through Server-Sent Events (SSE), which allows for efficient real-time updates. - Early community adoption has been driven by developers looking for a lightweight alternative to complex JavaScript frameworks, with the project gaining traction through discussions on platforms like Hacker News and mentions in podcasts. The community has been instrumental in providing feedback, contributing code, and building examples in various backend languages.

Get your own daily briefing

Scout delivers personalized news, insights, and conversations tailored to your role and industry.

Download on the App Store

Shared from Scout - Be the smartest in the room.