Flashify is a lightweight and framework-agnostic notification library.
It lets you show clean and animated alerts (success, error, warning, info, custom) in any web app — React, Angular, Svelte, Vue, or plain JavaScript.
- Live demo: https://flashify-react.vercel.app
- Works with any framework (core + simple wrappers)
- Success, Error, Warning, Info, Default, Custom notifications
- Smooth animations and modern UI
- Fully themeable using CSS variables or Tailwind
- Small bundle size and no external dependencies
- Comes with a React wrapper out of the box
npm install @ajmal_n/flashify-coreCopy install command
Using pnpm:
pnpm add @ajmal_n/flashify-corenpm install @ajmal_n/flashify-reactCopy install command
Using pnpm:
pnpm add @ajmal_n/flashify-reactimport { FlashifyProvider, useFlashify } from "@ajmal_n/flashify-react";
--index.tsx (or main.tsx)
ReactDOM.createRoot(document.getElementById("root")!).render(
<FlashifyProvider>
<App />
</FlashifyProvider>
);
function App() {
const flash = useFlashify();
return (
<div>
<button onClick={() => flash.success("Profile updated!")}>
Show success
</button>
</div>
);
}Wrap your app:
<FlashifyProvider>
<App />
</FlashifyProvider>import { flashify } from "@ajmal_n/flashify-core";
flashify.success("Saved successfully!");
flashify.error("Something went wrong");
flashify("Simple message");You can pass options:
flashify.show({
message: "Custom alert",
type: "custom",
durationMs: 6000,
});Flashify uses CSS variables, so you can change colors instantly:
:root {
--flashify-success-bg: #ecfdf5;
--flashify-success-border: #10b981;
--flashify-success-text: #065f46;
}Works perfectly with Tailwind themes too.
flashify/
packages/
core/ - Notification engine (vanilla JS)
react/ - React wrapper
successerrorwarninginfodefaultcustom
flashify(message, options?)
flashify.success(message, options?)
flashify.error(message, options?)
flashify.warning(message, options?)
flashify.info(message, options?)
flashify.custom(message, options?)
flashify.show(options)
flashify.dismiss(id)
flashify.clear()Pull requests are welcome!
You can add wrappers for other frameworks or improve animations/themes.
MIT License
Free for commercial and personal projects.