open-index/open-npm huggingface dataset:
npm package: @katesclau/event-store-node
Description: Event Store Node Client (Based on REST API)
Author: Diego Ferreira
Latest version: 0.0.2

# Event Store NodeJS Client (using HTTP API)

[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=katesclau_event-store-node&metric=alert_status)](https://sonarcloud.io/dashboard?id=katesclau_event-store-node)

Simple Event Store Client (using Rest HTTP API), based on Axios promises.

## Event Store

Event Store is a service that allows us to store events in a TSDB way, but it also performs neatly as an EventBus for connecting multiple services within a platform or solution.

This client aims to aid in such efforts by providing an easy way to connect, post and subscribe to events.

More on EventStore at
https://eventstore.com/

## Requirements

- node.js > 10
- an Event Store running instance

## Getting Started

`npm i --save katesclau/event-store-node` or `yarn add katesclau/event-store-node`

```
import EventStoreClient from '../src/index';
import { Entry, UserCreateInput, Direction, UserRole, EventStoreOptions } from '../@types/eventStore';

// Connection options
const options: EventStoreOptions = {
  url: 'http://localhost:2113',
  user: process.env?.EVENTSTORE_USER ?? 'admin',
  password: process.env?.EVENTSTORE_PASSWORD ?? 'changeit',
};

// Client instance
const client = new EventStoreClient(options);

// Post your event
const response = await client.postEvent('STREAM_NAME', 'EVENT_TYPE', {
    message: 'my first event'
});
```

## Features

- Post Event to Stream ✔
- Subscribe to Streams (Using persistent subscribers) ✔
- Read Stream Events (Historical & Conditional) ✔
- User Management (CRUD) ✔

## TODO

- Projections (CRUD)
- Misc (Description, Node info, Ping, Gossip...)
- ACL Management (Streams metadata)

## REST reference

PostMan Collection
[🔗](./assets/EventStore.postman_collection.json)
npm package: @katesthings/smartcontrols
Description: SmartThings controls and sensor values
Author: David H. Kates
Latest version: 1.0.6

# controls

Convenience functions to get state/value of SmartThings automation controls in lambda functions

# Instructions

- To install: **npm i @katesthings/smartcontrols --save**
- To include: **const SmartSensor = require(@katesthings/smartcontrols);**
npm package: @katesthings/smartdevice
Description: Convenience functions to get state/value of SmartThings devices in lambda functions
Author: David H. Kates
Latest version: 1.0.6

# smartdevice

Convenience functions to get state/value of SmartThings devices in lambda functions

# Instructions

- To install: **npm i @katesthings/smartdevice --save**
- To include: **const SmartDevice = require(@katesthings/smartdevice);**
npm package: @katesthings/smartsonos
Description: Utility functions to control Sonos speakers
Author: David H. Kates
Latest version: 0.0.17

# smartsonos

Utility functions to control Sonos speakers

# Instructions

- To install: **npm i @katesthings/smartsonos --save**
- To include: **const SmartSonos = require(@katesthings/smartsonos);**
npm package: @katesthings/smartstate
Description: AWS Lambda utilities to store and retrieve in DynamoDB for SmartThings SmartApps
Author: David H. Kates
Latest version: 1.0.26

# smartstate

AWS Lambda utilities to store and retrieve data in DynamoDB for SmartThings SmartApps

# Instructions

- To install: **npm i @katesthings/smartstate --save**
- Prerequisites: **npm i @aws-sdk/client-dynamodb --save**
- To include: **const smartstate = require(@katesthings/smartstate);**

# Functions
* getState( context, name )
* putState( context, name, value )
* getValue( table, name )
* putValue( table, name, value )
* getHomeMode( home, type )
* putHomeMode( home, type, mode )
npm package: @katesthings/smartutils
Description: Utility functions for SmartThings automation lambda functions
Author: David H. Kates
Latest version: 1.0.8

# smartutils

Utility functions for SmartThings automation lambda functions

# Instructions

- To install: **npm i @katesthings/smartutils --save**
- To include: **const SmartUtils = require(@katesthings/smartutils);**
npm package: @kathan/send-file
Description: A Javascript module that simplifies sending files over HTTP ports.
Latest version: 0.1.2

# send-file
A Javascript module that simplifies sending files over HTTP ports.

## Usage:
Create a server...
```js
const path = require('path');
const bodyParser = require('body-parser');
const express = require('express');
const fileUpload = require('express-fileupload');
const app = express();
const port = 4536;

//==== Start Server ====
app.use(bodyParser.urlencoded({ extended: true })); 
app.use(fileUpload());
app.post('*', (req, res) => {
  console.log({file_name: req.files.file.name, data: req.files.file.data.toString()});
  res.send('Success!');
});

var server = app.listen(port, () => {
  console.log(`Test app listening on port ${port}!`);
});
```
...then send a file!
```js
const sendFile = require('send-file');
const port = 4536;

//==== Send File ====
sendFile(`http://localhost:${port}`, path.resolve(__dirname, 'test.file'), (err, result, reply)=>{
  if(result){
    console.log('Success!');
  }else{
    console.log('Error!', reply.statusCode);
  }
});
```
npm package: @kathan/send-it
Description: A Javascript module that simplifies sending files and data over HTTP.
Latest version: 0.0.1

# send-it
A Javascript module that simplifies sending files and data over HTTP.

## Usage:
Create a server...
```js
const path = require('path');
const bodyParser = require('body-parser');
const express = require('express');
const fileUpload = require('express-fileupload');
const app = express();
const port = 8080;

