open-index/open-npm huggingface dataset:
npm package: @orikami/create-graphql-service
Description: create a GraphQL microservice with auth0 authentication
Author: Mark Marijnissen
Latest version: 0.0.1

# create-graphql-service

## Install
```
npm install --save @orikami/create-graphql-service
```

### Usage


Due to some package troubles, you need to install `apollo-server-micro`
and `graphql` in your microservice (root) `package.json`

```bash
npm install --save graphql apollo-server-micro
```

Now you can write a micro function in `index.js`:

```javascript
const createGraphQLService = require("./packages/create-graphql-service");
const apolloServer = require("apollo-server-micro");
const schema = require("./schema");

module.exports = createGraphQLService({ schema, apolloServer, name: "graphql-demo", version: "v1" });
```

This will create endpoints:

- `/v1/graphql-demo/graphql`
- `/v1/graphql-demo/grapihql`

For more information about development and release, [see documentation](../../README.md).
npm package: @orikami/fn-to-json-api
Description: Convert (jsonData) => {} to (req, res) => {}
Author: Stijn Albers van der Linden
Latest version: 0.3.2

# fn-to-json-api

Transform business logic (`data => {}`) to a micro server handler (`(req,res) => {}`)

`data` will be the JSON POST body and GET query parameters.

## Install
```
npm install --save @orikami/fn-to-json-api
```

## Usage

Given some business logic in `index.js`:
```
module.exports = (data, req, res) => { return data; }
```

Convert it to a micro server handler in `handler.js`:
```
var toJsonAPI = require('fn-to-json-api');
var fn = require('./index');

const handler = toJsonAPI(fn);
module.exports = handler;
```

`data` will contain the POST data and query parameters. POST will override query parameters.

## Changelog

- 0.3.2 - Update/cleanup dependencies packages
- 0.3.1 - Return emptry response on OPTIONS request
- 0.2.0 - Add support for formencoded POST request
- 0.1.0 - Refactor
- 0.0.2 - Initial release
npm package: @orikami/micro-auth0
Description: Micro Auth0 helper
Author: Mark Marijnissen
Latest version: 1.0.1

# micro-auth0

Helper to get user using Auth0

## Install

```
npm install --save @orikami/micro-auth0
```

## Configure Auth0

By default, micro-auth0 is configured to use RS256 with the orikami.eu.auth0.com public key. It will not check for any roles by default.

You can customize and verify the configuration as follows:

1. Create a SPA application in Auth0: https://manage.auth0.com/#/applications
2. Settings > Advanced > OAuth > JsonWebToken Signature Algorithm: `RS256`
3. Settings > Certificates > Signing Certificate contains the `publickey`.

If you want to customize configuration, create a [auth0.js](./auth0.js) in your project:

```js
module.exports = {
    publickey: `...` // default: orikami.eu.auth0.com
    roles: {
      key: "https://orikami-api.nl/roles",
        // allowed: ['developer'],
    },
    jwt: {
        algorithms: ["RS256"],
        // audience: "https://orikami-api.nl/v1/",
        // ignoreExpiration: false
        // issuer: "",
        // subject: "",
        // maxAge: "",
        // clockTolerance: 10
    }
}
```

If you define `roles.allowed`, micro-auth0 will check if the role in the token. Currently, this is configured using the Authorization extension of Auth0.

See https://orikami.eu8.webtask.io/adf6e2f2b84784b57522e3b19dfc9201/admins/login

## Usage

```
const auth0 = require("@orikami/micro-auth0")(require("./auth0.js"));
const handler = require("./index");

module.exports = auth0(handler);
```

## Known issues

### publickey in auth0.js

If you change the publickey in the `auth0.js` file be aware that the Certificate string has no tabs or extra space in it.

## Changelog

- 1.0.0 - Change default config with ENV variables AUTH0_PUBLICKEY, AUTH0_ROLES_KEY and AUTH0_JWT_ALGORITHMS
- 0.3.0 - Check for token query param in `x-forwarded-uri`
- 0.1.0 - Refactor
- 0.0.2 - Initial release
npm package: @orikami/micro-test-request
Description: Call a micro function with a fake request to get a fake response
Author: Mark Marijnissen
Latest version: 1.2.0

# micro-test-request

