Ash Framework

AF

Ash Framework

The Elixir backend framework for unparalleled productivity. Declarative tools that let you stop wasting time. Use with Phoenix LiveView or build APIs in minutes for your front-end of choice.

Join

support

showcase

today-i-learned

`:shared` context | automatically passing context to child actions

As part of the upcoming Ash.Scope capabilities, I decided to tackle something we've wanted for quite some time, which is the ability for some context to automatically be passed down to child actions & actions called from hooks. This will soon be in main. Here is the relevant docs: Context...

`Ash.Scope` PR has been merged, allowing you to group actor/tenant/context into a single value

See the PR and docs from the PR here: https://github.com/ash-project/ash/pull/2050 Anyone who wants to set this up in AshAuthentication installer LMK, and AshPhoenix installers could also react to the presence of a module called MyApp.Scope and swap out the current_user logic for scope....

I'm joining the EEF Board

And I encourage anyone here who can to support them, both by joining as a member (paying if you can afford it) and by participating in the working groups 😎 https://bsky.app/profile/zachdaniel.dev/post/3lpkb4p7cd22t...

AshCommanded: Declarative CQRS and ES patterns for Ash

Some people would call me slow...I would have to agree as it took me only a few decades to finally contribute back to the open-source community. This extension will let you declare commands, events, etc inside your resources and will generate the modules required for integration with the Commanded library at runtime for you. https://hexdocs.pm/ash_commanded/readme.html...

hapësirë - quote collection with a simple API

a quotes/sayings/proverbs collection with a simple API made with 💜, Ash, Plug and Slime - https://hapesire.kira.computer/ there is a personal coding challenge that i started randomly almost 4 years ago. the main point is to make a CLI utility that fetches random quotes and sayings from one API, formats them in an unsophisticated way: basic colors with ANSI codes and text wrapping by specific width. basically i've been making the same utility in different programming languages preserving the style and some key features however this API is really and i mean really old and has some problems like malformed json responses - apostrophes are escaped for some reason while double quotes are not. i haven't noticed the second issue in all these years until recently. how would you fix unescaped double quotes inside a string in some JSON? by reinventing the wheel with too much effort and pain... and fixing escaped apostrophes was not a problem for me a few weeks ago i was going to make the same utility in Gleam. i paused and thought for a moment on how i would tackle this issue with malformed JSON responses? by using XML or plaintext responses instead (again)? after a quick search for libraries, i got annoyed, frustrated and angry thinking of making such an API myself (there are no other good alternatives)...
No description

Our new book "Domain Modeling with Ash Framework" is out now!

Hey Ash folks! I'm excited to share that our new book Domain Modeling with Ash Framework is now live! 🎉 Grab it from https://devcarrots.com/ with a 20% special launch week discount (offer ends in 2 days)! This book is packed with 150+ practical, real-world tasks, walking you through how to build a full-featured project management app using Ash – models, relationships, migrations, queries, and more! People are loving the book so far! Here's what readers are saying:...

My proof of concept project (FleetMS) built with Ash

Not sure if it's fine to post here since its archived. I have been working on a personal project related to Fleet Maintenance and Management. Its a proof of concept, a learning thing, more like 40% complete. I have decided I will to rewrite it from scratch, it will be open source and will be building publicly. I hope from this I will learn a lot through collaboration, feedback e.t.c, and end up with something that can be used/adopted, or used as a reference for me and others and an awesome project I can put on my resume. In terms of licensing the only restriction I think I should put and is perhaps fair is preventing someone from taking the project and offering it as a SaaS(that's reserved for me), but they can sell it to individual clients. The end goal with regards to features is adding Fleet Telematics(companies love that very much), e.g third party integrations like Geotab, or streaming CAN Bus data from a vehicle with devices from CSSElectronics into the app, or build my own experimental vehicle tracking device, it could make a good IoT project using Nerves and all Elixir goodness 😀 . But first I need to get the "boring" stuff implemented first as you can see in the demo. So am asking from your thoughts on this. Here are credentials for the app(this won't running forever, I might turn it off on Tuesday😀 ), and please for the sake of accessibility don't use it on your phone 😅 link: https://fleetms.fly.dev email: superuser@fleetms.com...

Tutorial: belongs_to in 2 minutes

I uploaded a video tutorial how to configure and use belongs_to. https://www.youtube.com/watch?v=lP8YtkXD3RE...