# Plugins

> Hook into events and add tools with a small module.

A plugin is a JavaScript or TypeScript file in `.ridge/plugins/`.

```ts
export const Notify = async () => ({
  event: async ({ event }) => {
    if (event.type === "session.idle") console.log("Done")
  },
})
```
