open-index/open-npm huggingface dataset:
npm package: @sha-intelligence/template-shared
Description: Shared AI engine, types, and utilities for CoreComm template microservices
Author: CoreComm
Latest version: 1.1.0

# @sha-intelligence/template-shared

Shared AI engine, types, and utilities for CoreComm template microservices.

## Installation

```bash
npm install @sha-intelligence/template-shared
```

## Usage

### AI Engine

```typescript
import { AIOrchestrator, IntentClassifier, ResponseGenerator } from '@corecomm/template-shared/ai';

const orchestrator = new AIOrchestrator({
  openaiApiKey: process.env.OPENAI_API_KEY,
});

const result = await orchestrator.process({
  conversationId: 'conv-123',
  message: 'I need help with my order',
  channel: 'chat',
});
```

### Authentication

```typescript
import { createAuthMiddleware, validateApiKey } from '@corecomm/template-shared/auth';

// Express middleware
app.use('/api', createAuthMiddleware({
  corePlatformUrl: process.env.CORE_PLATFORM_URL,
  templateSecret: process.env.TEMPLATE_SECRET,
}));
```

### Database

```typescript
import { createDbClient, ConversationRepository } from '@corecomm/template-shared/db';

const db = createDbClient(process.env.DATABASE_URL);
const conversationRepo = new ConversationRepository(db);
```

### Utilities

```typescript
import { logger, validateInput, AppError } from '@corecomm/template-shared/utils';

logger.info('Server started', { port: 3001 });
```

## Exports

| Path | Description |
|------|-------------|
| `@corecomm/template-shared` | Main exports (types, config) |
| `@corecomm/template-shared/ai` | AI orchestrator, classifiers, generators |
| `@corecomm/template-shared/auth` | Authentication middleware |
| `@corecomm/template-shared/db` | Database client and repositories |
| `@corecomm/template-shared/utils` | Logger, validation, error handling |

## Development

```bash
# Install dependencies
npm install

# Build
npm run build

# Watch mode
npm run dev

# Run tests
npm test
```

## Publishing

```bash
# Bump version
npm version patch|minor|major

# Publish to npm
npm publish --access public
```
npm package: @shaaakh/ngx-webstorage
Description: Angular 9+ decorator to save and restore of HTML5 Local&Session Storage
Author: MRebati
Latest version: 1.0.0

# angular-web-storage
Angular decorator to save and restore of HTML5 Local&Session Storage

[![NPM version](https://img.shields.io/npm/v/@shaakh/ngx-webstorage.svg)](https://www.npmjs.com/package/@shaaakh/ngx-webstorage)
[![Build Status](https://travis-ci.org/@shaakh/ngx-webstorage.svg?branch=master)](https://travis-ci.org/@shaaakh/ngx-webstorage)


## Version

- Angular 9 `1.x`

### 1、Usage

install `@shaaakh/ngx-webstorage` from `npm`

```
npm install @shaaakh/ngx-webstorage --save
```

Import the `AngularWebStorageModule` in your module.

```typescript
import { AngularWebStorageModule } from 'angular-web-storage';

@NgModule({
    imports: [ 
        BrowserModule,
        AngularWebStorageModule
    ],
    declarations: [AppComponent],
    bootstrap: [AppComponent]
})
export class AppModule { }
```

### 2、Examples

1. using `LocalStorage` or `SessionStorage` decorator.

```typescript
import { Component } from '@angular/core';
import { LocalStorageService, SessionStorageService, LocalStorage, SessionStorage } from 'angular-web-storage';

@Component({
    selector: 'demo',
    templateUrl: './demo.component.html'
})
export class DemoComponent {

    @LocalStorage() localValue: Object = { text: `Hello ${+new Date}`};
    // Set storage key and expire after 10 hours
    @LocalStorage('newKey', 10, 'h') localValue2: Object = { text: `Hello ${+new Date}`};
    @SessionStorage() sessionValue: string = `Hello ${+new Date}`;

}
```

2. using `LocalStorageService` or `SessionStorageService` service.

```typescript
import { Component } from '@angular/core';
import { LocalStorageService, SessionStorageService, LocalStorage, SessionStorage } from 'angular-web-storage';

@Component({
    selector: 'demo',
    templateUrl: './demo.component.html'
})
export class DemoComponent {

    constructor(public local: LocalStorageService, public session: SessionStorageService) { }

    KEY = 'value';
    value: any = null;

    set(expired: number = 0) {
        this.local.set(this.KEY, { a: 1, now: +new Date }, expired, 's');
    }

    remove() {
        this.local.remove(this.KEY);
    }

    get() {
        this.value = this.local.get(this.KEY);
    }

    clear() {
        this.local.clear();
    }
}

```

### Expired Time Unit

+ `s` Second.
+ `m` Minute.
+ `h` Hour.
+ `d` Day.
+ `w` Week(equar 7 Day).
+ `y` Year.
+ `t` Custom(unit: millisecond).

## Troubleshooting

Please follow this guidelines when reporting bugs and feature requests:

1. Use [GitHub Issues](https://github.com/shaaakh/ngx-webstorage/issues) board to report bugs and feature requests (not our email address)
2. Please **always** write steps to reproduce the error. That way we can focus on fixing the bug, not scratching our heads trying to reproduce it.

Thanks for understanding!

### License

The MIT License (see the [LICENSE](https://github.com/shaaakh/ngx-webstorage/blob/master/LICENSE) file for the full text)
npm package: @shaack/auto-resize-textarea
Description: Auto resizing textareas, can be used with bootstrap
Author: shaack.com
Latest version: 1.1.9

# auto-resize-textarea

Auto resizes the height of any `<textarea>` to match the text input.

- No dependencies
- Works also with Bootstrap

## References

- [Demo page](https://shaack.com/projekte/auto-resize-textarea/)
- [GitHub repository](https://github.com/shaack/auto-resize-textarea)
- [npm package](https://www.npmjs.com/package/@shaack/auto-resize-textarea)

## Usage

```html
<textarea class="auto-resize"></textarea>

<script src="src/auto-resize-textarea.js"></script>
<script>
    autoResizeTextarea(document.querySelectorAll("textarea.auto-resize"), {maxHeight: 320})
</script>
```

## Installation

```bash
npm -i @shaack/auto-resize-textarea
```

---

Find more high quality modules from [shaack.com](https://shaack.com)
on [our projects page](https://shaack.com/works).
npm package: @shaadi-response/react-scripts
Description: (CRA Fork) For Webpack
Latest version: 1.0.8

# react-scripts

This package includes scripts and configuration used by [Create React App](https://github.com/facebook/create-react-app).<br>
Please refer to its documentation:

- [Getting Started](https://facebook.github.io/create-react-app/docs/getting-started) – How to create a new app.
- [User Guide](https://facebook.github.io/create-react-app/) – How to develop apps bootstrapped with Create React App.