Announcing AshTypescript - Automatic TypeScript type generation for Ash resources and actions

What if you had full stack types for SPAs built with tech like React, Inertia, Vue, Svelte… but all of the power Ash Framework and Elixir on the backend? Well, you can now.:wink: Home — ash_typescript v0.1.0

This is just 0.1.0, but it is the beginning of something big, and frankly something that we’ve been missing for a long time. Can’t wait to see what you all do with it, and a huge shoutout to our newest core team member @Torkan for all of his amazing work!


19 Likes

Very nice! Didn’t see that one coming, and yet it’s perfectly in line with Model your domain, derive the rest. Congratulations @zachdaniel and @Torkan, and thank you!

5 Likes

One command now gets you a React SPA with full-stack types, backed by Ash Framework, Phoenix, and Elixir!:exploding_head: Install and visit localhost:4000/ash-typescript for a handy guide !:smiling_face_with_sunglasses:

Finally, a bridge to the reliability + elegance of Elixir for our React-loving friends!


1 Like

~Not gonna lie, Ash is one of the most confusing products/solutions I have ever encountered. To this day I have no idea what it does. It seems to be the Ethereum of the Elixir world ;).

Ash is less like Ethereum and more like “define your data model once, and the rest of your app (queries, APIs, authorization, etc.) just fall out of it consistently”. Maybe that makes it the Solana of the Elixir world ¯\_(ツ)_/¯?

It has taken me quite a while to wrap my head around Ash fully but that might be because I don’t think I’ve come across anything exactly like it before. Original ideas can be confusing. At least it’s original to me :slight_smile:

2 Likes

I plan to follow the Elixir Mentor tutorial using Ash he introduced, so maybe it will click ;).

1 Like

Definitely has a very steep learning curve. Am going through the Ash book and also building a side-project with it. For me, it is a way of centralising the business model and events that can change the model. It becomes the functional core of the application, the source of truth for your application in the same way the db is a the source of truth for your data. No more repetition of writing schemas and then having to write equivalent migrations etc, and all this barely scratches the surface of all the other capabilities of Ash and its libraries and extensions. What @zachdaniel and the Ash team have produced is quite simply brilliant - and all this made freely available to the Elixir community. Incredible.

1 Like

It seems to be the Ethereum of the Elixir world ;).

Is this your perception having tried it? Or your perception from reading about it online? If the latter, I’d encourage you to break out the keyboard and just try and use it, because it will be infinitely more obvious. Try the live book tutorial linked from the Ash website for some basics: https://ash-hq.org.