Socket
Book a DemoInstallSign in
Socket

fire-and-forget

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fire-and-forget

A daemon for collecting user actions.

0.0.2
latest
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Fire and Forget Build Status

A simple daemon for storing generic actions and storing them in MongoDB tables. It uses UDP so that the application sending the data has very little overhead. It can literally toss actions into the wind and this daemon will try it's best to pick them up and store them for later retrieval.

Reasoning

We needed a way to store user interactions on our website, tied to particular users. While statsd is great for metrics and anonymous data, it didn't help us for this more targeted data. This little app copies the idea, while making it domain specific.

How it Works

Send a JSON message to the open UDP socket that Fire and Forget opens. The message should have the following format:

{
  objectType: 'modelName',
  objectId: 1,
  objectDetails: { nestedJSON },
  action: 'thing',
  actionDetails: { nestedJSON }
}

The objectType will have 'fnf-' prepended to it and used as the collection name. All of the other fields will be inserted as a new record into that collection as given.

Passphrases

Optionally, you can require a passphrase for every action that's sent to the daemon. This passphrase can be set in the server (via the -k command line option), and also must be added to the "passphrase" key of every JSON action sent.

Installation

  • Install node.js

  • npm install

  • Start the daemon

    node fire-and-forget

Help

Use fire-and-forget --help to see the various options.

FAQs

Package last updated on 07 Dec 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.