amplifiedai

A protocol-based PubSub abstraction for Phoenix LiveView.

19
0
100% credibility
Found Mar 22, 2026 at 19 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Elixir
AI Summary

Amplified.PubSub is a library that simplifies broadcasting and handling real-time updates in interactive web applications using a protocol-based abstraction.

How It Works

1
🕵️ Discover the tool

While building an interactive web app where changes should appear instantly for everyone, you find this handy helper that makes real-time updates a breeze.

2
📦 Add it to your app

You simply include this tool in your project with one easy step, and it's ready to use.

3
🔧 Prepare your data items

You tell your main data pieces, like blog posts or user profiles, to join the sync system by adding a short line to each.

4
Broadcast changes effortlessly

Now, whenever you create, update, or delete something, the tool automatically notifies everyone watching with zero extra hassle – it fits right into your save routines.

5
📱 Connect your live pages

You set up your interactive pages to listen for these updates using a simple hook that works across all your pages at once.

🎉 Enjoy live updates everywhere

Your app comes alive: changes from one user instantly refresh for everyone on any page, feeling seamless and magical.

Sign up to see the full architecture

4 more

Sign Up Free

Star Growth

See how this repo grew from 19 to 19 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is amplified_pubsub?

Amplified_pubsub is a protocol-based PubSub abstraction for Phoenix LiveView apps in Elixir. It wraps Phoenix.PubSub to let you broadcast, subscribe, and handle messages uniformly with Ecto structs, {:ok, struct} tuples, lists, or raw channels—dropping seamlessly into context pipelines like Repo.insert |> broadcast(:created). Developers get real-time updates across LiveViews without per-view boilerplate, via schema opt-ins and global on_mount hooks.

Why is it gaining traction?

It stands out by making PubSub pipeline-friendly and extensible via protocols, so Ecto ops broadcast on success only, and schemas can define shared event handlers like auto-updates or redirects. LiveView hooks wire handling globally, cutting duplication, while extras like flash support, telemetry events, and namespaced channels handle real-world needs. Devs try it for the "just works" simplicity in multi-resource apps.

Who should use this?

Phoenix LiveView builders syncing data across views, like dashboard teams updating user profiles or posts in real-time without custom handle_info everywhere. Context-heavy apps with Ecto pipelines benefit most, especially those scaling to multiple LiveViews per resource. Avoid if you're not in Elixir or need non-LiveView PubSub.

Verdict

Grab it for prototypes or small LiveView apps—19 stars and 1.0% credibility score signal early days, but solid README, HexDocs, and telemetry make it low-risk to test. Mature apps might wait for more adoption.

(187 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.