Analysis updated 2026-05-18
Catch data attribute typos before they silently fail in the browser.
Verify Go, Python, or TypeScript backend code sends valid Datastar selectors.
Run the linter in CI to fail a build when Datastar mistakes are found.
Allow intentional custom data attributes through a config file while still flagging real typos.
| calionauta/datastar-lint | advayc/wrapped | aegrail/aegrail-engine | |
|---|---|---|---|
| Stars | 1 | 1 | 1 |
| Language | Go | Go | Go |
| Setup difficulty | easy | easy | hard |
| Complexity | 2/5 | 2/5 | 5/5 |
| Audience | developer | general | ops devops |
Figures from each repo's GitHub metadata at analysis time.
Installing requires Go 1.26 or newer even though the tool can lint non-Go projects too.
datastar-lint is a command line tool that checks projects using Datastar, a library for building interactive web pages, for mistakes that would normally only show up later, in the browser or over a live connection to the server. Datastar works through special data attributes placed on HTML elements and matching function calls in backend code, and this tool looks at both sides at once, across Go, Python, and TypeScript projects. The problem it solves is that many Datastar mistakes compile and build without any error. A misspelled attribute like data on clik is silently ignored by the browser. Calling a backend function to patch elements without telling it which part of the page to target throws an error only when the page actually runs. A formatting mismatch in a Go function call is not caught by the Go compiler. Sending an empty update can quietly wipe out all of an application's stored state. This tool moves all of these problems from something discovered after the app is running to something caught automatically before that, in a continuous integration pipeline. It installs as a single Go binary and requires Go version 1.26 or newer to install, though using it does not require every project to be written in Go. Once installed, it can check HTML, Templ, TSX, JSX, and plain JavaScript or TypeScript files for attribute mistakes by default, and can additionally be told to inspect Go, Python, or TypeScript backend code for its own set of checks specific to that language's Datastar calls. Running it against a folder produces a list of warnings or errors and returns a simple pass or fail result that other tools, like a build pipeline, can act on. Projects that intentionally use custom data attributes that are not part of Datastar can list them in a small configuration file so the linter stops flagging them, while genuine typos are still reported with a suggested correction. The tool also quietly checks in the background whether a newer version of itself is available and can update itself when asked.
A command line linter that catches Datastar attribute typos and backend SDK mistakes across HTML, Go, Python, and TypeScript before they fail at runtime.
Mainly Go. The stack also includes Go, Python, TypeScript.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.