open-index/open-npm huggingface dataset:
npm package: @mediaire/cornerstone3d-core
Description: Cornerstone3D Core
Latest version: 4.20.0

⚠️ This is a fork of the
[@cornerstonejs/core](https://www.npmjs.com/package/@cornerstonejs/core) package
that adds some custom features on top.

# @cornerstonejs/core

Cornerstone is a set of JavaScript libraries that can be used to build web-based medical imaging applications. It provides a framework to build radiology applications such as the [OHIF Viewer](https://ohif.org/).

This library, _@cornerstonejs/core_, provides CPU and GPU-based rendering support, image/volume loading API, and caching utilities.

You can find the Cornerstone documentation [on the website](https://cornerstonejs.org/).
npm package: @mediaire/cornerstone3d-nifti-volume-loader
Description: Nifti Image Loader for Cornerstone3D
Latest version: 4.20.0

⚠️ This is a fork of the [@cornerstonejs/nifti-volume-loader](https://www.npmjs.com/package/@cornerstonejs/nifti-volume-loader) package that adds some custom features on top.

# @cornerstonejs/nifti-volume-loader

Nifti volume loader for the cornerstone3D framework.

# Injecting headers

You can inject custom headers to the requests made by the loader. This is useful for authentication purposes.

```js
import { init } from '@mediaire/cornerstone3d-nifti-volume-loader';

niftiInit({
  beforeSend: (xhr, headers, url) => {
    headers['Cornerstone3D-Is-Awesome'] = 'True';
    return headers;
  },
});
```

Now, every request made by the loader will have the `Cornerstone3D-Is-Awesome` header with the value `True`.
npm package: @mediaire/cornerstone3d-tools
Description: Cornerstone3D Tools
Latest version: 4.20.0-mediaire.2

⚠️ This is a fork of the [@cornerstonejs/tools](https://www.npmjs.com/package/@cornerstonejs/tools) package that adds some custom features on top.

# @cornerstonejs/tools

Cornerstone is a set of JavaScript libraries that can be used to build web-based medical imaging applications. It provides a framework to build radiology applications such as the [OHIF Viewer](https://ohif.org/).

This library, _@cornerstonejs/tools_, provides manipulation, annotation, and segmentation tools as well as a tool framework for building interactive imaging applications.

You can find the Cornerstone documentation [on the website](https://cornerstonejs.org/).
npm package: @medial/lambda
Description: A middleware for AWS lambda
Author: Amit Kirdatt
Latest version: 0.0.13

# @medial/lambda
[![Build Status](https://travis-ci.com/medial-io/lambda.svg?branch=master)](https://travis-ci.com/github/medial-io/lambda)
[![codecov](https://codecov.io/gh/medial-io/lambda/branch/master/graph/badge.svg)](https://codecov.io/gh/medial-io/lambda)
[![Known Vulnerabilities](https://snyk.io/test/github/medial-io/lambda/badge.svg?targetFile=package.json)](https://snyk.io/test/github/medial-io/lambda?targetFile=package.json)
[![Total alerts](https://img.shields.io/lgtm/alerts/g/medial-io/lambda.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/medial-io/lambda/alerts/)
[![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/medial-io/lambda.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/medial-io/lambda/context:javascript)

# A wrapper for AWS Lambda 
A wrapper to help build AWS Lambda backed HTTP services.

Features
 - Validation via [Joi](https://github.com/hapijs/joi)
    - Headers
    - Path Params
    - Query Params
    - Payload
 - Error responses via [Boom](https://github.com/hapijs/boom)
 - handles complexities of dealing with lambda functions (For example: multiple values for the same key in queryParams)

**Please checkout the [full example](https://github.com/medial-io/lambda-example)**

**Inspired by the [hapi](https://hapi.dev/) framework.**

## Example

Medial Handler Object

```
const Lambda = require('@medial/lambda');
const Boom = require('@hapi/boom');
const Joi = require('@hapi/joi');


exports.get = Lambda.define({
  validate: {
    query: Joi.object().keys({
      world: Joi.string().default('world')
    })
  },
  handler: async function(request, h) {
    const world = request.query.world;

    return {hello: world};
  }
});
```
`exports.get` is now a AWS Lambda function. Once this function is configured for HTTP access via the AWS API Gateway - when invoked, it will return ```{"hello": "world"}``` with a response code of `200`.

You can also invoke the lambda from another lambda. The response will look like this: 
```
{
  multiValueHeaders: {},
  statusCode: 200,
  body: '{"hello": "world"}' // this is stringifyed object 
}
```
## Working example
Deploy the example to AWS and/or run it locally with swagger documentation

**[A full example](https://github.com/medial-io/lambda-example)**

# Documentation
 - [Handler API](docs/HANDLER-API.md)
 - [Client API](docs/CLIENT-API.md)