npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

iobroker.javascript

v10.1.2

Published

Rules Engine for ioBroker

Downloads

14,612

Readme

Logo

Javascript Script Engine

Number of Installations Number of Installations NPM version

Test and Release Translation status Downloads This adapter uses Sentry libraries to automatically report exceptions and code errors to the developers. For more details and for information how to disable the error reporting see Sentry-Plugin Documentation! Sentry reporting is used starting with js-controller 3.0.

Executes Javascript, Typescript Scripts.

Documentation

Changelog

10.1.2 (2026-08-24)

  • (@GermanBluefox) Added new rule blocks
  • (@krobipd) Fixed saving of Blockly scripts under Blockly 13: a script containing a named timeout, interval or schedule could not be saved anymore - the save button did not appear (#2349)
  • (@krobipd) Fixed saving of Blockly scripts containing a function with a return value and no statements (#1958)
  • (@krobipd) The Blockly regression tests now also cover saving: every block is serialized the way the editor does it and reloaded to the same code
  • (@krobipd) When a block fails while the script is regenerated after a change, the editor now shows the error instead of silently never offering the save button; a failing export shows its error too

10.1.1 (2026-08-24)

  • (@GermanBluefox) The credentials of the central storage (Basic settings -> Credentials) are available in the scripts as SECRETS, e.g. SECRETS.CameraPassword.key. The values are decrypted, read-only and are updated live when a credential is edited in the admin UI
  • (@GermanBluefox) The editor knows the credentials that exist: after SECRETS. it offers their names, and after the next dot exactly the fields the selected credential has
  • (@GermanBluefox) Added the Blockly block "credential", which reads one field of the central credential storage
  • (@GermanBluefox) The instance settings list the available credentials with their fields and the expression a script uses for them

10.1.0 (2026-08-16)

  • (@GermanBluefox) Turned strict off again for the scripts, as TypeScript 6 enables it by default
  • (@GermanBluefox) Added the tab "TypeScript" to the settings, where the compiler options for the scripts can be configured
  • (@GermanBluefox) Added snapshot tests for the Blockly code generation (npm run test:blockly)
  • (@GermanBluefox) Removed two leftover .only markers that had disabled almost the whole test suite
  • (@GermanBluefox) Pinned the line endings of transformed TypeScript sources to LF, so a compiler update cannot rewrite every script
  • (@GermanBluefox) Moved the micro benchmarks into npm run test:performance, as they measure relative speed against timeouts and cannot block a build
  • (@GermanBluefox) Updated Blockly from 11.1.1 to 13.2.1. The generated code is unchanged
  • (@GermanBluefox) updateBlockly.js now copies from the installed npm package instead of cloning the git master branch, so the shipped Blockly version is reproducible
  • (@GermanBluefox) Blockly is now bundled from the npm package instead of being loaded as vendored script tags. Custom blocks of other adapters keep working unchanged
  • (@GermanBluefox) Removed 828 kB of vendored Blockly code from the repository
  • (@GermanBluefox) Converted all block definitions from JavaScript to TypeScript. The generated code is unchanged
  • (@GermanBluefox) Fixed the object blocks under Blockly 13: the attribute rows were no longer right-aligned, and editing the attributes of an "object" block threw
  • (@GermanBluefox) Dropped the dead field editor code of the CRON and script fields, which had been written against Blockly 1.x
  • (@GermanBluefox) Fixed the multi-and/multi-or blocks under Blockly 13, which threw when their conditions were edited
  • (@GermanBluefox) Removed a phantom block type "Convert" that a stray assignment in the conversion blocks had registered
  • (@GermanBluefox) Added BLOCKLY_TS.md for adapter developers: what Blockly 13 changed for custom blocks and how to write them in TypeScript
  • (@GermanBluefox) Moved the Blockly translations into words.json and typed the lookup helpers
  • (@GermanBluefox) Redesign of Rules
  • (@GermanBluefox) Added a wizard to the rule editor that builds a rule step by step - trigger, condition and action are configured in place, and the last step shows the finished rule
  • (@GermanBluefox) The wizard opens by itself for a newly created rule - once, and not for a duplicated one. Afterwards it stays available in the block palette
  • (@GermanBluefox) Fixed the type declarations of 3rd party libraries: they were placed under the name the library has on disk while their package.json went to the name the scripts import, so TypeScript never connected the two and everything imported from such a library was any (#2341)
  • (@GermanBluefox) Stopped wrapping a library's declarations in declare module, which cut a barrel file off from what it re-exports. Declarations that are not a module themselves are still wrapped
  • (@GermanBluefox) Fixed following the imports inside a declaration file: only the first import of a file was followed, and only if it was on the first line. For rxjs 6 that loaded 6 of its ~800 declaration files
  • (@GermanBluefox) Side effect imports (import "./x";) inside a declaration file are now followed as well. @iobroker/types consists of nothing else, so the ioBroker.* types were missing in scripts and in the editor
  • (@GermanBluefox) A definition file that cannot be read no longer discards all type declarations of its package
  • (@GermanBluefox) Added regression tests for the type declarations of 3rd party libraries, which compile against them and insist that wrong code is rejected
  • (@GermanBluefox) createState now stringifies common.def of an object, json or array state, as js-controller expects it and as setState already does with the value. Creating such a state with an initial value no longer warns "Default value has to be stringified" (#2307)
  • (@GermanBluefox) Documented that an object in the second position of createState is always the common, and how to give a state a non-primitive initial value
  • (@GermanBluefox) Restored the check of the mirror path in the instance configuration. It was lost when the admin configuration moved to jsonConfig.json, so a forbidden path was accepted without a word and only refused later in the log (#2296)
  • (@GermanBluefox) The mirror path field now explains what the directory has to be, and suggests one
  • (@GermanBluefox) Scripts are no longer deleted from the database when the mirror directory as a whole becomes unreachable, e.g. because a share is not mounted
  • (@GermanBluefox) Libraries that name their declarations through an exports map are typed now. Their legacy types field is often a stub pointing at a file that does not exist - rxjs 7 is one - which left everything imported from them as any (#928)
  • (@GermanBluefox) The declarations of a library are laid out around its entry point, so moduleResolution: node10 finds it even when they live in a subdirectory
  • (@GermanBluefox) The manifest handed to TypeScript describes that layout instead of the one on disk. An exports map pointing at paths that do not exist there made TypeScript refuse the library altogether
  • (@GermanBluefox) The package.json of a library is read from disk instead of through Node, which refuses it when the library does not export it
  • (@GermanBluefox) Fixed the mirror tests on macOS. They asserted on the first event a watcher reported, while fs.watch there works at directory granularity and sends an event for the watched directory before the one for the file. They now wait for the change they are about, and say what arrived instead if it never comes
  • (@GermanBluefox) Made the mirror tests independent of how long a watch takes to arm. The change under test is repeated while waiting, so it cannot be made before the watcher is listening - the same commit produced a green and a red macOS job over that
  • (@GermanBluefox) Added a wizard to the rule editor that builds a rule step by step - trigger, condition and action are configured in place, and the last step shows the finished rule

10.0.0 (2026-08-04)

  • (@GermanBluefox) TypeScript 6 support
  • (@GermanBluefox) GUI was migrated to React 19 and MUI 9
  • (@GermanBluefox) Showed the host name in the instance selection dialog

9.3.1 (2026-06-18)

  • (@GermanBluefox) Added the possibility to execute one-way scripts without saving it

License

The MIT License (MIT)

Copyright (c) 2014-2026 bluefox [email protected],

Copyright (c) 2014 hobbyquaker

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.