virinchi_cv

virinchi_cv

LiveTable - Interactive Tables for Phoenix LiveView

Introducing LiveTable - Interactive Tables for Phoenix LiveView

Hello Elixir community! :waving_hand:

I’m excited to announce the release of LiveTable, a comprehensive table component library built specifically for Phoenix LiveView applications. LiveTable aims to simplify the implementation of complex, interactive data tables while maintaining the real-time capabilities that make LiveView great.

Key Features

  • Rich Filtering System

    • Text search across multiple fields
    • Range filters for numbers, dates, and datetimes
    • Boolean filters with custom conditions
    • Select filters with static and dynamic options
    • Multi-column filtering support
  • Smart Sorting

    • Multi-column sorting with shift-click support
    • Sortable associated fields
    • Customizable sort directions
  • Export Capabilities

    • Background processing with Oban
    • CSV exports using NimbleCSV
    • PDF exports using Typst
  • Real-time Updates

    • Instant filter feedback
    • Seamless LiveView integration
  • Flexible Pagination

    • Configurable page sizes
    • Dynamic page navigation
    • Efficient database querying

Getting Started

Add to your dependencies:

def deps do
  [
    {:live_table, "~> 0.2.0"}
  ]
end

Check out our GitHub Repository for complete documentation and examples.

Why LiveTable?

We built LiveTable to address the common need for interactive data tables in Phoenix applications. It provides a robust, out-of-the-box solution that’s both powerful and easy to implement. Whether you’re building an admin panel or a data-heavy user interface, LiveTable handles the complexity while you focus on your application logic.

Demo Application

A live demonstration of LiveTable’s capabilities is available at livetable.gurujada.com. The demo showcases LiveTable’s performance and scalability by managing 1 Million rows with:

  • Real-time filtering
  • Multi-column sorting
  • CSV and PDF export capabilities

The demo application’s source code is hosted at Git Link for reference and learning purposes.

LiveTable Demo Screenshot

An advanced demo app to showcase livetable’s flexibility giving you complete control over the table, fields and queries is located at JOSAA App.

Josaa is the unified seat allocation board for engineering colleges in India. Students often struggle with choosing the right branch in the right college. This demo app helps to alleviate their problems by filtering colleges based on the student’s rank. All the datatables, card views in this app are powered by LiveTable.

JOSAA App’s git link can be found here- Josaa app github

Feedback Welcome!

We’d love to hear your feedback! Feel free to:

  • Try it out and share your experience
  • Report any issues you encounter
  • Suggest features you’d like to see
  • Contribute to the project

Hex Package

Looking forward to see what you build with LiveTable!

Most Liked

egze

egze

Please consider adding a screenshot how it looks like. Extra bonus if it’s a hosted page with real data. Thanks

virinchi_cv

virinchi_cv

LiveTable Major Update: Complete Flexibility & Custom UI Control

Hey everyone! :waving_hand:

Following up on the initial LiveTable announcement - we’ve shipped some major improvements based on real-world usage and feedback.

The Problem We Faced

Building with LiveTable, we realized that having the library generate queries was a lot tougher than anticipated. We kept running into walls with:

  • Complex business logic integration
  • User permissions and access control
  • Custom filtering scenarios that didn’t fit standard patterns
  • Advanced query requirements (joins, aggregations, nested associations)

The Solution: Full User Control

We decided to pivot completely and give full control back to you, the developer:

:small_blue_diamond: Query Freedom

  • Define ANY Ecto query you want
  • Add filters to your custom queries
  • Full control over joins, conditions, and data transformation

:small_blue_diamond: Custom UI Mode

  • Completely replace our UI components with your own
  • Card mode with custom layouts and styling
  • Custom headers, content, and pagination components
  • Perfect for design systems and branded interfaces

:small_blue_diamond: Streams vs Assigns Choice

  • Use Phoenix streams for optimal performance
  • Or stick with traditional assigns if that fits your architecture
  • Seamless switching between modes

:small_blue_diamond: Transformers - The Game Changer

This is the most powerful feature we’ve added:

  • Complete query control with any input/DOM element
  • Custom sort orders via select menus
  • Complex filtering logic that was impossible before
  • Stateful filters that remember context across requests

:small_blue_diamond: URL State Persistence

The icing on the cake - URL remembers everything:

  • Filter states persist across page refreshes
  • Shareable URLs with exact table state
  • Bookmarkable filtered views
  • Works with all new features seamlessly

Real-World Success

We’re using this in production for an advanced college counselling platform with:

  • Complex rank calculations based on institution types
  • Multiple transformers working together
  • Custom header with integrated filtering UI
  • Card mode with rich college information display
    This app serves as an advanced demo of LiveTable.
    Check it out at Josaa App
    Git Repo of Josaa App- Git Link

What This Means for You

  • Simple tables: Still incredibly easy with schema: parameter
  • Complex applications: Now possible with complete flexibility
  • Custom designs: Full UI control without fighting the framework
  • Business logic: Implement any filtering/sorting logic you need

The documentation has been completely rewritten with real-world examples, comprehensive API reference, and step-by-step guides.
The demo application has been moved to https://livetable.gurujada.com

v0.3 will be released on hex shortly. Check it out on git right now!

Excited to see what you all build with this!

What complex table requirements are you struggling with? We’d love to hear how these new features might help! Or any new feature requests!

virinchi_cv

virinchi_cv

Deployment to fly in progress…

Where Next?

Popular in Announcing Top

josevalim
Yes, yet another parser combinator library! Most of the parser combinators in the ecosystem are either compile-time, often using AST tra...
159 19103 141
New
devonestes
Introducing assertions, the library that helps you write really great test assertions! GitHub: https://github.com/devonestes/assertions ...
New
mplatts
With HEEX released we decided to start a components library using Tailwind CSS - check it out here: Petal Components. We also have a boi...
New
mikehostetler
I’m excited to announce Jido, a framework providing foundational primitives for building autonomous agent systems in Elixir. While develo...
New
mtrudel
Bandit is an HTTP server for Plug and WebSock apps. Bandit is written entirely in Elixir and is built atop Thousand Island. It can serve...
New
alisinabh
Hey everyone i’ve developed a library for Jalaali calendar for elixir which supports converting Gregorian dates to Jalaali and vice vers...
New
woutdp
Hi! I wanted to introduce my latest project LiveSvelte. It allows you to render Svelte inside LiveView with end-to-end reactivity. It’s ...
New
ahamez
Hi everyone, I’ve been working on this protobuf library for 3 years. We use it in the company I work for, EasyMile, to communicate with ...
New
markmark206
simple_feature_flags is a tiny package that lets you turn features on or off based on which environment (e.g. localhost, staging, product...
New
michalmuskala
Hello everybody. I have just released Jason - a new JSON library. You might be wondering, why do we need a new library? The primary foc...
New

Other popular topics Top

aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New
grych
Hi folks, Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
639 52238 488
New
baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
nobody
Hi! In PHP: $SERVER['SERVERADDR'] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New
boundedvariable
I am going through the kafka architecture. All the features what the kafka is providing are already in Erlang. I would like hear your opi...
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
AstonJ
Please see the new poll here: Which code editor or IDE do you use? (Poll) (2022 Edition) It’s been a while since we first asked this, I...
208 31107 143
New
axelson
This post is a wiki (feel free to hit the edit button near the bottom right of this post to add your own changes!) This post collects co...
239 47849 226
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New

We're in Beta

About us Mission Statement