Allow Alpine JS in custom attributes?

This is probably a big ask, but I’m thinking to myself how great it would be to drop in some Alpine JS magic in my custom attributes. Since leaving these fields wide open is a security risk, is there a way via filter (or even a hook) to allow other attributes to be added? Alpine practically runs off of attributes, so this may be impractical.

If you’ve never used Alpine, it’s pretty darned cool:

Thanks!