//==== Start Server ====
app.use(bodyParser.urlencoded({ extended: true })); 
app.use(fileUpload());
app.post('*', (req, res) => {
  console.log({file_name: req.files.file.name});
  res.send('Success!');
});

var server = app.listen(port, () => {
  console.log(`Test app listening on port ${port}!`);
});
```
...then send a file!
```js
const sendIt = require('send-it');
const port = 8080;

//==== Send File ====
sendIt(`http://localhost:${port}`, path.resolve(__dirname, 'test.file'), (err, result, reply)=>{
  if(result){
    console.log('Success!');
  }else{
    console.log('Error!', reply.statusCode);
  }
});
```
npm package: @kathedevsigns/uikit
Description: UI Kit for Kathedevsigns components
Author: kathefeb
Latest version: 1.0.8

## 🌟 **Kathedevsigns Storybook**

Kathedevsigns UIKit is a reusable component library that helps contributors build UIs faster. The goal is to make building durable UIs more productive and satisfying, following the Kathedevsigns Design System guidelines.

<br/>

## 💫 **Install**

Kathedevsigns UIKit components are written in React

Add to your project.

`npm install --save @kathedevsigns/uikit`

<br/>

## 🔥 **Use**

Add **required** font into **index.html**:

```html
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
```

Import stylesheet in your **root app entry**:

```javascript
// app.tsx, app.jsx
import '@kathedevsigns/uikit/dist/kathedevsigns-uikit.css';
```

Import components you want into your UI

```javascript
// view.tsx, view.jsx
import { Button } from '@kathedevsigns/uikit';

export const View = (): JSX.Element => {
  return (
    <Button onClick={() => {}} variant="primary-blue">
      Click me
    </Button>
  );
};
```

<br/>

## ⚡️ **Run and develop SDS locally**

<br/>

Clone the [Kathedevsigns UIKit GitHub project]() then start Storybook.

`npm install && npm run storybook`

<br/>

## 🚀 **New Features added**

- 💡 Instant Server Start
- ⚡️ Lightning Fast HMR
- 🎨 Custom Styling
- 📦 Optimized Build
- 🔩 Atomic Design
- 🔑 Fully Typed
  <br/>

## 📚 **How to contribute**

Prerequisites, must have:

- Node.js v18+
- NPM v9+
- EditorConfig for VS Code [Install](https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig)
- Prettier [Install Prettier](https://github.com/prettier/prettier-vscode)
- Eslint [Install Eslint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)
- Tailwind CSS IntelliSense [Install Tailwind CSS IntelliSense](https://marketplace.visualstudio.com/items?itemName=bradlc.vscode-tailwindcss)
- Familiarity with [pull requests](https://help.github.com/articles/using-pull-requests) and [issues](https://guides.github.com/features/issues/).

<br/>

## 🌱 **PR Format to contribute:**

```
Ticket:

* Link of Jira Ticket

Description:

* Description about the task

Type of change:

[x] Fix (non-breaking change which fixes an issue)
[] Feature (non-breaking change which adds functionality)
[] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[] Other, chore, refactor

Changes:

* Description of changes

