open-index/open-npm huggingface dataset:
npm package: @oxyhq/auth
Description: OxyHQ Web Authentication SDK — headless auth with React hooks for Next.js, Vite, and web apps
Author: OxyHQ
Latest version: 2.0.4

# @oxyhq/auth

OxyHQ Web Auth SDK. Headless React hooks for web applications. Zero React Native or Expo dependencies.

## Installation

```bash
npm install @oxyhq/auth
```

### Peer Dependencies

- `@oxyhq/core`
- `react`

### Dependencies

- `@tanstack/react-query`
- `zustand`
- `socket.io-client`
- `sonner`

## Contents

- **WebOxyProvider** — React context provider with auth state
- **useAuth** — hook for signIn, signOut, user, isAuthenticated
- **useWebOxy** — full context access including sessions, switchSession, clearSessionState
- **Query hooks** — useCurrentUser, useUserProfile, usePrivacySettings, useSecurityActivity, and more
- **Mutation hooks** — useUpdateProfile, useUploadAvatar, useSwitchSession, useLogoutSession, and more
- **Stores** — authStore, assetStore, accountStore, followStore (zustand)
- **useSessionSocket** — zero-config real-time session sync via WebSocket
- **Session management utilities**

## Usage

```tsx
import { WebOxyProvider, useAuth } from '@oxyhq/auth';
import type { User } from '@oxyhq/core';

function App() {
  return (
    <WebOxyProvider baseURL="https://api.oxy.so">
      <YourApp />
    </WebOxyProvider>
  );
}

function YourApp() {
  const { user, isAuthenticated, signIn, signOut } = useAuth();

  if (!isAuthenticated) {
    return <button onClick={() => signIn()}>Sign In</button>;
  }

  return <p>Welcome, {user?.name}</p>;
}
```

## Real-time Session Sync

`useSessionSocket` connects a WebSocket to the API and listens for session events (remote sign-out, device removal, etc.). It requires **zero configuration** — all auth state is pulled from `WebOxyProvider` context automatically.

```tsx
import { useSessionSocket } from '@oxyhq/auth';

function App() {
  // Zero-config — just call it
  useSessionSocket();
}
```

Optional callbacks for custom handling:

```tsx
useSessionSocket({
  onRemoteSignOut: () => router.push('/login'),
  onSessionRemoved: (sessionId) => console.log('Session removed:', sessionId),
});
```

### Migration from v1.x

v1.x required passing 8+ props manually. In v2.0 all state is derived from context:

```diff
- useSessionSocket({
-   userId, activeSessionId, currentDeviceId,
-   refreshSessions, logout, clearSessionState,
-   baseURL, getAccessToken,
- });
+ useSessionSocket();
```
npm package: @oxyhq/bloom
Description: Bloom UI — Oxy ecosystem component library for React Native + Expo + Web
Latest version: 0.1.29

## Theme & Color Presets

Bloom ships a theme system with four modes and eleven presets.

- Modes: `light`, `dark`, `system`, `adaptive`.
- Presets: `teal`, `blue`, `green`, `amber`, `yellow`, `red`, `purple`, `pink`, `sky`, `orange`, `mint`, `oxy`.

`adaptive` uses iOS/Android native dynamic colors when available and falls back to the selected preset otherwise. On web, adaptive behaves like `system`.

Wrap your app with `BloomThemeProvider` and pass your preferred mode/preset. Use `hexToAppColorName` to map arbitrary brand colors to the closest preset.

```tsx
import { BloomThemeProvider } from '@oxyhq/bloom/theme';

<BloomThemeProvider mode="system" colorPreset="oxy">
  <App />
</BloomThemeProvider>
```

Use `BloomColorScope` to tint a subtree with a different preset without changing the global theme.

```tsx
<BloomColorScope colorPreset="mint">
  <ProfileCard />
</BloomColorScope>
```
npm package: @oxyhq/core
Description: OxyHQ SDK Foundation — API client, authentication, cryptographic identity, and shared utilities
Author: OxyHQ
Latest version: 1.11.11

# @oxyhq/core

OxyHQ SDK Foundation. Platform-agnostic core library that works in Node.js, browser, and React Native environments. No React dependency.

## Installation

```bash
npm install @oxyhq/core
```

## Contents

- **OxyServices API client** — all API methods for interacting with OxyHQ services
- **AuthManager, CrossDomainAuth** — authentication and cross-domain session handling
- **Crypto** — KeyManager, SignatureService, RecoveryPhraseService
- **Models and types** — User, ApiError, ClientSession, and more
- **i18n** — translate function and locale files
- **Shared utilities** — color, theme, error, network, debug helpers
- **Platform detection utilities**
- **Device management**

## Exports

The package exposes three entry points:

- `@oxyhq/core` — main entry (API client, auth, models, i18n, platform, device)
- `@oxyhq/core/crypto` — cryptographic utilities (KeyManager, SignatureService, RecoveryPhraseService)
- `@oxyhq/core/shared` — shared utilities (color, theme, error, network, debug)

## Usage

```ts
import { OxyServices, oxyClient } from '@oxyhq/core';
import type { User, ApiError } from '@oxyhq/core';

// Get user
const user = await oxyClient.getUserById('123');

// Crypto
import { KeyManager, SignatureService } from '@oxyhq/core/crypto';
const keyManager = new KeyManager();
```

## Build

```bash
npm run build
```

Compiles with TypeScript, producing CJS, ESM, and type declaration outputs.
npm package: @oxyvn/ngx-gallery
Description: A simple responsive native gallery component for Angular 8+ and 13+.
Author: Andrey kolkov
Latest version: 18.0.1

# Gallery

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.0.0-rc.3.

## Code scaffolding

Run `ng generate component component-name --project gallery` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project gallery`.
> Note: Don't forget to add `--project gallery` or else it will be added to the default project in your `angular.json` file. 

## Build

Run `ng build gallery` to build the project. The build artifacts will be stored in the `dist/` directory.

## Publishing

After building your library with `ng build gallery`, go to the dist folder `cd dist/gallery` and run `npm publish`.

## Running unit tests

Run `ng test gallery` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).