Will call your [micro](https://github.com/zeit/micro) function with a fake `req` and `res`.

```javascript
const request = require("micro-test-request");

// Your micro function in `index.js`
const handler = (req, res) => {
    return "Hello world!";
}

// Test using `jest` like this:
test("200 default",async () => {
    const res = await request({
        method: "GET",
        url: "/dev/time",
        headers: {
            "authorization": "Bearer OK"
        },
        body: { hello: "world" },
        handler: handler
    });
    expect(res.statusCode).toBe(200);
    expect(res.headers).toMatchSnapshot();
    expect(res.body).toMatchSnapshot();
});

// You can also use the fake response and request directly
const { createRequest, createResponse } = require("micro-test-request");
```
npm package: @orikami/micro-to-lambda
Description: Convert a [micro](https://github.com/zeit/micro) function to a lambda handler.
Author: Mark Marijnissen
Latest version: 1.3.0

# micro-to-lambda

Convert a [micro](https://github.com/zeit/micro) function to a lambda handler.

## Install
```
npm install --save @orikami/micro-to-lambda
```


## Usage

Given a micro function in `index.js`
```
module.exports = (req,res) => ({ time: new Date() })
```

Convert it to a lambda function in `handler.js`:
```
var microToLambda = require('micro-to-lambda');
var index = require('./index');
module.exports.time = microToLambda(index);
```

By default, the lambda will terminate the process after every request.
If you want to keep the process alive, use:

```
microToLambda(handler, { keepAlive: true, iPromiseToCloseDatabaseConnections: true })
```

As you can see, you have to promise to close all database connections (to MongoDB). Otherwise, the autoscaling of lambda can cause trouble for the connection limit of the database.


```javascript
require("async-to-gen/register");
```

## Changelog

1.2.1 - Remove process.exit() to fix error.
1.1.1 - Close AWS Lambda after every process. (HAS ERRORS)
0.0.01 - Initial release
npm package: @orikami/micro-trycatch
Description: Catch thrown errors and format them as JSON
Author: Mark Marijnissen
Latest version: 0.2.1

# micro-trycatch

## Install

```
npm install --save @orikami-micro-trycatch
```

## Usage

```js
const tryCatch = require("@orikami/micro-trycatch");
const handler = require("./index");

module.exports = tryCatch(handler);
```

## Changelog

0.2.1 - Remove console.log
0.2.0 - initial release
npm package: @orillusion/geometry
Description: Orillusion Geometry Plugin
Author: Orillusion
Latest version: 0.2.9

Extra geometry plugins for [Orillusion](https://www.orillusion.com)

## Usage
```bash
npm install @orillusion/core --save
npm install @orillusion/geometry --save
```
```ts
import { Scene3D } from "@orillusion/core"
import { TextGeometry, ExtrudeGeometry, TerrainGeometry } from "@orillusion/geometry"
```

Or access Global build from CDN
```html
<script src="https://unpkg.com/@orillusion/core/dist/orillusion.umd.js"></script>
<script src="https://unpkg.com/@orillusion/geometry/dist/geometry.umd.js"></script>
```

More doc from [Orillusion](https://www.orillusion.com/guide/graphics/mesh.html)
npm package: @orillusion/media-extention
Description: Orillusion Media Material Extention
Author: Orillusion
Latest version: 0.3.7

Add media components for [Orillusion](https://www.orillusion.com)

## Install
```bash
npm install @orillusion/core --save
npm install @orillusion/media-extention --save
```

Or access Global build from CDN
```html
<script src="https://unpkg.com/@orillusion/core/dist/orillusion.umd.js"></script>
<script src="https://unpkg.com/@orillusion/media-extention/dist/media.umd.js"></script>
```

More doc from [Orillusion](https://www.orillusion.com/guide/media/Readme.html)
npm package: @orillusion/physics
Description: Orillusion Physics Plugin, Powerd by Ammo.js
Author: Orillusion
Latest version: 0.3.5

A physics component for [Orillusion](https://www.orillusion.com), powered by [Ammo.js](https://github.com/kripken/ammo.js/)

## Usage
```bash
npm install @orillusion/core --save
npm install @orillusion/physics --save
```
```ts
import { Scene3D } from "@orillusion/core"
import { Physics } from "@orillusion/physics"
```

Or access Global build from CDN
```html
<script src="https://unpkg.com/@orillusion/core/dist/orillusion.umd.js"></script>
<script src="https://unpkg.com/@orillusion/physics/dist/physics.umd.js"></script>
```

More doc from [Orillusion](https://www.orillusion.com/guide/physics/Readme.html)
npm package: @orillusion/stats
Description: Orillusion Stats Plugin
Author: Orillusion
Latest version: 0.2.7

A simple performance monitor component for [Orillusion](https://www.orillusion.com)

## Usage
```bash
npm install @orillusion/core --save
npm install @orillusion/stats --save
```
```ts
import { Scene3D } from "@orillusion/core"
import { Stats } from "@orillusion/stats"

let scene = new Scene3D();
scene.addComponent(Stats);
```

Or access Global build from CDN
```html
<script src="https://unpkg.com/@orillusion/core/dist/orillusion.umd.js"></script>
<script src="https://unpkg.com/@orillusion/stats/dist/stats.umd.js"></script>
```
```js
const { Scene3D, Stats } = Orillusion 

let scene = new Scene3D();
scene.addComponent(Stats);
```

More doc from [Orillusion](https://www.orillusion.com/guide/performance/Readme.html)
npm package: @orim-monorepo/is-even
Description: Return true if the given number is even.
Author: Jon Schlinkert
Latest version: 1.2.0

# is-even

JUST TO TEST GIT MIGRATION

## Usage

```js
var isEven = require('is-even')

isEven(0)
//=> true
isEven('1')
//=> false
isEven(2)
//=> true
isEven('3')
//=> false
```

## About

### Contributing

Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).

### Contributors

| **Commits** | **Contributor**                                       |
| ----------- | ----------------------------------------------------- |
| 6           | [jonschlinkert](https://github.com/jonschlinkert)     |
| 1           | [noformnocontent](https://github.com/noformnocontent) |

### Building docs

_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_

To generate the readme, run the following command:

```sh
$ npm install -g verbose/verb#dev verb-generate-readme && verb
```

### Running tests

Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:

```sh
$ npm install && npm test
```

### Author

**Jon Schlinkert**

- [github/jonschlinkert](https://github.com/jonschlinkert)
- [twitter/jonschlinkert](https://twitter.com/jonschlinkert)

### License

Copyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).
Released under the [MIT License](LICENSE).

---

_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on May 27, 2017._
npm package: @orim181/vue-chartkick
Description: Create beautiful JavaScript charts with one line of Vue
Latest version: 0.6.1

# Vue Chartkick with Bubble Chart Support

A forked version of Vue Chartkick (https://www.chartkick.com/vue) with added Bubble Chart Support, until the pull request is approved - https://github.com/ankane/vue-chartkick/pull/101