open-index/open-npm huggingface dataset:
npm package: @hazemaltakriti/hyperloglog
Description: TypeScript implementation of HyperLogLog algorithm
Author: Hazem Altakriti
Latest version: 1.0.1

# HyperLogLog

A TypeScript implementation of the HyperLogLog algorithm for cardinality estimation.

## Installation

```bash
npm install @hazemaltakriti/hyperloglog
```

## Usage

```typescript
import { HyperLogLog } from '@hazemaltakriti/hyperloglog';

// Create a new HyperLogLog instance with default precision (14)
const hll = new HyperLogLog();

// Add elements
hll.add('item1');
hll.add('item2');
hll.add('item3');

// Get the estimated cardinality
const count = hll.count();
console.log(`Estimated unique elements: ${count}`);
```

## API

### Constructor

```typescript
new HyperLogLog(precision?: number)
```

- `precision`: Optional. Number between 4 and 16. Default is 14. Higher precision means better accuracy but more memory usage.

### Methods

#### add(element: string | number): void
Adds an element to the HyperLogLog counter.

#### count(): number
Returns the estimated cardinality (number of unique elements).

## Development

```bash
# Install dependencies
npm install

# Run tests
npm test

# Build the project
npm run build
```


## Authors

- **Hazem Altakriti** - *Senior Backend Developer*
  - [LinkedIn](https://www.linkedin.com/in/hazem-altakriti-a559a91b8/)
  - [Medium](https://medium.com/@hazemaltakriti)
  

## Acknowledgments

This implementation is based on the seminal paper:
- Flajolet, P., Fusy, É., Gandouet, O., & Meunier, F. (2007). [HyperLogLog: the analysis of a near-optimal cardinality estimation algorithm](https://algo.inria.fr/flajolet/Publications/FlFuGaMe07.pdf). In *Proceedings of the 2007 International Conference on Analysis of Algorithms*.
npm package: @hazemazzam/form-controlled
Description: Generic react-hook-form controlled field wrapper
Author: hazemazzam
Latest version: 1.0.3

# @hazemazzam/form-controlled

Generic `react-hook-form` controlled field wrapper.

## Install

```bash
npm i @hazemazzam/form-controlled
```

## Usage

```tsx
import { Controlled } from "@hazemazzam/form-controlled";
import { Input } from "./Input";

<Controlled name="title" label="Title" changeProp="onChange">
  <Input />
</Controlled>;
```

## Switch example

```tsx
<Controlled
  name="isActive"
  label="Is Active"
  valueProp="checked"
  changeProp="onCheckedChange"
  emptyValue={false}
>
  <Switch />
</Controlled>
```
npm package: @hazeofglory/rtc-test
Description: <div align="center">   <img src="https://github.com/oslabs-beta/ReactRTC/blob/master/project_assets/ReactRTC2.png" alt="ReactRTC" width="400"></a>   <br>   <br> </div>
Latest version: 0.0.38

<div align="center">
  <img src="https://github.com/oslabs-beta/ReactRTC/blob/master/project_assets/ReactRTC2.png" alt="ReactRTC" width="400"></a>
  <br>
  <br>
</div>


ReactRTC-beta is a JS library that brings the real-time communication capabilities of WebRTC into React applications. 

ReactRTC simplifies the implementation of WebRTC by providing developers with a customizable react component and signalling server module for the back-end.

<h2>Features</h2>

- Live video & audio streaming capabilities. 
- GUI interface providing key user functionality.
- Signalling server module utilizing websockets.
- Multi-user support through the implementation of server side rooms.

<h2>Installing</h2>
<br>
<pre>npm install react-rtc-real</pre>

ReactRTC runs on React^16.11.0 and requires the following dependencies to operate. 

Import the `<RTCMesh />` component into your React application to begin.
<br>
<pre>import RTCMesh from 'react-rtc-real';
import '@core-js/stable';
require('react-rtc-real/assets/index.css');</pre>

To set the URL of the signaling server pass the URL into props like so.
<br>
`<RTCMesh URL=*url goes here* />`

URL must be a websocket, pre-pended with wss://
<br>
![Import Demo](https://github.com/oslabs-beta/ReactRTC/blob/master/project_assets/Demo-import.png?raw=true)
<br>
<br>
*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*

To set up Signaling Server to find remote client, import to your server.js file.
There should only be 3 lines of code added to your server.js file, numbered below.
(assuming Node/Express is being used):
<pre>[1]: const SignalServer = require('react-rtc-real/server/SignalServer.js'); </pre>

Find your server instance, which will be invoking the http.createServer(), for example:
<pre> const server = https.createServer(app); </pre>

Create the Signal Server instance and connect to it:
<pre>[2]: const signal = new SignalServer({ server });
[3]: signal.connect(); </pre>

Make sure your server instance is listening for the PORT number, like so:
<pre>server.listen(3000, () => console.log('listening on 3000'));</pre>

Choose your preferred tech for exposing a PORT for Signal Server.

Using ngrok: https://ngrok.com/download

Use the same PORT number and call in terminal (ie. 3000):
<pre> ./ngrok http 3000 </pre>

Using LocalTunnel: <pre>npm install -g localtunnel</pre>
<pre>lt --port 3000 --subdomain chooseUniqueName</pre>

<br>

![Signal Demo](https://github.com/oslabs-beta/ReactRTC/blob/master/project_assets/Demo-signal.png?raw=true)

<br>
<br>
*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*

<br>
Demo
<br>

![Use Gif](https://github.com/oslabs-beta/ReactRTC/blob/master/project_assets/demo-use.gif?raw=true)

<br>
<br>
*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*

<h2>Authors</h2>

- Michael Romero
- Joseph Wolensky
- Diane Wu
- Edwin Lin

<h2>Licenses</h2>

This project is licensed under the MIT License - see the LICENSE file for details