
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
@goauthentik/esbuild-plugin-live-reload
Advanced tools
ESBuild + browser refresh. Build completes, page reloads.
ESBuild Plugin Live Reload
An ESBuild development plugin that watches for file changes and triggers automatic browser refreshes.
npm install -D @goauthentik/esbuild-plugin-live-reload
# Or with Yarn:
yarn add -D @goauthentik/esbuild-plugin-live-reload
import { liveReloadPlugin } from "@goauthentik/esbuild-plugin-live-reload";
import esbuild from "esbuild";
const NodeEnvironment = process.env.NODE_ENV || "development";
/**
* @type {esbuild.BuildOptions}
*/
const buildOptions = {
// ... Your build options.
define: {
"process.env.NODE_ENV": JSON.stringify(NodeEnvironment),
},
plugins: [
/** @see {@link LiveReloadPluginOptions} */
liveReloadPlugin(),
],
};
const buildContext = await esbuild.context(buildOptions);
await buildContext.rebuild();
await buildContext.watch();
Add the following import near the beginning of your application's entry point.
if (process.env.NODE_ENV === "development") {
await import("@goauthentik/esbuild-plugin-live-reload/client");
}
That's it! Your browser will now automatically refresh whenever ESBuild finishes rebuilding your code.
authentik is an open source Identity Provider that unifies your identity needs into a single platform, replacing Okta, Active Directory, and Auth0.
We built this plugin to streamline our development workflow, and we're sharing it with the community. If you have any questions, feature requests, or bug reports, please open an issue.
This code is licensed under the MIT License
| Property | Type |
|---|---|
dispatcher | EventTarget |
logger? | Pick<BaseLogger, "warn" | "error" | "debug" | "info"> |
pathname | string |
RequestHandler<> = (
req,res) =>void
| Type Parameter |
|---|
| Parameter | Type |
|---|---|
req | http.IncomingMessage |
res | http.ServerResponse |
void
liveReloadPlugin(
options?):Plugin
Creates a plugin that listens for build events and sends them to a server-sent event stream.
| Parameter | Type | Description |
|---|---|---|
options? | LiveReloadPluginOptions |
Plugin
Renames and re-exports liveReloadPlugin
createRequestHandler(
options):RequestHandler
Create an event request handler.
| Parameter | Type | Description |
|---|---|---|
options | EventServerInit |
node
FAQs
ESBuild + browser refresh. Build completes, page reloads.
The npm package @goauthentik/esbuild-plugin-live-reload receives a total of 1,554 weekly downloads. As such, @goauthentik/esbuild-plugin-live-reload popularity was classified as popular.
We found that @goauthentik/esbuild-plugin-live-reload demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.