• Stars
    star
    447
  • Rank 97,700 (Top 2 %)
  • Language
    JavaScript
  • License
    Other
  • Created over 10 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Universal data access layer for web applications.

Fetchr

npm version Build Status Coverage Status

Universal data access layer for web applications.

Typically on the server, you call your API or database directly to fetch some data. However, on the client, you cannot always call your services in the same way (i.e, cross domain policies). Instead, XHR/fetch requests need to be made to the server which get forwarded to your service.

Having to write code differently for both environments is duplicative and error prone. Fetchr provides an abstraction layer over your data service calls so that you can fetch data using the same API on the server and client side.

Install

npm install fetchr --save

Important: when on browser, Fetchr relies fully on Fetch API. If you need to support old browsers, you will need to install a polyfill as well (eg. https://github.com/github/fetch).

Setup

Follow the steps below to setup Fetchr properly. This assumes you are using the Express framework.

1. Configure Server

On the server side, add the Fetchr middleware into your express app at a custom API endpoint.

Fetchr middleware expects that you're using the body-parser middleware (or an alternative middleware that populates req.body) before you use Fetchr middleware.

import express from 'express';
import Fetcher from 'fetchr';
import bodyParser from 'body-parser';
const app = express();

// you need to use body-parser middleware before fetcher middleware
app.use(bodyParser.json());

app.use('/myCustomAPIEndpoint', Fetcher.middleware());

2. Configure Client

On the client side, it is necessary for the xhrPath option to match the path where the middleware was mounted in the previous step

xhrPath is an optional config property that allows you to customize the endpoint to your services, defaults to /api.

import Fetcher from 'fetchr';
const fetcher = new Fetcher({
    xhrPath: '/myCustomAPIEndpoint',
});

3. Register data services

You will need to register any data services that you wish to use in your application. The interface for your service will be an object that must define a resource property and at least one CRUD operation. The resource property will be used when you call one of the CRUD operations.

// app.js
import Fetcher from 'fetchr';
import myDataService from './dataService';
Fetcher.registerService(myDataService);
// dataService.js
export default {
    // resource is required
    resource: 'data_service',
    // at least one of the CRUD methods is required
    read: function (req, resource, params, config, callback) {
        //...
    },
    // other methods
    // create: function(req, resource, params, body, config, callback) {},
    // update: function(req, resource, params, body, config, callback) {},
    // delete: function(req, resource, params, config, callback) {}
};

4. Instantiating the Fetchr Class

Data services might need access to each individual request, for example, to get the current logged in user's session. For this reason, Fetcher will have to be instantiated once per request.

On the serverside, this requires fetcher to be instantiated per request, in express middleware. On the clientside, this only needs to happen on page load.

// app.js - server
import express from 'express';
import Fetcher from 'fetchr';
import myDataService from './dataService';
const app = express();

// register the service
Fetcher.registerService(myDataService);

// register the middleware
app.use('/myCustomAPIEndpoint', Fetcher.middleware());

app.use(function(req, res, next) {
    // instantiated fetcher with access to req object
    const fetcher = new Fetcher({
        xhrPath: '/myCustomAPIEndpoint', // xhrPath will be ignored on the serverside fetcher instantiation
        req: req
    });

    // perform read call to get data
    fetcher
        .read('data_service')
        .params({id: ###})
        .end(function (err, data, meta) {
        // handle err and/or data returned from data fetcher in this callback
        });
});
// app.js - client
import Fetcher from 'fetchr';
const fetcher = new Fetcher({
    xhrPath: '/myCustomAPIEndpoint' // xhrPath is REQUIRED on the clientside fetcher instantiation
});
fetcher
    .read('data_api_fetcher')
    .params({id: ###})
    .end(function (err, data, meta) {
    // handle err and/or data returned from data fetcher in this callback
    });

// for create you can use the body() method to pass data
fetcher
    .create('data_api_create')
    .body({"some":"data"})
    .end(function (err, data, meta) {
    // handle err and/or data returned from data fetcher in this callback
    });

Usage Examples

See the simple example.

Service Metadata

Service calls on the client transparently become fetch requests. It is a good idea to set cache headers on common fetch calls. You can do so by providing a third parameter in your service's callback. If you want to look at what headers were set by the service you just called, simply inspect the third parameter in the callback.

Note: If you're using promises, the metadata will be available on the meta property of the resolved value.

// dataService.js
export default {
    resource: 'data_service',
    read: function (req, resource, params, config, callback) {
        // business logic
        const data = 'response';
        const meta = {
            headers: {
                'cache-control': 'public, max-age=3600',
            },
            statusCode: 200, // You can even provide a custom statusCode for the fetch response
        };
        callback(null, data, meta);
    },
};
fetcher
    .read('data_service')
    .params({id: ###})
    .end(function (err, data, meta) {
        // data will be 'response'
        // meta will have the header and statusCode from above
    });

There is a convenience method called fetcher.getServiceMeta on the fetchr instance. This method will return the metadata for all the calls that have happened so far in an array format. In the server, this will include all service calls for the current request. In the client, this will include all service calls for the current session.

Updating Configuration

Usually you instantiate fetcher with some default options for the entire browser session, but there might be cases where you want to update these options later in the same session.

You can do that with the updateOptions method:

// Start
const fetcher = new Fetcher({
    xhrPath: '/myCustomAPIEndpoint',
    xhrTimeout: 2000,
});

// Later, you may want to update the xhrTimeout
fetcher.updateOptions({
    xhrTimeout: 4000,
});

Error Handling

When an error occurs in your Fetchr CRUD method, you should return an error object to the callback. The error object should contain a statusCode (default 500) and output property that contains a JSON serializable object which will be sent to the client.

export default {
    resource: 'FooService',
    read: function create(req, resource, params, configs, callback) {
        const err = new Error('it failed');
        err.statusCode = 404;
        err.output = { message: 'Not found', more: 'meta data' };
        err.meta = { foo: 'bar' };
        return callback(err);
    },
};

And in your service call:

fetcher
    .read('someData')
    .params({ id: '42' })
    .end(function (err, data, meta) {
        if (err) {
            // err instanceof FetchrError -> true
            // err.message -> "Not found"
            // err.meta -> { foo: 'bar' }
            // err.name = 'FetchrError'
            // err.output -> { message: "Not found", more: "meta data" }
            // err.rawRequest -> { headers: {}, method: 'GET', url: '/api/someData' }
            // err.reason -> BAD_HTTP_STATUS | BAD_JSON | TIMEOUT | ABORT | UNKNOWN
            // err.statusCode -> 404
            // err.timeout -> 3000
            // err.url -> '/api/someData'
        }
    });

Abort support

An object with an abort method is returned by the .end() method. This is useful if you want to abort a request before it is completed.

const req = fetcher
    .read('someData')
    .params({id: ###})
    .end(function (err, data, meta) {
        // err.output will be { message: "Not found", more: "meta data" }
    });

req.abort();

Timeouts

xhrTimeout is an optional config property that allows you to set timeout (in ms) for all clientside requests, defaults to 3000. On the clientside, xhrPath and xhrTimeout will be used for all requests. On the serverside, xhrPath and xhrTimeout are not needed and are ignored.

import Fetcher from 'fetchr';
const fetcher = new Fetcher({
    xhrPath: '/myCustomAPIEndpoint',
    xhrTimeout: 4000,
});

If you have an individual request that you need to ensure has a specific timeout you can do that via the timeout option in clientConfig:

fetcher
    .read('someData')
    .params({id: ###})
    .clientConfig({timeout: 5000}) // wait 5 seconds for this request before timing it out
    .end(function (err, data, meta) {
    // handle err and/or data returned from data fetcher in this callback
    });

Params Processing

For some applications, there may be a situation where you need to process the service params passed in the request before they are sent to the actual service. Typically, you would process them in the service itself. However, if you neet to perform processing across many services (i.e. sanitization for security), then you can use the paramsProcessor option.

paramsProcessor is a function that is passed into the Fetcher.middleware method. It is passed three arguments, the request object, the serviceInfo object, and the service params object. The paramsProcessor function can then modify the service params if needed.

Here is an example:

/**
    Using the app.js from above, you can modify the Fetcher.middleware
    method to pass in the paramsProcessor function.
 */
app.use(
    '/myCustomAPIEndpoint',
    Fetcher.middleware({
        paramsProcessor: function (req, serviceInfo, params) {
            console.log(serviceInfo.resource, serviceInfo.operation);
            return Object.assign({ foo: 'fillDefaultValueForFoo' }, params);
        },
    })
);

Response Formatting

For some applications, there may be a situation where you need to modify the response before it is passed to the client. Typically, you would apply your modifications in the service itself. However, if you need to modify the responses across many services (i.e. add debug information), then you can use the responseFormatter option.

responseFormatter is a function that is passed into the Fetcher.middleware method. It is passed three arguments, the request object, response object and the service response object (i.e. the data returned from your service). The responseFormatter function can then modify the service response to add additional information.

Take a look at the example below:

/**
    Using the app.js from above, you can modify the Fetcher.middleware
    method to pass in the responseFormatter function.
 */
app.use(
    '/myCustomAPIEndpoint',
    Fetcher.middleware({
        responseFormatter: function (req, res, data) {
            data.debug = 'some debug information';
            return data;
        },
    })
);

Now when an request is performed, your response will contain the debug property added above.

CORS Support

Fetchr provides CORS support by allowing you to pass the full origin host into corsPath option.

For example:

import Fetcher from 'fetchr';
const fetcher = new Fetcher({
    corsPath: 'http://www.foo.com',
    xhrPath: '/fooProxy',
});
fetcher
    .read('service')
    .params({ foo: 1 })
    .clientConfig({ cors: true })
    .end(callbackFn);

Additionally, you can also customize how the GET URL is constructed by passing in the constructGetUri property when you execute your read call:

import qs from 'qs';
function customConstructGetUri(uri, resource, params, config) {
    // this refers to the Fetcher object itself that this function is invoked with.
    if (config.cors) {
        return uri + '/' + resource + '?' + qs.stringify(this.context);
    }
    // Return `falsy` value will result in `fetcher` using its internal path construction instead.
}

import Fetcher from 'fetchr';
const fetcher = new Fetcher({
    corsPath: 'http://www.foo.com',
    xhrPath: '/fooProxy',
});
fetcher
    .read('service')
    .params({ foo: 1 })
    .clientConfig({
        cors: true,
        constructGetUri: customConstructGetUri,
    })
    .end(callbackFn);

CSRF Protection

You can protect your Fetchr middleware paths from CSRF attacks by adding a middleware in front of it:

app.use('/myCustomAPIEndpoint', csrf(), Fetcher.middleware());

You could use https://github.com/expressjs/csurf for this as an example.

Next you need to make sure that the CSRF token is being sent with our requests so that they can be validated. To do this, pass the token in as a key in the options.context object on the client:

const fetcher = new Fetcher({
    xhrPath: '/myCustomAPIEndpoint', // xhrPath is REQUIRED on the clientside fetcher instantiation
    context: {
        // These context values are persisted with client calls as query params
        _csrf: 'Ax89D94j',
    },
});

This _csrf will be sent in all client requests as a query parameter so that it can be validated on the server.

Service Call Config

When calling a Fetcher service you can pass an optional config object.

When this call is made from the client, the config object is used to set some request options and can be used to override default options:

//app.js - client
const config = {
    timeout: 6000, // Timeout (in ms) for each request
    unsafeAllowRetry: false, // for POST requests, whether to allow retrying this post
};

fetcher.read('service').params({ id: 1 }).clientConfig(config).end(callbackFn);

For requests from the server, the config object is simply passed into the service being called.

Retry

You can set Fetchr to automatically retry failed requests by specifying a retry configuration in the global or in the request configuration:

// Globally
const fetchr = new Fetchr({
    retry: { maxRetries: 2 },
});

// Per request
fetchr
    .read('service')
    .clientConfig({
        retry: { maxRetries: 1 },
    })
    .end();

With the above configuration, Fetchr will retry twice all requests that fail but only once when calling read('service').

You can further customize how the retry mechanism works. These are all settings and their default values:

const fetchr = new Fetchr({
  retry: {
    maxRetries: 2, // amount of retries after the first failed request
    interval: 200, // maximum interval between each request in ms (see note below)
    statusCodes: [0, 408], // response status code that triggers a retry (see note below)
  },
  unsafeAllowRetry: false, // allow unsafe operations to be retried (see note below)
}

interval

The interval between each request respects the following formula, based on the exponential backoff and full jitter strategy published in this AWS architecture blog post:

Math.random() * Math.pow(2, attempt) * interval;

attempt is the number of the current retry attempt starting from 0. By default interval corresponds to 200ms.

statusCodes

For historical reasons, fetchr only retries 408 responses and no responses at all (for example, a network error, indicated by a status code 0). However, you might find useful to also retry on other codes as well (502, 503, 504 can be good candidates for an automatic retries).

unsafeAllowRetry

By default, Fetchr only retries read requests. This is done for safety reasons: reading twice an entry from a database is not as bad as creating an entry twice. But if your application or resource doesn't need this kind of protection, you can allow retries by setting unsafeAllowRetry to true and fetchr will retry all operations.

Context Variables

By Default, fetchr appends all context values to the request url as query params. contextPicker allows you to have greater control over which context variables get sent as query params depending on the request method (GET or POST). This is useful when you want to limit the number of variables in a GET url in order not to accidentally cache bust.

contextPicker follows the same format as the predicate parameter in lodash/pickBy with two arguments: (value, key).

const fetcher = new Fetcher({
    context: {
        // These context values are persisted with client calls as query params
        _csrf: 'Ax89D94j',
        device: 'desktop',
    },
    contextPicker: {
        GET: function (value, key) {
            // for example, if you don't enable CSRF protection for GET, you are able to ignore it with the url
            if (key === '_csrf') {
                return false;
            }
            return true;
        },
        // for other method e.g., POST, if you don't define the picker, it will pick the entire context object
    },
});

const fetcher = new Fetcher({
    context: {
        // These context values are persisted with client calls as query params
        _csrf: 'Ax89D94j',
        device: 'desktop',
    },
    contextPicker: {
        GET: ['device'], // predicate can be an array of strings
    },
});

Custom Request Headers

When calling a Fetcher service you can add custom request headers.

A request contains custom headers when you add headers option to 'clientConfig'.

const config = {
    headers: {
        'X-VERSION': '1.0.0',
    },
};

fetcher.read('service').params({ id: 1 }).clientConfig(config).end(callbackFn);

All requests contain custom headers when you add headers option to constructor arguments of 'Fetcher'.

import Fetcher from 'fetchr';
const fetcher = new Fetcher({
    headers: {
        'X-VERSION': '1.0.0',
    },
});

Stats Monitoring & Analysis

To collect fetcher service's success/failure/latency stats, you can configure statsCollector for Fetchr. The statsCollector function will be invoked with one argumment: stats. The stats object will contain the following fields:

  • resource: The name of the resource for the request
  • operation: The name of the operation, create|read|update|delete
  • params: The params object for the resource
  • statusCode: The status code of the response
  • err: The error object of failed request; null if request was successful
  • time: The time spent for this request, in milliseconds

Fetcher Instance

import Fetcher from 'fetchr';
const fetcher = new Fetcher({
    xhrPath: '/myCustomAPIEndpoint',
    statsCollector: function (stats) {
        // just console logging as a naive example.  there is a lot more you can do here,
        // like aggregating stats or filtering out stats you don't want to monitor
        console.log(
            'Request for resource',
            stats.resource,
            'with',
            stats.operation,
            'returned statusCode:',
            stats.statusCode,
            ' within',
            stats.time,
            'ms'
        );
    },
});

Server Middleware

app.use(
    '/myCustomAPIEndpoint',
    Fetcher.middleware({
        statsCollector: function (stats) {
            // just console logging as a naive example.  there is a lot more you can do here,
            // like aggregating stats or filtering out stats you don't want to monitor
            console.log(
                'Request for resource',
                stats.resource,
                'with',
                stats.operation,
                'returned statusCode:',
                stats.statusCode,
                ' within',
                stats.time,
                'ms'
            );
        },
    })
);

API

License

This software is free to use under the Yahoo! Inc. BSD license. See the LICENSE file for license text and copyright information.

More Repositories

1

CMAK

CMAK is a tool for managing Apache Kafka clusters
Scala
11,825
star
2

open_nsfw

Not Suitable for Work (NSFW) classification using deep neural network Caffe models.
Python
5,852
star
3

TensorFlowOnSpark

TensorFlowOnSpark brings TensorFlow programs to Apache Spark clusters.
Python
3,873
star
4

serialize-javascript

Serialize JavaScript to a superset of JSON that includes regular expressions and functions.
JavaScript
2,804
star
5

gryffin

Gryffin is a large scale web security scanning platform.
Go
2,075
star
6

fluxible

A pluggable container for universal flux applications.
JavaScript
1,815
star
7

AppDevKit

AppDevKit is an iOS development library that provides developers with useful features to fulfill their everyday iOS app development needs.
Objective-C
1,442
star
8

mysql_perf_analyzer

MySQL performance monitoring and analysis.
Java
1,436
star
9

squidb

SquiDB is a SQLite database library for Android and iOS
Java
1,312
star
10

react-stickynode

A performant and comprehensive React sticky component.
JavaScript
1,266
star
11

CaffeOnSpark

Distributed deep learning on Hadoop and Spark clusters.
Jupyter Notebook
1,266
star
12

blink-diff

A lightweight image comparison tool.
JavaScript
1,191
star
13

egads

A Java package to automatically detect anomalies in large scale time-series data
Java
1,173
star
14

elide

Elide is a Java library that lets you stand up a GraphQL/JSON-API web service with minimal effort.
Java
1,003
star
15

vssh

Go Library to Execute Commands Over SSH at Scale
Go
952
star
16

webseclab

set of web security test cases and a toolkit to construct new ones
Go
915
star
17

kubectl-flame

Kubectl plugin for effortless profiling on kubernetes
Go
784
star
18

streaming-benchmarks

Benchmarks for Low Latency (Streaming) solutions including Apache Storm, Apache Spark, Apache Flink, ...
Jupyter Notebook
630
star
19

redislite

Redis in a python module.
Python
577
star
20

lopq

Training of Locally Optimized Product Quantization (LOPQ) models for approximate nearest neighbor search of high dimensional data in Python and Spark.
Python
563
star
21

HaloDB

A fast, log structured key-value store.
Java
497
star
22

hecate

Automagically generate thumbnails, animated GIFs, and summaries from videos
C++
477
star
23

storm-yarn

Storm-yarn enables Storm clusters to be deployed into machines managed by Hadoop YARN.
Java
417
star
24

react-i13n

A performant, scalable and pluggable approach to instrumenting your React application.
JavaScript
382
star
25

FEL

Fast Entity Linker Toolkit for training models to link entities to KnowledgeBase (Wikipedia) in documents and queries.
Java
335
star
26

monitr

A Node.js process monitoring tool.
C++
312
star
27

Oak

A Scalable Concurrent Key-Value Map for Big Data Analytics
Java
267
star
28

TDOAuth

A BSD-licensed single-header-single-source OAuth1 implementation.
Swift
249
star
29

routr

A component that provides router related functionalities for both client and server.
JavaScript
246
star
30

mysql_partition_manager

MySQL Partition Manager
SQLPL
212
star
31

l3dsr

Direct Server Return load balancing across Layer 3 boundaries.
Shell
193
star
32

dnscache

dnscache for Node
JavaScript
184
star
33

object_relation_transformer

Implementation of the Object Relation Transformer for Image Captioning
Python
176
star
34

fili

Easily make RESTful web services for time series reporting with Big Data analytics engines like Druid and SQL Databases.
Java
173
star
35

check-log4j

To determine if a host is vulnerable to log4j CVE‐2021‐44228
Shell
172
star
36

sherlock

Sherlock is an anomaly detection service built on top of Druid
Java
152
star
37

YMTreeMap

High performance Swift treemap layout engine for iOS and macOS.
Swift
134
star
38

maha

A framework for rapid reporting API development; with out of the box support for high cardinality dimension lookups with druid.
Scala
129
star
39

covid-19-data

COVID-19 datasets are constructed entirely from primary (government and public agency) sources
109
star
40

subscribe-ui-event

Subscribe-ui-event provides a cross-browser and performant way to subscribe to browser UI Events.
JavaScript
109
star
41

jafar

🌟!(Just another form application renderer)
JavaScript
109
star
42

panoptes

A Global Scale Network Telemetry Ecosystem
Python
99
star
43

reginabox

Registry In A Box
JavaScript
97
star
44

preceptor

Test runner and aggregator
JavaScript
85
star
45

hive-funnel-udf

Hive UDFs for funnel analysis
Java
85
star
46

graphkit

A lightweight Python module for creating and running ordered graphs of computations.
Python
84
star
47

SparkADMM

Generic Implementation of Consensus ADMM over Spark
Python
83
star
48

react-cartographer

Generic component for displaying Yahoo / Google / Bing maps.
JavaScript
82
star
49

storm-perf-test

A simple storm performance/stress test
Java
76
star
50

UDPing

UDPing measures latency and packet loss across a link.
C++
75
star
51

bgjs

TypeScript
67
star
52

ycb

A multi-dimensional configuration library that builds bundles from resource files describing a variety of values.
JavaScript
66
star
53

ariel

Ariel is an AWS Lambda designed to collect, analyze, and make recommendations about Reserved Instances for EC2.
Python
64
star
54

YMCache

YMCache is a lightweight object caching solution for iOS and Mac OS X that is designed for highly parallel access scenarios.
Objective-C
63
star
55

validatar

Functional testing framework for Big Data pipelines.
Java
58
star
56

imapnio

Java imap nio client that is designed to scale well for thousands of connections per machine and reduce contention when using large number of threads and cpus.
Java
55
star
57

serviceping

A ping like utility for tcp services
Python
52
star
58

proxy-verifier

Proxy Verifier is an HTTP replay tool designed to verify the behavior of HTTP proxies. It builds a verifier-client binary and a verifier-server binary which each read a set of YAML or JSON files that specify the HTTP traffic for the two to exchange.
C++
45
star
59

express-busboy

A simple body-parser like module for express that uses connect-busboy under the hood.
JavaScript
45
star
60

covid-19-api

Yahoo Knowledge COVID-19 API provides JSON-API and GraphQL interfaces to access COVID-19 publicly sourced data
JavaScript
45
star
61

covid-19-dashboard

Source code for the Yahoo Knowledge Graph COVID-19 Dashboard
JavaScript
42
star
62

photo-background-generation

Jupyter Notebook
41
star
63

yql-plus

The YQL+ parser, execution engine, and source SDK.
Java
40
star
64

panoptes-stream

A cloud native distributed streaming network telemetry.
Go
40
star
65

context-parser

A robust HTML5 context parser that parses HTML 5 web pages and reports the execution context of each character.
HTML
40
star
66

FmFM

Python
39
star
67

cocoapods-blocklist

A CocoaPods plugin used to check a project against a list of pods that you do not want included in your build. Security is the primary use, but keeping specific pods that have conflicting licenses is another possible use.
Ruby
39
star
68

ember-gridstack

Ember components to build drag-and-drop multi-column grids powered by gridstack.js
JavaScript
37
star
69

k8s-namespace-guard

K8s - Admission controller for guarding namespace
Go
35
star
70

VerizonVideoPartnerSDK-controls-ios

Public iOS implementation of the OneMobileSDK default custom controls interface... demonstrating how customers can implement their own custom video player controls.
Swift
35
star
71

SubdomainSleuth

Scanner to identify dangling DNS records and subdomain takeovers
Go
34
star
72

fluxible-action-utils

Utility methods to aid in writing actions for fluxible based applications.
JavaScript
34
star
73

parsec

A collection of libraries and utilities to simplify the process of building web service applications.
Java
34
star
74

mod_statuspage

Simple express/connect middleware to provide a status page with following details of the nodejs host.
JavaScript
32
star
75

bftkv

A distributed key-value storage that's tolerant to Byzantine fault.
JavaScript
30
star
76

spivak

Python
30
star
77

protractor-retry

Use protractor features to automatically re-run failed tests with a specific configurable number of attempts.
JavaScript
28
star
78

cubed

Data Mart As A Service
Java
27
star
79

jsx-test

An easy way to test your React Components (`.jsx` files).
JavaScript
27
star
80

ycb-java

YCB Java
Java
27
star
81

fluxible-immutable-utils

A mixin that provides a convenient interface for using Immutable.js inside react components.
JavaScript
25
star
82

maaf

Modality-Agnostic Attention Fusion for visual search with text feedback
Python
25
star
83

node-limits

Simple express/connect middleware to set limit to upload size, set request timeout etc.
JavaScript
24
star
84

GitHub-Security-Alerts-Workflow

Automation to Incorporate GitHub Security Alerts Into your Business Workflow
Python
23
star
85

bandar-log

Monitoring tool to measure flow throughput of data sources and processing components that are part of Data Ingestion and ETL pipelines.
Scala
21
star
86

fumble

Simple error objects in node. Created specifically to be used with https://github.com/yahoo/fetchr and based on https://github.com/hapijs/boom
JavaScript
21
star
87

SongbirdCharts

Allows for other apps to render accessible audio charts
Kotlin
21
star
88

express-csp

Express extension for Content Security Policy
JavaScript
19
star
89

elide-js

Elide is a library that makes it easy to talk to a JSON API compliant backend.
JavaScript
18
star
90

Zake

A python package that works to provide a nice set of testing utilities for the kazoo library.
Python
18
star
91

npm-auto-version

Automatically generate new NPM versions based on Git tags when publishing
JavaScript
18
star
92

httpmi

An HTTP proxy for IPMI commands.
Python
17
star
93

hodman

Selenium object library
JavaScript
17
star
94

elide-spring-boot-example

Spring Boot example using the Elide framework.
Java
17
star
95

cerebro

JavaScript
17
star
96

Override

In app feature flag management
Swift
16
star
97

ychaos

YChaos - The Resilience Framework by Yahoo!
Python
16
star
98

parsec-libraries

Tools to simplify deploying web services with Parsec.
Java
16
star
99

NetCHASM

An Automated health checking and server status verification system.
C++
14
star
100

k8s-ingress-claim

An admission control policy that safeguards against accidental duplicate claiming of Hosts/Domains.
Go
14
star