PHPackages                             doublesecretagency/craft-cpjs - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. doublesecretagency/craft-cpjs

ActiveCraft-plugin[Utility &amp; Helpers](/categories/utility)

doublesecretagency/craft-cpjs
=============================

Add custom JavaScript to your Control Panel.

3.0.0(2y ago)43163.7k↓27.8%8[1 PRs](https://github.com/doublesecretagency/craft-cpjs/pulls)MITPHP

Since Nov 30Pushed 2y ago1 watchersCompare

[ Source](https://github.com/doublesecretagency/craft-cpjs)[ Packagist](https://packagist.org/packages/doublesecretagency/craft-cpjs)[ RSS](/packages/doublesecretagency-craft-cpjs/feed)WikiDiscussions v3-dev Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (15)Used By (0)

[![Plugin icon](https://raw.githubusercontent.com/doublesecretagency/craft-cpjs/v2/src/icon.svg)](https://raw.githubusercontent.com/doublesecretagency/craft-cpjs/v2/src/icon.svg)

Control Panel JS plugin for Craft CMS
=====================================

[](#control-panel-js-plugin-for-craft-cms)

**Add custom JS to your Control Panel.**

---

Easily insert additional JavaScript into the Craft Control Panel.

After installing the plugin, go to:

- **Settings &gt; Control Panel JS**

Your custom JavaScript can be saved in either (or both) of two places:

**1) An external file in your public directory...**[![](src/resources/img/example-jsFile.png)](src/resources/img/example-jsFile.png)

**2) The "Additional JavaScript" field on the settings page...**[![](src/resources/img/example-additionalJs.png)](src/resources/img/example-additionalJs.png)

You can customize your JavaScript in any way you see fit!

---

File Hashing
------------

[](#file-hashing)

To ensure you get the freshest version of your JS, a cache-busting hash is appended to the end of each file reference.

This can be disabled by setting `cacheBusting` to **false** in the [PHP config file](https://github.com/doublesecretagency/craft-cpjs/blob/v2/src/config.php)...

```
// Disable hash-based cache busting
'cacheBusting' => false
```

See config file for usage instructions.

---

Anything else?
--------------

[](#anything-else)

We've got other plugins too!

Check out the full catalog at [plugins.doublesecretagency.com](https://plugins.doublesecretagency.com)

**On behalf of Double Secret Agency, thanks for checking out our plugin!** 🍺

 [![Logo for Double Secret Agency](https://camo.githubusercontent.com/e834ce35abc7cbeca17d458aba00fae271f59507ddf73fa2dfff1bee091b22ea/68747470733a2f2f7777772e646f75626c657365637265746167656e63792e636f6d2f7265736f75726365732f696d616765732f6473612d7472616e73706172656e742e706e67)](https://camo.githubusercontent.com/e834ce35abc7cbeca17d458aba00fae271f59507ddf73fa2dfff1bee091b22ea/68747470733a2f2f7777772e646f75626c657365637265746167656e63792e636f6d2f7265736f75726365732f696d616765732f6473612d7472616e73706172656e742e706e67)

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity44

Moderate usage in the ecosystem

Community15

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 90.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~189 days

Recently: every ~172 days

Total

13

Last Release

818d ago

Major Versions

v2.x-dev → 3.0.02024-02-21

### Community

Maintainers

![](https://www.gravatar.com/avatar/b9ec4fd6e26eb61622c4e869ab85bc19af660fbba9c0679a86c7cb39ac980c2a?d=identicon)[lindseydiloreto](/maintainers/lindseydiloreto)

---

Top Contributors

[![lindseydiloreto](https://avatars.githubusercontent.com/u/5309692?v=4)](https://github.com/lindseydiloreto "lindseydiloreto (37 commits)")[![khalwat](https://avatars.githubusercontent.com/u/7570798?v=4)](https://github.com/khalwat "khalwat (2 commits)")[![bencroker](https://avatars.githubusercontent.com/u/57572400?v=4)](https://github.com/bencroker "bencroker (1 commits)")[![nickolasjadams](https://avatars.githubusercontent.com/u/15788998?v=4)](https://github.com/nickolasjadams "nickolasjadams (1 commits)")

---

Tags

control-panel-jscraftcraftcmsjavascriptjavascriptcmsCraftcraftcmscraft-plugincp-js

### Embed Badge

![Health badge](/badges/doublesecretagency-craft-cpjs/health.svg)

```
[![Health](https://phpackages.com/badges/doublesecretagency-craft-cpjs/health.svg)](https://phpackages.com/packages/doublesecretagency-craft-cpjs)
```

###  Alternatives

[doublesecretagency/craft-cpcss

Add custom CSS to your Control Panel.

117454.0k9](/packages/doublesecretagency-craft-cpcss)[verbb/navigation

Create navigation menus for your site.

90683.7k17](/packages/verbb-navigation)[verbb/formie

The most user-friendly forms plugin for Craft.

101372.9k40](/packages/verbb-formie)[verbb/comments

Add comments to your site.

13753.1k](/packages/verbb-comments)[verbb/tablemaker

Create customizable and user-defined table fields.

40168.8k1](/packages/verbb-tablemaker)[supercool/tablemaker

Create customizable and user-defined table fields.

40141.7k](/packages/supercool-tablemaker)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
