Sure, but the point of any library really is to provide a consistent way of doing things.
Datastar is quite a small library and all it is doing is giving you a nice repeatable way to organize the stuff you’ll do with your TypeScript slop.
If you intentionally don’t use a library or framework, humans generally eventually reproduce one, often very poorly.
AI doesn’t even try, it just slops and barfs and writes until something works