gitwtfhub

wtf is datastar?

sublimetext/datastar — explained in plain English

Analysis updated 2026-08-08 · repo last pushed 2025-04-24

1PHPAudience · developerComplexity · 2/5StaleSetup · easy

TL;DR

A Sublime Text plugin that adds syntax highlighting and code completions for the Datastar web framework, which lets you build reactive web apps from the server side.

Mindmap

mindmap
  root((repo))
    What it does
      Syntax highlighting
      Code completions
      Extends HTML and PHP
    How to install
      Package Control
      Search Datastar
      Sublime Text 4152 plus
    Use cases
      Laravel Blade templates
      Astro templates
      Elixir HEEx templates
    Audience
      PHP developers
      Sublime Text users
      Server-side developers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Get syntax highlighting for Datastar attributes in Sublime Text while building Laravel apps.

REASON 2

Add code completions so your editor helps finish Datastar-specific code as you type.

REASON 3

Combine Datastar highlighting with Astro, Blade, or HEEx templates using custom syntax files.

What's in the stack?

PHPSublime TextDatastar

How it stacks up

sublimetext/datastaragentpietrucha/ks_affiliationakarshsatija/php-whois
Stars111
LanguagePHPPHPPHP
Last pushed2025-04-242014-02-06
MaintenanceStaleDormant
Setup difficultyeasymoderateeasy
Complexity2/53/52/5
Audiencedeveloperdeveloperpm founder

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · easy Time to first run · 5min

Install via Package Control in Sublime Text, requires build 4152 or later.

No license information was provided in the repository explanation, so usage terms are unknown.

Wtf does this do

Datastar is a plugin for Sublime Text that adds syntax highlighting and code completions for the Datastar web framework. Datastar itself is a tool for building reactive web applications, combining the simplicity of server-side rendering with the capabilities of a full single-page application framework. This plugin makes sure that when you write Datastar-specific code in Sublime Text, your editor understands it properly, coloring syntax correctly and helping you finish code as you type. The plugin works by extending Sublime Text's existing HTML and PHP syntax definitions to recognize Datastar's attributes and patterns. Rather than replacing your current setup, it layers Datastar awareness on top of what Sublime Text already knows about web languages. You can install it through Package Control, Sublime Text's package manager, by searching for "Datastar" in the Command Palette. It requires Sublime Text build 4152 or later. This tool is for developers who use Sublime Text as their code editor and are building applications with Datastar. For example, if you are a PHP developer building a Laravel application and want to add reactive, real-time features without writing a separate JavaScript frontend, you might use Datastar in your Blade templates. This plugin ensures your editor highlights Datastar syntax correctly in those files. The plugin also plays well with other framework-specific syntax packages. The README includes instructions for combining Datastar with Astro, Laravel Blade, and Elixir HEEx templates. Setting up these combinations involves creating a custom syntax file in your Sublime Text User package that references both the Datastar syntax definitions and the other framework's definitions. This approach keeps things modular, letting you mix and match based on your stack.

Yoink these prompts

Prompt 1
How do I install the Datastar plugin for Sublime Text using Package Control and start getting syntax highlighting?
Prompt 2
Show me how to create a custom Sublime Text syntax file that combines Datastar highlighting with Laravel Blade templates.
Prompt 3
What Sublime Text build version do I need for the Datastar plugin and how does it extend HTML and PHP syntax?

Frequently asked questions

wtf is datastar?

A Sublime Text plugin that adds syntax highlighting and code completions for the Datastar web framework, which lets you build reactive web apps from the server side.

What language is datastar written in?

Mainly PHP. The stack also includes PHP, Sublime Text, Datastar.

Is datastar actively maintained?

Stale — no commits in 1-2 years (last push 2025-04-24).

What license does datastar use?

No license information was provided in the repository explanation, so usage terms are unknown.

How hard is datastar to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is datastar for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.