
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
@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, "info" | "warn" | "error" | "debug"> |
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.
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
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.