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 🙏

© 2024 – Pkg Stats / Ryan Hefner

sense-js-engine

v0.3.0

Published

JavaScript Engine for Sense.

Downloads

5

Readme

JavaScript Engine for Sense

Build Status

This module implements a JavaScript (NodeJS) engine for Sense using Sense's Engine API. It is preinstalled on Sense.

Sense JavaScript Engine

Installation and Usage

You can install this engine locally using

npm install sense-js-engine

You can test it from the command line using

grunt test

If you install this package in your project's /home/sense, it will override the default JavaScript engine and can be used from Sense.

Implementation Overview

This module provides a complete example of how to implement an engine for Sense.

The engine evaluates code chunks in a subprocess, keeping the main process's event loop relatively free. This allows the engine to receive interrupt events and emit output while code chunks are running.

Each engine must define the chunk method that splits long strings of code into logical units such as statements and block comments. This engine's chunker uses the acorn parser with the comment-chunk-helper package.

While evaluating code chunks, the subprocess generates output, which it sends to the engine according to its type using [process.send](h ttp://nodejs.org/api/child_process.html#child_process_child_send_messa ge_sendhandle). When the subprocess has finished evaluating a code chunk, it sends an output message of type result, indicating that it is ready for the next code chunk.

The engine itself communicates with the frontend using the methods defined in the Engine API.

Support

  • Email: [email protected]
  • Twitter: https://twitter.com/SensePlatform
  • Google Group: https://groups.google.com/forum/?fromgroups#!forum/sense-users
  • IRC: #senseplatform on irc.freenode.net

LICENSE

MIT