
Security News
/Research
Popular node-ipc npm Package Infected with Credential Stealer
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.
@replit/vite-plugin-dev-banner
Advanced tools
A Vite plugin that injects a development preview banner on `*.replit.dev` domains during development. The banner warns users that they're viewing a temporary development preview.
A Vite plugin that injects a development preview banner on *.replit.dev domains during development. The banner warns users that they're viewing a temporary development preview.
vite serve)*.replit.dev domainsnpm install @replit/vite-plugin-dev-banner
# or
pnpm add @replit/vite-plugin-dev-banner
Add the plugin to your vite.config.ts:
import { defineConfig } from 'vite';
import { devBanner } from '@replit/vite-plugin-dev-banner';
export default defineConfig({
plugins: [
...(process.env.NODE_ENV !== "production" &&
process.env.REPL_ID !== undefined
? [
await import("@replit/vite-plugin-dev-banner").then((m) =>
m.devBanner(),
),
]
: []),
// other plugins
],
});
That's it! The banner will automatically appear when:
vite dev or vite serve)*.replit.dev domainThe plugin:
/@vite-plugin-dev-banner/banner-script.js via Vite's dev server<script> tag in the HTML head that loads this scriptFAQs
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.

Security News
/Research
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.

Security News
TeamPCP and BreachForums are promoting a Shai-Hulud supply chain attack contest with a $1,000 prize for the biggest package compromise.

Security News
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.