Screenshots (if apply)
```

 <br/>

## 🪴 **Third Party Dependencies**

This is a list of dependencies that are user for this module:

- [vite]()
- [vitest]()
- [Husky]()
- [Storybook]()
- [Tailwindscss]()
- [Typescript]()
- [classnames]()
- [React Router DOM]()
- [Some Other]()

## ⚠️ Licenses

Copyright © 2023 Viking Sasquatch. All rights reserved.
npm package: @katherine0895/random.str.msg
Description: Random String Messages
Author: Katherine
Latest version: 1.1.0

# random-str-msg

Whenever I start a new project, I don't know what to write for the first commit. After doing a â€œgit initâ€ there is technically nothing there...

## Install

```npm
npm install -g random.str.msg
```

# Usage

```bash
 random.str.msg
```

# Contributing

If someone wants to add or improve something, I invite you to collaborate directly in this repository: [random-str-msg](https://github.com/gndx/random-str-msg)

# License

funny-commit is released under the [MIT License](https://opensource.org/licenses/MIT).
npm package: @katherineheadshall/cookies
Description: Skip the hard managment of cookies in the front-end, the best and most customizable cookies management lib for front-end in the world!
Author: katherineheadshall
Latest version: 1.0.6

## Cookies

Skip the hard steps to manage the cookie in the front-end, use the standard from W3C.

> Legacy release, reach github for release notes.

## Install

```
$ npm install --save @katherineheadshall/cookies
```

## Usage

__`setObject`__

```js
import { setObject } from '@katherineheadshall/cookies';

let user = setObject('user', {id: 1, username: 'example user'});
console.log(user); // returns the parsed stored cookie in cookie format
```

## Example

__`getObject`__
```js
import { getObject } from '@katherineheadshall/cookies';
// can also be imported as comonjs module:
// const cookies = require('@katherineheadshall/simple-storage');
// Getting an already stored user object
getObject('user').then(user => {
  console.log(user);
  // => {object}
});
```

## API

```js
// you can provide an default value if the cookie cannot be found, this also works for getObject
storage.get('cookieName', null)
```

`cookieName` `:`  __`string`__

| __`cookies-available-methods`__      | __`Output`__  |
|---------------------------------------------|---------------|
| __`get`__                                   | `string or defaultValue`      |
| __`set`__                                   | `string`      |
| __`setObject`__                             | `any`         |
| __`getObject`__                             | `string or defaultValue`         |
| __`remove`__                                | `string`        |

## Remove an already created Cookie

```js
// commonjs
cookies.remove('cookieName')
```

```js
// es6
remove('cookieName')
```

## License

[MIT](https://github.com/katherineheadshall/simple-storage/blob/main/LICENSE)
npm package: @katherineheadshall/emoji-mart-react
Description: React wrapper for Emoji Mart; the emoji picker for the web.
Latest version: 1.1.2

# `@katherineheadshall/emoji-mart-react`

A React wrapper for [EmojiMart](https://missiveapp.com/open/emoji-mart).

## 🧑‍💻 Usage
```sh
npm install --save emoji-mart @katherineheadshall/emoji-mart-data @katherineheadshall/emoji-mart-react
```

```js
import data from '@katherineheadshall/emoji-mart-data'
import Picker from '@katherineheadshall/emoji-mart-react'

function App() {
  return (
    <Picker data={data} onEmojiSelect={console.log} />
  )
}
```

## 📚 Documentation
Original documentation by Missive: https://github.com/missive/emoji-mart#react
npm package: @katherineheadshall/simple-storage
Description: Simple LocalStorage library written in TypeScript.
Author: katherineheadshall
Latest version: 2.0.3

## simple-storage

A Typescrit written module to help you manage locastorage data, it's tiny, well tested, and ready for production.

> Version 2.0.0

## Install

```bash
pnpm i @katherineheadshall/simple-storage
```

## Usage

__`get`__
```ts
import { ktget } from '@katherineheadshall/simple-storage';

// Getting an already stored user object
const user = ktget('user');
console.log(user);
// => {object}
```

## Example

__`ktsetObject`__

```ts
let user = ktsetObject('user', {id: 1, username: 'example user'});
console.log(user);
// already returns the parsed stored item => {id: 1, username: 'example user'}
```

## API

```ts
ktget('key')
```

`key` `:`  __`string`__

| __`simple-storage-available-methods`__        | __`Output`__  |
|-----------------------------------------------|---------------|
| __`ktget`__                                   | `string`      |
| __`ktset`__                                   | `string`      |
| __`ktsetObject`__                             | `any`         |
| __`ktgetObject`__                             | `any`         |
| __`ktgetUniqueKey`__                          | `string`      |
| __`ktremove`__                                | `undefined`   |

## Remove an already stored item

```ts
ktremove('item')
```

## License

[MIT](https://github.com/katherineheadshall/simple-storage/blob/main/LICENSE)