aditya7iyengar
Rummage.Ecto and Rummage.Phoenix provide ways to perform Searching, Sorting and Pagination over Ecto queries and Phoenix collections.
For more details visit this blog
Here’s a little demo:

Trending in Announcing
The repo is at GitHub - cyberchitta/openai_ex: Community maintained Elixir library for OpenAI API · GitHub.
Docs are at OpenaiEx User Gu...
New
WebAuthnLiveComponent WebAuthnComponents
See this post about renaming the package.
Passwordless authentication for Phoenix LiveView app...
New
Edit: 2026 May 15 - This post is archived.
Mob is alive!!
Main docs: mob v0.7.11 — Documentation
A bit of explanation for the slightly c...
New
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
Castle is a package I put together to assist with building Elixir releases capable of being live-upgraded via the ‘official’ release hand...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Storex is a frontend store with state management handled on the backend. It allows you to update the store state both from the frontend a...
New
Other Trending Topics
A little off-topic, but I feel like people here have a good head on their shoulders.
I used to be quite good at making software. Was luc...
New
Hey. Is there anyone here who creates agents in their apps? Not talking about using agents, but creating them. I’m finding it pretty diff...
New
There has been a thread to discuss the Stack Overflow Developer Survey on this forum every year since 2018, so here’s yet another one for...
New
I love Elixir. It’s one of 2 programming languages I’ve ever fallen in love with.
But I don’t use it anymore.
Serverless was the promis...
New
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, I’m not sure which exactly)
AI dream has many faces, but general...
New
What IDE or editor are you using for Elixir development?
Personally, I use Zed, and I really like it, but sometimes I wish there were a ...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #ai
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #blog-post
- #elixirconf-us
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #elixirconf-eu
- #api
- #forms
- #security
- #metaprogramming










Showing Posts 1 to 9- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
aditya7iyengar
Hi everyone!
I wrote a library which provides ways to perform Searching, Sorting and Pagination over
Ectoqueries andPhoenixcollections:Rummage.Rummagehas been split into two libraries:Rummage.EctoandRummage.Phoenix.Rummageis aRansack-like library, which is designed in the Elixir way. Which means no defining functions on the models, transparency and configurability!Rummagecomes with a lot of powerful features which are available right away, without writing a bunch of code. Here are a few blogs that talk about how to useRummagein aPhoenixor anEctoapplication:Rummagedemo & basicsRummage.EctoRummage.Phoenix(Rummage.EctowithHTML)Let me know if you have any thoughts on Rummage!
Thank you!
Here’s a little demo:

brightball
Does it account for We need tool support for keyset pagination
aditya7iyengar
Very interesting! I agree with the implementation problems with offset, however I question the cost of adding it to
Rummage.Ectovs the benefits it will provide. However, it would be fun to implement a custom hook for that. This is precisely why I madeRummage.Ectoconfigurable, which means you can write a simple pagination hook to do what you’re saying, while using its Search and Sort hooks with all the HTML support.michalmuskala
This looks like a great project - it has several issues, though (I’m speaking only about the ecto part - haven’t looked at others yet).
It injects a lot of code and functions inside
__using__/1- it is considered a bad practice. This leads to multiple issues - including slower compilation and inferior debugging experience.It also couples schema to the repo module, which is something ecto actively avoids.
As an alternative, I could easily imagine a pure function-based interface, for example:
The schema can be easily extracted from the query:
One thing to note, though is that the schema can be
nil, since it’s not required, but I also don’t see really a reason why it would be needed.aditya7iyengar
That’s a great suggestion! It will be great to not have a lot of code in
__using__/1. I guess I have some work to do over this week. Thanks for your input!tmbb
Are you still working on an API that avoids hardcoding the Repo in the config? I’d like to use Rummage in an admin framework for Phoenix, but being limited to a single repo which one must specify in the config is a big NO…
wlminimal
Does Rummage.Phoenix support phoenix 1.3?
db8
Doesn’t look like it supports Phoenix 1.3 (or 1.4):
HotAndWild
I am new to Elixir Phoenix, I tried to implement Rummage.ecto but failed to make it work in Phoenix v1.6. Is there an available demo of this library that runs in Phoenix v1.6?