frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Tired of Vue toast libraries, so I built my own (headless, Vue 3, TS-first)

1•adrianjanocko•8h ago
Hey folks, author here, looking for feedback.

I recently needed a toast system for a Vue 3 app that was modern, lightweight, and didn’t fight custom styling.

I tried several existing Vue toast libraries and kept running into the same problems: many were Vue 2–only or effectively unmaintained, styling was hard-wired instead of properly themeable, basic features like duplicate handling or timers behaved inconsistently, and composing predictable stacks across positions was harder than it should be.

So I ended up building my own solution and splitting it into two parts: a small headless core (Toastflow) and a Vue 3 renderer on top (vue-toastflow).

The core keeps toast state in a tiny, framework-agnostic store. The Vue package is just a renderer with a ToastContainer component and a global toast helper. The idea was to keep logic and rendering clearly separated and avoid magic.

A few design decisions I focused on: - CSS-first theming. The default appearance is driven by CSS variables (including per-type variables like success/error colors). Swapping design or integrating with Tailwind or daisyUI usually means editing one file, not overriding component internals. - Deterministic behavior. Duplicates, timers, pause-on-hover, maxVisible, stack order (newest vs oldest), and clear-all are all handled centrally so they behave the same everywhere. - Smooth stack animations for all positions (top/bottom, left/center/right), including when items in the middle are removed. This is built with TransitionGroup and can be overridden via config. - A typed API that works inside and outside components. You install the plugin once, then import toast from anywhere (components, composables, services, plain TS modules). Helpers include show, success, error, warning, info, loading, update, dismiss, and dismissAll. - Support for async flows, optional HTML content, lifecycle hooks, events, timestamps, and a headless slot API if you want to render your own toast cards.

Example usage is intentionally boring: install once, render a ToastContainer somewhere, call toast.success(...) where needed.

Links, for anyone curious: - Playground / demo: https://toastflow.adrianjanocko.sk - GitHub: https://github.com/adrianjanocko/toastflow - npm (Vue renderer): https://www.npmjs.com/package/vue-toastflow

An in-depth look at Google's first TPU (2017)

https://cloud.google.com/blog/products/ai-machine-learning/an-in-depth-look-at-googles-first-tens...
1•hbarka•52s ago•0 comments

Video Calls in the Terminal?

https://github.com/svanichkin/say
1•chandanyuva•3m ago•0 comments

Draw anything you want on my desk

https://draw.rhys.dev/
1•rhyssullivan1•4m ago•0 comments

ZenDis: Co-Creating Digital Sovereignty

https://www.zendis.de/en
2•doener•6m ago•0 comments

GNU Taller: Taxable Anonymous Libre Economic Reserves

https://www.taler.net/en/features.html
2•KolmogorovComp•9m ago•0 comments

The Ethical Computing Initiative

https://aol.codeberg.page/eci/
3•iris-digital•9m ago•1 comments

Evidence from the One Laptop per Child Program in Rural Peru

https://www.nber.org/papers/w34495
1•danso•17m ago•0 comments

Using LLMs for Breadcrumbs, Not Code Generation

https://bonniesimon.in/blog/breadcrumbs-approach-to-learning-with-llms
2•bonniesimon•19m ago•0 comments

Potential wolf tool use caught on camera

https://www.youtube.com/watch?v=_Fjo2-sKRTc
3•wjb3•22m ago•1 comments

Show HN: My super fast circular imports checker for TypeScript in Go

https://github.com/jayu/rev-dep
1•jayu_dev•24m ago•0 comments

Show HN: SmokeRand: a new test suite for pseudorandom number generators

https://github.com/alvoskov/SmokeRand
1•Dig386•24m ago•0 comments

Show HN: MemCloud – Pool unused RAM across LAN devices (Rust, zero-config)

https://github.com/vibhanshu2001/memcloud
1•vibhanshugarg•25m ago•0 comments

Pet Activity Tracker Using XIAO BLE Sense and Edge Impulse

https://www.hackster.io/mithun-das/pet-activity-tracker-using-xiao-ble-sense-edge-impulse-858d73
1•eamag•26m ago•0 comments

Show HN: Sherp, a CLI for building presentations from Markdown/MDX

https://github.com/skeptrunedev/sherp
1•skeptrune•27m ago•0 comments

Ask HN: Posted AI book on algorithms–5.3K views, zero sales. What now?

4•lucaherrorpress•27m ago•2 comments

What's the "best" way to version your product?

2•sshadmand•27m ago•1 comments

Show HN: Web CLI – Self-hosted web terminal for local and remote server

https://github.com/pozgo/web-cli
3•polinux•32m ago•1 comments

How this secret data company is powering the AI revolution [video]

https://www.youtube.com/watch?v=dduQeaqmpnI
2•alex_hirner•32m ago•0 comments

Show HN: A Next.js Recreation of the iPadOS Cursor

https://ipados-cursor.vercel.app/
4•SpyCoder77•33m ago•0 comments

Safedom.ai – open-source DOM cleaner for privacy-safe AI browsing

https://github.com/jennifer-ha/SafeDOM.ai
2•jennifer-ha•39m ago•1 comments

You Gotta Push If You Wanna Pull

https://www.morling.dev/blog/you-gotta-push-if-you-wanna-pull/
3•tedyoung•40m ago•2 comments

Web CLI – Self-hosted web terminal for local and remote server management

https://github.com/polinux/web-cli
1•polinux•41m ago•1 comments

Show HN: Handler – A2A Protocol Client CLI and TUI

https://github.com/alDuncanson/Handler
1•alDuncanson•41m ago•0 comments

Residents of these states will live longer

https://thehill.com/homenews/nexstar_media_wire/5636807-residents-of-these-states-will-live-longe...
1•wjb3•43m ago•2 comments

Netflix's $72B Warner Bros Deal: A Defensive Move Driven by Fear, Not Strategy

https://ericlamb.substack.com/p/netflix-warner-bros-and-the-deal
1•ericlamb89•45m ago•0 comments

Determining if a signing entitlement is real or hallucinated

https://developer.apple.com/forums/thread/799000
2•tech234a•46m ago•0 comments

A geothermal amoeba sets a new upper temperature limit for eukaryotes

https://www.biorxiv.org/content/10.1101/2025.11.24.690213v1.full
14•wjb3•47m ago•1 comments

Learn Cutlass the Hard Way

http://www.kapilsharma.dev/posts/learn-cutlass-the-hard-way/
1•qwertyforce•47m ago•0 comments

AI Slop Is Ruining Reddit for Everyone

https://www.wired.com/story/ai-slop-is-ruining-reddit-for-everyone/
7•INGELRII•48m ago•0 comments

Use this website to hit your manager

https://www.hitmymanager.com/
1•estheryang•49m ago•0 comments