New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@fabernovel/heart-server

Package Overview
Dependencies
Maintainers
5
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fabernovel/heart-server

Server part of the Heart ecosystem

  • 1.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-66.67%
Maintainers
5
Weekly downloads
 
Created
Source

Description

Heart Server is an orchestrator of every other heart-* modules.

As an orchestrator, it allows to start webpage analysis. And it does so by exposing a small API.

Technically, it is a server that starts on 127.0.0.1 (port is customizable, default to 3000).

Example: if you install this package plus Heart Observatory, you will have an API that expose the /observatory endpoint. Requesting this endpoint will start a webpage analysis using the Mozilla Observatory service.

Installation

  1. Add the package to your project:
npm i @fabernovel/heart-server
  1. [Optional] Add the following environment variables:
# Port that the server will listen to
PORT=1234

# Express configuration: http://expressjs.com/en/advanced/best-practice-performance.html#set-node_env-to-production
NODE_ENV=production

Usage

Vanilla JS

const HeartServer = require('@fabernovel/heart-server');

HeartServer.default.start();

TypeScript

import HeartServer from '@fabernovel/heart-server';

HeartServer.start();

FAQs

Package last updated on 11 Jun 2019

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc