open-index/open-npm huggingface dataset:
npm package: @subbul/fastify-plugin
Description: Subbul SDK for tracking metrics in your Fastify api
Author: Logan Bittner
Latest version: 1.1.0

# Subbul Fastify Plugin

Fastify plugin for [Subbul](https://subbul.com) - track your APIs core metrics with a few lines of code.

## Overview

Plug in the SDK into your Fastify application and instantly start tracking metrics such as

- Response times
- Requests per minute
- HTTP Status Codes
- Custom metrics

Once you are tracking your metrics, create alarms against them using the [Subbul](https://subbul.com) dashboard.

## Quick start

```js
import Fastify from "fastify";
import { Subbul, SubbulAllMetricsMiddleware } from "@subbul/fastify-plugin";

const fastify = Fastify();

fastify.register(Subbul, {
  licenseKey: "<LICENSE_KEY>",
  middleware: SubbulAllMetricsMiddleware()
});

fastify.get('/', (req, res) => {
  res.send('Hello World!')
})

fastify.listen({
  port: 3000,
})
```

## Documentation

Visit [the documentation](https://subbul.com/documentation/integrate/fastify) for an extensive overview of this package.
npm package: @subbul/nestjs-plugin
Description: Subbul SDK for tracking metrics in your NestJS api
Author: Logan Bittner
Latest version: 1.1.0

# Subbul Fastify Plugin

NestJS plugin for [Subbul](https://subbul.com) - track your APIs core metrics with a few lines of code.

## Overview

Plug in the SDK into your Fastify application and instantly start tracking metrics such as

- Response times
- Requests per minute
- HTTP Status Codes
- Custom metrics

Once you are tracking your metrics, create alarms against them using the [Subbul](https://subbul.com) dashboard.

## Quick start

```js
import { MiddlewareConsumer, Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { Subbul, SubbulAllMetricsMiddleware, SubbulConfig } from '@subbul/nestjs-plugin';

const {
  initializeMiddleware,
  coreLibrary
} = Subbul({
  licenseKey: '<LICENSE KEY HERE>',
})

@Module({
  imports: [SubbulConfig.register(coreLibrary)],
  controllers: [AppController],
  providers: [AppService],
})
export class AppModule {
  async configure(consumer: MiddlewareConsumer) {
    await initializeMiddleware(consumer, SubbulAllMetricsMiddleware())
  }
}
```

## Documentation

Visit [the documentation](https://subbul.com/documentation/integrate/nestjs) for an extensive overview of this package.
npm package: @subburavi/react-socketio-context
Description: A compact, configurable React & React Native friendly Socket.IO context + manager with runtime listeners and hooks.
Author: R Subrahmanyam
Latest version: 0.1.0


# @subburavi/react-socketio-context

A compact, configurable **React & React Native** friendly Socket.IO context + manager with runtime listeners and hooks.

**Author:** R SUbrahmanyam

## Features

- Manage multiple named Socket.IO connections
- Add/remove listeners at runtime from any page/component
- Built-in support for optional per-socket or global `encrypt`/`decrypt` functions
- React Context + hooks: `SocketProvider`, `useSocketManager`, `useSocket`, `useEmit`, `useSocketListener`, `useOnSocket`
- Works with React and React Native (pass platform-specific device APIs from your app)
- Small dependency surface

## Install

```bash
npm install socket.io-client eventemitter3
# then add this package as a local dependency or build & publish
```

## Quick start

Wrap your app:

```tsx
import React from "react";
import { SocketProvider } from "@subburavi/react-socketio-context";

function App() {
  return (
    <SocketProvider>
      {/* ... */}
    </SocketProvider>
  );
}
```

Create sockets at runtime and listen anywhere:

```tsx
import { useSocketManager, useSocketListener, useOnSocket } from "@subburavi/react-socketio-context";

function Setup() {
  const { createSocket } = useSocketManager();
  React.useEffect(() => {
    createSocket({
      id: "main",
      url: "wss://your-server:3025",
      options: { transports: ["websocket"] },
      listeners: {
        "initial": (d) => console.log("initial", d)
      }
    });
  }, [createSocket]);
  return null;
}

function Page() {
  useSocketListener("main", "Notify", (data) => { console.log("Notify", data); }, []);
  return <div>Page</div>;
}
```

 
## License

MIT