open-index/open-npm huggingface dataset:
npm package: @myhublet/common
Description: The common code for all myhublet project, nodejs and react only
Author: Rommel Manalo
Latest version: 2.15.0

# myhublet.common

This is project for all common modules for myhublet (nodejs and react platform)

####Change Logs
#####v. 1.6.2
- (feat) uses the booking directly on the preSaveHooks, because we cannot pass the appSetting currently

#####v. 1.6.1
- (feat) Whenever the space is created, update user flag about hasListing

#####v. 1.6.0
- (feat) Added the webslider images

#####v. 1.5.5
- (feat) Able to edit the timezone


#####v. 1.5.4
- (feat) Added more notification templats

#####v. 1.5.1
- (feat) Send notification everytime there is a message updates

#####v. 1.5.0
- (feat) Added the dispute modules

#####v. 1.4.1
- (feat) Move the google calendar and stripe here


#####v. 1.4.0
- (feat) Updated the review utils
- (feat) Added the reviews on space grapql


#####v. 1.3.0
 - (feat) Added the tags and remarks on booking

#####v. 1.0.0
- (feat) Added the schema for entities



Check the email template generation at 
https://dashboard.unlayer.com/projects/5717/design/templates/15812
https://github.com/unlayer/react-email-editor
npm package: @myhublet/myhublet.common
Description: The common code for all myhublet project, nodejs and react only
Author: Rommel Manalo
Latest version: 1.6.3

# myhublet.common

This is project for all common modules for myhublet (nodejs and react platform)

####Change Logs
#####v. 1.6.2
- (feat) uses the booking directly on the preSaveHooks, because we cannot pass the appSetting currently

#####v. 1.6.1
- (feat) Whenever the space is created, update user flag about hasListing

#####v. 1.6.0
- (feat) Added the webslider images

#####v. 1.5.5
- (feat) Able to edit the timezone


#####v. 1.5.4
- (feat) Added more notification templats

#####v. 1.5.1
- (feat) Send notification everytime there is a message updates

#####v. 1.5.0
- (feat) Added the dispute modules

#####v. 1.4.1
- (feat) Move the google calendar and stripe here


#####v. 1.4.0
- (feat) Updated the review utils
- (feat) Added the reviews on space grapql


#####v. 1.3.0
 - (feat) Added the tags and remarks on booking

#####v. 1.0.0
- (feat) Added the schema for entities



Check the email template generation at 
https://dashboard.unlayer.com/projects/5717/design/templates/15812
https://github.com/unlayer/react-email-editor
npm package: @myhypernb/pbm-core
Description: Blockchain-first purpose-bound voucher core (on-chain rules, off-chain payouts).
Latest version: 0.1.0

# @castler/pbm-core

Tamper-proof, programmable vouchers (purpose-bound money) with on-chain enforcement and off-chain payouts.

- Solidity `PBMRegistry` enforces per-txn cap, total cap, expiry, MCC allow-list (Merkle).
- TypeScript SDK issues, redeems, builds proofs, and listens for on-chain events.

## Install

```bash
npm i @castler/pbm-core
```

## Quickstart

```ts
import { PBMClient } from "@castler/pbm-core";

const client = new PBMClient({ rpcUrl: process.env.RPC!, privateKey: process.env.KEY! });
const addr = await client.deploy();
console.log("PBMRegistry:", addr);
```

See `src/index.ts` exports for helpers like `policyHash`, `mccMerkleRoot`, and `canonicalPolicy`.

## Events → Off-chain Payouts

Subscribe to `Redeemed` and trigger settlement in your banking rail.

```ts
service.onRedeemed(async (e) => {
  // idempotency via (voucherId, nonce)
  await payoutMerchant({
    voucherId: e.voucherId,
    merchantIdHash: e.merchantIdHash,
    amountPaise: Number(e.amount),
    mcc: e.mcc,
    txHash: e.txHash
  });
});
```

## Security Notes

- Store only hashes/IDs on-chain; keep PII off-chain.
- Rebuild and verify MCC proofs server-side before submitting redemptions.
- Enforce idempotency in your payout processor using `(voucherId, nonce)`.
npm package: @myiam.io/web-sdk
Description: Zero-dependency OAuth2/PKCE authentication SDK for [MyIAM](https://myiam.io).
Latest version: 0.5.4

# @myiam.io/web-sdk

Zero-dependency OAuth2/PKCE authentication SDK for [MyIAM](https://myiam.io).

- **Client** (`@myiam.io/web-sdk/client`) — Browser-side PKCE authentication
- **Server** (`@myiam.io/web-sdk/server`) — Session management + REST API client
- Works with Node.js 18+, Edge Runtime, Deno, Bun

## Install

```bash
npm install @myiam.io/web-sdk
```

## Quick Start

### Client — Browser PKCE Authentication

```typescript
import {
  myiamInit,
  myiamLoginUrl,
  myiamHandleCallback,
  myiamRefreshToken,
  myiamLogoutUrl,
} from '@myiam.io/web-sdk/client'

// 1. Initialize (once at app startup)
myiamInit({
  serviceUid: 'YOUR_SERVICE_UID',
  oauth2ClientId: 'YOUR_CLIENT_ID',
})

// 2. Login
window.location.href = await myiamLoginUrl('https://example.com/callback')

// 3. Handle callback
const tokens = await myiamHandleCallback()

// 4. Refresh token
const newTokens = await myiamRefreshToken(tokens.refresh_token)

// 5. Logout
window.location.href = myiamLogoutUrl('https://example.com')
```

### Server — Session Management (Next.js, etc.)

```typescript
import { createMyiamServer } from '@myiam.io/web-sdk/server'

const myiam = createMyiamServer({
  serviceUid: 'YOUR_SERVICE_UID',
  oauth2ClientId: 'YOUR_CLIENT_ID',
  cookieSecret: 'YOUR_COOKIE_SECRET_32_CHARS_MIN',
  apiKey: 'YOUR_API_KEY',
})

// Login URL
const url = await myiam.login(callbackUrl, cookies)

// Handle callback → sets encrypted session cookie
await myiam.handleCallback(searchParams, cookies)

// Read session
const session = await myiam.getSession(cookies)

// REST API
const tokenInfo = await myiam.api.getTokenInfo(session.accessToken)
```

### API Only — Backend Services (Firebase Functions, etc.)

```typescript
import { createMyiamApi } from '@myiam.io/web-sdk/server'

const api = createMyiamApi({
  serviceUid: 'YOUR_SERVICE_UID',
  apiKey: 'YOUR_API_KEY',
})

const tokenInfo = await api.getTokenInfo(accessToken)
const user = await api.getUser({ accessToken })
const profile = await api.getServiceUserProfile({ accessToken, serviceUserUid })
```

## Documentation

For guides and API reference, visit [MyIAM Docs](https://myiam.io/docs).

- [React Quickstart](https://myiam.io/docs/quickstart/react)
- [Next.js Quickstart](https://myiam.io/docs/quickstart/nextjs)
- [Client SDK API Reference](https://myiam.io/docs/sdk/web/client)
- [Server SDK API Reference](https://myiam.io/docs/sdk/web/server)

## License

[MIT](./LICENSE)