open-index/open-npm huggingface dataset:
npm package: @heycharles/server-timing
Description: This module can add `ServerTiming` Header to http response, and be able to use express middleware
Author: eljefedelrodeodeljefe
Latest version: 0.1.1

# server-timing

[![Build Status](https://travis-ci.org/yosuke-furukawa/server-timing.svg?branch=master)](https://travis-ci.org/yosuke-furukawa/server-timing)
[![Coverage Status](https://coveralls.io/repos/github/yosuke-furukawa/server-timing/badge.svg?branch=improve_coverage)](https://coveralls.io/github/yosuke-furukawa/server-timing?branch=improve_coverage)

This module adds [Server-Timing](https://www.w3.org/TR/server-timing/) to response headers.
Example is [here](https://server-timing.now.sh/) and open chrome devtool network tab.

You can use this as a express module / basic http function.

# Install

```
$ npm install server-timing -S
```

# Usage

```javascript
const express = require('express');
const serverTiming = require('server-timing');

const app = express();
app.use(serverTiming());

app.use((req, res, next) => {
  res.startTime('file', 'File IO metric');
  setTimeout(() => {
    res.endTime('file');
  }, 100);
  next();
});
app.use((req, res, next) => {
  // you can see test end time response
  res.startTime('test', 'forget to call endTime');
  next();
});
app.use((req, res, next) => {
  // All timings should be in milliseconds (s). See issue #9 (https://github.com/yosuke-furukawa/server-timing/issues/9).
  res.setMetric('db', 100.0, 'Database metric');
  res.setMetric('api', 200.0, 'HTTP/API metric');
  res.setMetric('cache', 300.0, 'cache metric');
  next();
});
app.use((req, res, next) => {
  res.send('hello');
});
```

## Conditionally enabled

```javascript
const express = require('express');
const serverTiming = require('server-timing');

const app = express();
app.use(serverTiming({
  // Only send metrics if query parameter `debug` is set to `true`
  enabled: (req, res) => req.query.debug === 'true'
}));
```

# API

## constructor(options)

- options.total: boolean, default `true`, add total response time
- options.enabled: boolean | function, default `true`, enable server timing header. If a function is passed, it will be called with two arguments, `request` and `response`, and should return a boolean.
- options.autoEnd: boolean, default `true` automatically endTime is called if timer is not finished.
- options.precision: number, default `+Infinity`, number of decimals to use for timings.

# Result

![image](https://cloud.githubusercontent.com/assets/555645/22737265/b5b5204e-ee45-11e6-82c5-776a5313d120.png)
npm package: @heycool/n8n-nodes-plus
Description: A collection of n8n nodes.
Author: ZxBing0066
Latest version: 0.2.3

# @heycool/n8n-nodes-plus

This is a personal collection of n8n community nodes that adds enhanced functionality to your n8n workflows.

## Installation

Follow the [installation guide](https://docs.n8n.io/integrations/community-nodes/installation/) in the n8n community nodes documentation.

## Included Nodes

### Node - LmChatGoogleGeminiPlus

An enhanced version of the official Google Gemini node with the following improvements:

- **Network Proxy Support**: Fixes the issue where the official Gemini node doesn't work with network proxies
- **Google Search Integration**: Adds support for Google Search capability, allowing the model to search the web for relevant information
- **Debug Mode**: Includes a debug mode option for additional logging in the terminal

But it does not support the following features:

- **AI Agent**
- **Chat Messages**

## Credentials

The nodes in this collection use the following credentials:

### Google Palm API

To use the Google Gemini node, you need a Google API key:

1. Visit the [Google AI Studio](https://makersuite.google.com/app/apikey)
2. Create an API key
3. Use this API key in the n8n credentials configuration

## Compatibility

Requires n8n version 1.0.0 or later.

Node.js >= 20.15 is required.

## Usage

### Usage - LmChatGoogleGeminiPlus

1. Add the "Google Gemini Chat Model Plus" node to your workflow
2. Configure your Google Palm API credentials
3. Select your preferred model (default is gemini-1.0-pro)
4. Toggle "Enable Google Search" if you want the model to have web search capability
5. Adjust additional options like temperature, tokens, etc. as needed
6. Connect to AI Chain, AI Agent, or other compatible nodes

## Resources

- [n8n community nodes documentation](https://docs.n8n.io/integrations/#community-nodes)
- [Google Gemini API Documentation](https://ai.google.dev/docs/gemini_api_overview)
- [GitHub Repository](https://github.com/ZxBing0066/n8n-nodes)

## Version history

- **0.1.0**: Initial release with LmChatGoogleGeminiPlus node
- **0.2.0**: Added debug mode
npm package: @heydays/hooks
Description: React hooks for Heydays
Author: Heydays
Latest version: 0.0.26

# Heydays hooks

A react hook library for [Heydays](https://heydays.no)

## Install

`yarn add @heydays/hooks`

## Usage

```
import React from 'react'
import { useMediaQuery } from '@heydays/hooks'

const PageSize = props => {
  const activeMediaQuery = useMediaQuery()
  // => 'sm' || 'md' || 'lg' …
  return (
    <div>
      Current page size is {activeMediaQuery}
    </div>
  )
}

export default PageSize
```

## Hooks

### useMediaQuery

Returns the current media query as a string ex. 'sm' || 'md'

## Disclaimer

Have a look if you want, but this is meant for internal use only.
npm package: @heydays/utility-components
Description: Utility components for Heydays
Author: Heydays
Latest version: 0.0.26

# Heydays utility components

A component library for [Heydays](https://heydays.no)

## Install

`yarn add @heydays/utility-components`

## Usage

```
import React from 'react'
import { Image } from '@heydays/utility-components'

const Person = props => {
  return (
    <div>
      <h3>{person.name</h3>
      <Image data={person.image} />
    </div>
  )
}

export default Person
```

## Components

### Image

For rendering [Sanity](https://sanity.io) images in [Gatsby](https://gatsbyjs.org)

## Disclaimer

Have a look if you want, but this is meant for internal use only.