open-index/open-npm huggingface dataset:
npm package: @open-kingdom/shared-poly-util-constants
Description: Shared constants used across both backend (NestJS) and frontend (React) packages in the OpenKingdom monorepo, preventing magic string duplication for cross-package injection tokens and configuration keys.
Latest version: 0.0.2-16

# @open-kingdom/shared-poly-util-constants

Shared constants used across both backend (NestJS) and frontend (React) packages in the OpenKingdom monorepo, preventing magic string duplication for cross-package injection tokens and configuration keys.

---

## Exports

| Export   | Type     | Value  | Description                                              |
| -------- | -------- | ------ | -------------------------------------------------------- |
| `DB_TAG` | `string` | `'DB'` | NestJS injection token for the Drizzle database instance |

---

## Usage

### Backend: Providing the database (NestJS + Drizzle)

```typescript
import { DB_TAG } from '@open-kingdom/shared-poly-util-constants';

// In DatabaseSetupModule.register() — the module provides the Drizzle DB with this token:
DatabaseSetupModule.register({
  schema: mySchema,
  tag: DB_TAG, // 'DB'
});
```

### Backend: Injecting the database into a service

```typescript
import { Injectable, Inject } from '@nestjs/common';
import { DB_TAG } from '@open-kingdom/shared-poly-util-constants';
import { NodePgDatabase } from 'drizzle-orm/node-postgres';

@Injectable()
class MyService {
  constructor(@Inject(DB_TAG) private db: NodePgDatabase<typeof schema>) {}

  async findAll() {
    return this.db.select().from(schema.users);
  }
}
```

### Why this constant exists

`DatabaseSetupModule` provides the Drizzle DB instance under a string injection token. Any service that needs the database must inject it using the same token string. Without a shared constant, both sides use a magic string literal `'DB'` — a typo on either side would produce a silent runtime DI failure. Importing from this package ensures both are always in sync.

---

## Testing

```bash
nx test shared-poly-util-constants
```
npm package: @open-kingdom/shared-poly-util-date
Description: Shared date utility functions that work in both Node.js and browser environments, providing common date formatting helpers with no external library dependencies.
Latest version: 0.0.2-16

# @open-kingdom/shared-poly-util-date

Shared date utility functions that work in both Node.js and browser environments, providing common date formatting helpers with no external library dependencies.

---

## Exports

| Export                  | Signature                                    | Description                                                                                                                                      |
| ----------------------- | -------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| `formatDate(timestamp)` | `(timestamp: number \| undefined) => string` | Formats a Unix millisecond timestamp as a locale date string using `toLocaleDateString()`; returns `'—'` (em-dash) if `timestamp` is `undefined` |

---

## Usage

```typescript
import { formatDate } from '@open-kingdom/shared-poly-util-date';

// With a valid timestamp:
formatDate(1709337600000); // '3/2/2026' (locale-dependent)

// With undefined (e.g., missing data):
formatDate(undefined); // '—'

// Typical usage with Invitation data:
const expiry = formatDate(invitation.tokenExpiry);
const invitedAt = formatDate(invitation.invitedAt);
```

---

## Behavior Details

- Uses `new Date(timestamp).toLocaleDateString()` — output format depends on the runtime's locale
- The placeholder `'—'` (Unicode em-dash `\u2014`) is returned when `timestamp` is `undefined`
- No external dependencies — uses only the native `Date` API

---

## No External Dependencies

This library has no dependencies beyond the JavaScript runtime's built-in `Date` object. It is safe to import in any environment (browser, Node.js, Deno, edge runtimes).

---

## Testing

