
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
Simplify generated code and automated tasks.
DevBee is a powerful devtool designed to streamline your development workflow. Imagine having a team of worker bees that handle repetitive tasks for you! With DevBee, you can run custom functions whenever a file changes, automating processes like adding copyright headers, autogenerating types, and more. The possibilities are endless. Plus, DevBee supports plugins, allowing you to share your bees with fellow developers
Install DevBee using your preferred package manager:
npm install devbee # npm
yarn add devbee # yarn
bun add devbee # bun
pnpm add devbee # pnpm
Create a devbee.config.ts file in your project’s root directory. Add the following content:
import type { DevBeeConfig } from "devbee";
import fs from "fs/promises";
const COPYRIGHT_HEADER = `/**
* Copyright (c) Test
*/`;
const config: DevBeeConfig = {
plugins: [
// Add your plugins here
],
bees: [
// Define your bees (tasks to run on file change)
{
paths: "./**/*.ts",
name: "Add Copyright Header",
// Function that runs on each file change
buzz: async ({ contents, path }) => {
if (contents.startsWith(`/**`)) return;
await fs.writeFile(path, `${COPYRIGHT_HEADER}\n${contents}`, "utf-8");
},
},
],
};
export default config;
:tada: You’re all set! DevBee empowers you to automate mundane tasks, leaving you more time to focus on what matters—building great software.
type DevBeeConfig = {
// Explore Plugin Docs for more info
plugins: DevBeePlugin[];
// An array of bees (tasks to run on file change)
bees: Bee[];
};
// Think of a bee as something you create once; it performs the same task repeatedly whenever a file changes.
type Bee = {
// Paths to watch for changes (can be a glob pattern)
paths: string | string[];
// Name of the plugin
name: string;
// Async function that runs on each file change
buzz: (params: { contents: string; path: string }) => Promise<void>;
};
paths (string or array of strings). Paths to files, dirs to be watched recursively, or glob patterns.
buzz Argumentscontents: The contents of the file that was changed.
path: The path of the file that was changed.
FAQs
> Simplify generated code and automated tasks.
We found that devbee demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.