> For the complete documentation index, see [llms.txt](https://db.coolstone.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://db.coolstone.dev/3/extensions/create.md).

# Create

## Create

If you want to create a Plugin to publish on NPM, copy the code below and put the source in the exported method.

{% hint style="info" %}
Write your plugins in Commonjs to allow either Commonjs or ESM support!
{% endhint %}

{% code title="new\_extension.js" overflow="wrap" lineNumbers="true" %}

```javascript
module.exports = (database, record) => {
// database & record can be null, depending on the permissions. Be sure to be able to handle that!
}
```

{% endcode %}

## Publish

If you want to add it to our Extension Finder, publish it to npm with `dubnium` as a keyword.