```bash
nx test shared-poly-util-date
```
npm package: @open-lens/nestjs-crud
Description: This library was generated with [Nx](https://nx.dev).
Latest version: 0.0.18

# nestjs-crud

This library was generated with [Nx](https://nx.dev).

## Building

Run `nx build nestjs-crud` to build the library.

## Running unit tests

Run `nx test nestjs-crud` to execute the unit tests via [Jest](https://jestjs.io).
npm package: @open-lens/nestjs-crud-request
Description: This library was generated with [Nx](https://nx.dev).
Latest version: 0.0.18

# nestjs-crud-request

This library was generated with [Nx](https://nx.dev).

## Building

Run `nx build nestjs-crud-request` to build the library.

## Running unit tests

Run `nx test nestjs-crud-request` to execute the unit tests via [Jest](https://jestjs.io).
npm package: @open-lens/nestjs-crud-typeorm
Description: This library was generated with [Nx](https://nx.dev).
Latest version: 0.0.18

# nestjs-crud-typeorm

This library was generated with [Nx](https://nx.dev).

## Building

Run `nx build nestjs-crud-typeorm` to build the library.

## Running unit tests

Run `nx test nestjs-crud-typeorm` to execute the unit tests via [Jest](https://jestjs.io).
npm package: @open-lens/nestjs-firebase-admin
Description: This library was generated with [Nx](https://nx.dev).
Latest version: 0.0.17

# nestjs-firebase-admin

This library was generated with [Nx](https://nx.dev).

## Building

Run `nx build nestjs-firebase-admin` to build the library.

## Running unit tests

Run `nx test nestjs-firebase-admin` to execute the unit tests via [Jest](https://jestjs.io).
npm package: @open-lens/nestjs-morgan
Description: This library was generated with [Nx](https://nx.dev).
Latest version: 0.0.4

# nestjs-morgan

This library was generated with [Nx](https://nx.dev).

## Building

Run `nx build nestjs-morgan` to build the library.

## Running unit tests

Run `nx test nestjs-morgan` to execute the unit tests via [Jest](https://jestjs.io).
npm package: @open-lens/nestjs-sentry
Description: This library was generated with [Nx](https://nx.dev).
Latest version: 0.0.2

# nestjs-sentry

This library was generated with [Nx](https://nx.dev).

## Building

Run `nx build nestjs-sentry` to build the library.

## Running unit tests

Run `nx test nestjs-sentry` to execute the unit tests via [Jest](https://jestjs.io).
npm package: @open-lens/node-sentry-mysql2-integration
Description: This library was generated with [Nx](https://nx.dev).
Latest version: 0.0.3

# node-sentry-mysql2-integration

This library was generated with [Nx](https://nx.dev).

## Building

Run `nx build node-sentry-mysql2-integration` to build the library.

## Running unit tests

Run `nx test node-sentry-mysql2-integration` to execute the unit tests via [Jest](https://jestjs.io).
npm package: @open-lens/strapi-plugin-blurhash
Description: This library was generated with [Nx](https://nx.dev).
Latest version: 0.0.22

# strapi-plugin-blurhash

This library was generated with [Nx](https://nx.dev).

## Building

Run `nx build strapi-plugin-blurhash` to build the library.

## Running unit tests

Run `nx test strapi-plugin-blurhash` to execute the unit tests via [Jest](https://jestjs.io).
npm package: @open-lens/strapi-plugin-github-projects
Description: This library was generated with [Nx](https://nx.dev).
Latest version: 0.0.21

# strapi-plugin-github-projects

This library was generated with [Nx](https://nx.dev).

## Building

Run `nx build strapi-plugin-github-projects` to build the library.

## Running unit tests

Run `nx test strapi-plugin-github-projects` to execute the unit tests via [Jest](https://jestjs.io).
npm package: @open-lens/strapi-provider-upload-firebase
Description: This library was generated with [Nx](https://nx.dev).
Latest version: 0.0.21

# strapi-provider-upload-firebase

This library was generated with [Nx](https://nx.dev).

## Building

Run `nx build strapi-provider-upload-firebase` to build the library.

## Running unit tests

Run `nx test strapi-provider-upload-firebase` to execute the unit tests via [Jest](https://jestjs.io).
npm package: @open-lens/typeorm-naming-strategies
Description: This library was generated with [Nx](https://nx.dev).
Latest version: 0.0.18

# typeorm-naming-strategies

This library was generated with [Nx](https://nx.dev).

## Building

Run `nx build typeorm-naming-strategies` to build the library.

## Running unit tests

Run `nx test typeorm-naming-strategies` to execute the unit tests via [Jest](https://jestjs.io).