open-index/open-npm huggingface dataset:
npm package: @hua-labs/api-lite
Description: HUA Lite API SDK - Emotional AI Chatbot Integration
Author: EchoNet-AIs
Latest version: 2.1.2
Deprecated: This package is deprecated. The HUA Lite API has been archived.

# @hua-labs/api-lite

TypeScript SDK for integrating with the HUA Lite emotional AI chatbot API. Supports guest and authenticated API keys, smart retry logic, emotion-based responses, credit management, and event-driven architecture.

[![npm version](https://img.shields.io/npm/v/@hua-labs/api-lite.svg)](https://www.npmjs.com/package/@hua-labs/api-lite)
[![npm downloads](https://img.shields.io/npm/dm/@hua-labs/api-lite.svg)](https://www.npmjs.com/package/@hua-labs/api-lite)
[![license](https://img.shields.io/npm/l/@hua-labs/api-lite.svg)](https://github.com/HUA-Labs/HUA-Labs-public/blob/main/LICENSE)
[![TypeScript](https://img.shields.io/badge/TypeScript-5.9-blue)](https://www.typescriptlang.org/)

## Features

- **Smart retry — Auto-retry on 502/503/504 with exponential backoff**
- **API key validation — Guest (64-char) and authenticated (hua_ prefix) keys**
- **Emotion-based responses — Configurable tone, mode, and tier**
- **Credit management — Track usage and remaining credits**
- **Event system — Request/response/error lifecycle events**
- **TypeScript — Full type safety with comprehensive interfaces**

## Installation

```bash
pnpm add @hua-labs/api-lite
```


## Quick Start

```typescript
import { HUALite } from '@hua-labs/api-lite';

const hua = new HUALite('hua_your_api_key');

const response = await hua.chat({
  message: '오늘 하루 힘들었어, 위로해줘!',
  tone: 'gentle',
  mode: 'empathy',
  tier: 1.0,
  provider: 'openai',
});

console.log(response.data.message);

```

## API

| Export | Type | Description |
|--------|------|-------------|
| `HUAError` | component |  |
| `MissingApiKeyError` | component |  |
| `ValidationError` | component |  |
| `NetworkError` | component |  |
| `TimeoutError` | component |  |
| `ServerError` | component |  |
| `AuthenticationError` | component |  |
| `InvalidApiKeyError` | component |  |
| `GuestKeyLimitExceededError` | component |  |
| `RateLimitExceededError` | component |  |
| `InsufficientCreditsError` | component |  |
| `MissingMessageError` | component |  |
| `InvalidToneError` | component |  |
| `InvalidModeError` | component |  |
| `InvalidTierError` | component |  |
| `InvalidLanguageError` | component |  |
| `OpenAIApiError` | component |  |
| `ConfigurationError` | component |  |
| `RetryLimitExceededError` | component |  |
| `createErrorFromResponse` | function |  |
| `isHUAError` | function |  |
| `isRetryableError` | function |  |
| `formatErrorMessage` | function |  |
| `HUALite` | class | Main SDK class — initialize with API key |


## Related Packages

- [`@hua-labs/hua`](https://www.npmjs.com/package/@hua-labs/hua)

## License

MIT — [HUA Labs](https://hua-labs.com)
npm package: @hua-labs/hooks
Description: Common React hooks for the hua ecosystem
Author: HUA Labs
Latest version: 1.1.4

# @hua-labs/hooks

A collection of commonly used React hooks optimized for the hua ecosystem. Provides loading state management, auto-scroll functionality, and performance monitoring.

[![npm version](https://img.shields.io/npm/v/@hua-labs/hooks.svg)](https://www.npmjs.com/package/@hua-labs/hooks)
[![npm downloads](https://img.shields.io/npm/dm/@hua-labs/hooks.svg)](https://www.npmjs.com/package/@hua-labs/hooks)
[![license](https://img.shields.io/npm/l/@hua-labs/hooks.svg)](https://github.com/HUA-Labs/hua-packages/blob/main/LICENSE)
[![TypeScript](https://img.shields.io/badge/TypeScript-5.9-blue)](https://www.typescriptlang.org/)
[![React](https://img.shields.io/badge/React-19-blue)](https://reactjs.org/)

## Features

- **useLoading — Loading state with delay, message, and async wrapper**
- **useAutoScroll — Auto-scroll for chat-like interfaces with threshold control**
- **usePerformanceMonitor — Runtime FPS, frame time, and memory tracking**

## Installation

```bash
pnpm add @hua-labs/hooks
```

> Peer dependencies: react >=19.0.0

## Quick Start

```tsx
import { useLoading, useAutoScroll } from '@hua-labs/hooks';

function ChatView({ messages }: { messages: Message[] }) {
  const { isLoading, withLoading } = useLoading({ delay: 200 });
  const { containerRef, scrollToBottom } = useAutoScroll([messages]);

  const handleSend = () => withLoading(() => sendMessage(), 'Sending...');

  return (
    <div ref={containerRef} style={{ overflow: 'auto', height: 400 }}>
      {messages.map((m) => <Message key={m.id} {...m} />)}
      {isLoading && <Spinner />}
    </div>
  );
}

```

## API

| Export | Type | Description |
|--------|------|-------------|
| `useLoading` | hook | Async loading state management with delay and message |
| `useAutoScroll` | hook | Chat-style auto-scroll with threshold control |
| `usePerformanceMonitor` | hook | Runtime FPS, frame time, and memory tracking |
| `UseLoadingOptions` | type |  |
| `UseLoadingReturn` | type |  |
| `UseAutoScrollOptions` | type |  |
| `UseAutoScrollReturn` | type |  |
| `PerformanceMonitorMetrics` | type |  |
| `UsePerformanceMonitorOptions` | type |  |

## Related Packages

- [`@hua-labs/hua`](https://www.npmjs.com/package/@hua-labs/hua)
- [`@hua-labs/ui`](https://www.npmjs.com/package/@hua-labs/ui)

## License

MIT — [HUA Labs](https://hua-labs.com)
npm package: @hua-labs/i18n-beginner
Description: HUA Labs - Internationalization SDK for Beginners (Simple Setup) - Korean/English support out of the box, easy to add other languages
Author: HUA Labs
Latest version: 2.0.0
Deprecated: Use @hua-labs/i18n-core instead. This package is no longer maintained. | @hua-labs/i18n-core를 대신 사용하세요. 이 패키지는 더 이상 유지보수되지 않습니다.
npm package: @hua-labs/i18n-core-zustand
Description: Zustand adapter for @hua-labs/i18n-core - Type-safe state management integration
Author: HUA Labs
Latest version: 2.2.0

# @hua-labs/i18n-core-zustand

Type-safe adapter for integrating Zustand state management with @hua-labs/i18n-core. Provides seamless language state synchronization with SSR hydration support and circular reference prevention.

[![npm version](https://img.shields.io/npm/v/@hua-labs/i18n-core-zustand.svg)](https://www.npmjs.com/package/@hua-labs/i18n-core-zustand)
[![npm downloads](https://img.shields.io/npm/dm/@hua-labs/i18n-core-zustand.svg)](https://www.npmjs.com/package/@hua-labs/i18n-core-zustand)
[![license](https://img.shields.io/npm/l/@hua-labs/i18n-core-zustand.svg)](https://github.com/HUA-Labs/hua-packages/blob/main/LICENSE)
[![TypeScript](https://img.shields.io/badge/TypeScript-5.9-blue)](https://www.typescriptlang.org/)
[![React](https://img.shields.io/badge/React-19-blue)](https://reactjs.org/)

## Features

- **Type-safe — Full TypeScript support**
- **Auto-sync — Zustand store changes automatically sync to i18n**
- **SSR compatible — Language syncs after hydration to prevent mismatches**
- **Circular reference prevention — Safe unidirectional data flow**
- **React Native — Works in Expo and bare RN projects**
- **Minimal — Only Zustand as peer dependency**

## Installation

```bash
pnpm add @hua-labs/i18n-core-zustand
```

> Peer dependencies: react >=19.0.0, zustand ^4.0.0 || ^5.0.0

## Quick Start

```tsx
import { createZustandI18n } from '@hua-labs/i18n-core-zustand';
import { useTranslation } from '@hua-labs/i18n-core';
import { useAppStore } from './store';

const I18nProvider = createZustandI18n(useAppStore, {
  fallbackLanguage: 'en',
  namespaces: ['common', 'navigation'],
  translationLoader: 'api',
  translationApiPath: '/api/translations',
  defaultLanguage: 'ko',
});

export default function Layout({ children }) {
  return <I18nProvider>{children}</I18nProvider>;
}

function MyComponent() {
  const { t } = useTranslation();
  return <h1>{t('common:welcome')}</h1>;
}

```

## API

| Export | Type | Description |
|--------|------|-------------|
| `createZustandI18n` | function | Create an i18n Provider integrated with Zustand store |
| `useZustandI18n` | hook | Hook returning { language, setLanguage } from Zustand |

## Documentation

[Full Documentation](https://docs.hua-labs.com)

## Related Packages

- [`@hua-labs/i18n-core`](https://www.npmjs.com/package/@hua-labs/i18n-core)
- [`@hua-labs/i18n-loaders`](https://www.npmjs.com/package/@hua-labs/i18n-loaders)
- [`@hua-labs/state`](https://www.npmjs.com/package/@hua-labs/state)

## License

MIT — [HUA Labs](https://hua-labs.com)
npm package: @hua-labs/i18n-loaders
Description: Production-ready loaders, caching, and preloading helpers for @hua-labs/i18n-core.
Author: HUA Labs
Latest version: 2.2.0

# @hua-labs/i18n-loaders

Production-ready translation loaders with built-in TTL caching, duplicate request prevention, and namespace preloading. Designed to work seamlessly with @hua-labs/i18n-core. Supports both server and client environments.

[![npm version](https://img.shields.io/npm/v/@hua-labs/i18n-loaders.svg)](https://www.npmjs.com/package/@hua-labs/i18n-loaders)
[![npm downloads](https://img.shields.io/npm/dm/@hua-labs/i18n-loaders.svg)](https://www.npmjs.com/package/@hua-labs/i18n-loaders)
[![license](https://img.shields.io/npm/l/@hua-labs/i18n-loaders.svg)](https://github.com/HUA-Labs/hua-packages/blob/main/LICENSE)
[![TypeScript](https://img.shields.io/badge/TypeScript-5.9-blue)](https://www.typescriptlang.org/)
[![React](https://img.shields.io/badge/React-19-blue)](https://reactjs.org/)

## Features

- **API loader — createApiTranslationLoader with configurable endpoints**
- **TTL caching — Time-based cache with global cache support**
- **Duplicate prevention — Deduplicates concurrent requests for the same resource**
- **Preloading — Warm up namespaces and fallback languages at startup**
- **React Native — Works in Expo and bare RN projects**
- **Default merging — Merge API translations with bundled defaults**

## Installation

```bash
pnpm add @hua-labs/i18n-loaders
```

> Peer dependencies: react >=19.0.0

## Quick Start

```tsx
import { createCoreI18n } from '@hua-labs/i18n-core';
import { createApiTranslationLoader, preloadNamespaces } from '@hua-labs/i18n-loaders';

const loader = createApiTranslationLoader({
  translationApiPath: '/api/translations',
  cacheTtlMs: 60_000,
  retryCount: 2,
});

// Preload at startup
preloadNamespaces('ko', ['common', 'dashboard'], loader);

// Use with i18n-core
const I18nProvider = createCoreI18n({
  defaultLanguage: 'ko',
  translationLoader: 'custom',
  loadTranslations: loader,
});

```

## API

| Export | Type | Description |
|--------|------|-------------|
| `createApiTranslationLoader` | function | Create API-based loader with caching and retry |
| `preloadNamespaces` | function | Preload translation namespaces |
| `warmFallbackLanguages` | function | Warm up fallback language caches |
| `withDefaultTranslations` | function | Merge API results with bundled defaults |
| `ApiLoaderOptions` | type |  |
| `CacheInvalidation` | type |  |
| `DefaultTranslations` | type |  |
| `PreloadOptions` | type |  |
| `TranslationLoader` | type |  |
| `TranslationRecord` | type |  |

## Documentation

[Full Documentation](https://docs.hua-labs.com)

## Related Packages

- [`@hua-labs/i18n-core`](https://www.npmjs.com/package/@hua-labs/i18n-core)
- [`@hua-labs/i18n-core-zustand`](https://www.npmjs.com/package/@hua-labs/i18n-core-zustand)
- [`@hua-labs/i18n-formatters`](https://www.npmjs.com/package/@hua-labs/i18n-formatters)

## License

MIT — [HUA Labs](https://hua-labs.com)
npm package: @huaapp001/m-play
Description: m-play
Author: m-play
Latest version: 0.0.23-rc.1

# m-play

m-play

## Installation

```sh
npm install m-play
```

## Usage


```js
import { multiply } from 'm-play';

// ...

const result = multiply(3, 7);
```


## Contributing

See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

## License

MIT

---

Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)