open-index/open-npm huggingface dataset:
npm package: @smatt92/uxspec-form
Description: UX contracts for predictable form feedback
Latest version: 0.2.3

[![npm version](https://img.shields.io/npm/v/@smatt92/uxspec-form.svg)](https://www.npmjs.com/package/@smatt92/uxspec-form)

# uxspec-form

**UX contracts for predictable form feedback**

> Forms don’t fail validation.  
> They fail UX.

`uxspec-form` lets you **control when feedback appears and how it feels** — without changing validation rules or form libraries.

---

## Why this exists

Most form libraries answer:

> “Is this field valid?”

Users experience a different problem:

> “Why is this error showing *right now*?”

`uxspec-form` separates **validation** from **UX behavior**.

---

## What this library does

✔ Decide **when** errors appear (`change | blur | submit`)  
✔ Decide **how** errors feel (`polite | assertive`)  
✔ Control **success feedback**  
✔ Prevent **layout shift**  
✔ Work with existing form libraries  

❌ Does NOT validate data  
❌ Does NOT render UI  
❌ Does NOT replace your form library  

---

## The mental model

> **Forms report facts.  
> Fields decide behavior.**

The form tells a field:
- is there an error?
- has the user interacted?
- is the value valid?
- was the form submitted?

The field decides:
- should feedback appear now?
- what UX state applies?

---

## Installation

```bash
npm install @smatt92/uxspec-form
```

## Core idea (framework-agnostic)

```bash
import { uxField } from "@smatt92/uxspec-form"

const emailUX = uxField({
  name: "email",
  validateOn: "blur",
  errorTone: "polite",
  successFeedback: "subtle",
  reserveErrorSpace: true
})
```
This is a UX contract, not a validator.

## React Hook Form example

```bash
import { useForm } from "react-hook-form"
import { useReactHookFormUX } from "@smatt92/uxspec-form"

const form = useForm()

const ux = useReactHookFormUX({
  config: {
    name: "email",
    validateOn: "blur",
    successFeedback: "subtle",
    reserveErrorSpace: true
  },
  error: form.formState.errors.email,
  touched: form.formState.touchedFields.email,
  isValid: !form.formState.errors.email,
  isSubmitted: form.formState.isSubmitted
})
<input {...form.register("email", { required: true })} />

<div className={ux.helperClassName}>
  {ux.showError && "Email is required"}
  {ux.showSuccess && "Looks good"}
</div>
```
## What you get back

```bash
{
    showError: boolean
    showSuccess: boolean
    errorClassName: string
    helperClassName: string
}
```
You decide what to render.
UXSpec decides when.

## Why this is different

| Typical forms             | uxspec-form                 |
| ------------------------- | --------------------------- |
| Errors appear immediately | Errors appear intentionally |
| UX rules are implicit     | UX rules are explicit       |
| Validation drives UX      | UX drives feedback          |
| Hard to reuse             | Portable UX contracts       |

## Version

v0.2.3

Stable UX core
React Hook Form adapter
Deterministic UX behavior

## License
MIT
npm package: @smaug-6739/discord-backup
Description: Module for create backups of server discord and load this backups
Author: Smaug6739
Latest version: 1.0.1
Deprecated: Package moved to https://www.npmjs.com/package/@discord-util/backup

# Discord-backup

A library for simplify the creation of backup system with mongodb database.
This module work with discord.js V13

## Getting Started

### Prerequisites

- Node.js 16.6.0 or newer is required.

- Discord.js 13.0.0 or newer is required.

### Instalation

With npm :

```sh-session
npm install @smaug-6739/discord-backup
```

With yarn :

```sh-session
yarn add @smaug-6739/discord-backup
```

## Usage

Import the module from node_modules :

With CommonJS syntax :

```js
const { DiscordBackup } = require("@smaug-6739/discord-backup");
```

With module syntax :

```js
import { DiscordBackup } = from "@smaug-6739/discord-backup";
```

Create a new instance of `DiscordBackup` with the client as a parameter and the database in options :

```js
const backup = new DiscordBackup(client, {
  database: "mongodb://localhost:27017/discord-backup",
});
```

## [async] DiscordBackup#create(guild)

Create a backup and save it to database.

Parameters :

- guild : The guild from create the backup (Guild).

Return : The id of the backup (Promise\<Snowflake>).

## [async] DiscordBackup#load(guild, options)

Load a backup from database to a specific guild.

Parameters :

- guild : The guild from load the backup (Guild).
- options : The options from load the backup (Object).
  - options.id : The id of the backup (Snowflake).
  - options.force : If the bot should delete the old server (Boolean).

Return : Promise\<boolean>.

## Example

```js
const { Client, Intents } = require("discord.js");
const { DiscordBackup } = require("@smaug-6739/discord-backup");
const client = new Client({ intents: ["GUILDS", "GUILD_MESSAGES"] });
const backup = new DiscordBackup(client, {
  database: "mongodb://localhost:27017/discord-backup",
});
client.on("messageCreate", async (msg) => {
  const args = msg.content.split(" ");
  if (args[0] === "!create-backup") {
    console.log(await backup.create(msg.guild));
  }
  if (args[0] === "!load-backup") {
    backup.load(msg.guild, {
      id: args[1],
      force: true,
    });
  }
});
client.login("<discord bot token>");
```

## Authors

- [Smaug6739](https://github.com/Smaug6739)
npm package: @smb-org/vite-plugin-preset
Description: vite preset
Latest version: 0.0.1

# @smb-org/vite-plugin-preset

[![NPM version](https://img.shields.io/npm/v/@smb-org/vite-plugin-preset.svg?style=flat)](https://npmjs.org/package/@smb-org/vite-plugin-preset)
[![NPM downloads](http://img.shields.io/npm/dm/@smb-org/vite-plugin-preset.svg?style=flat)](https://npmjs.org/package/@smb-org/vite-plugin-preset)

## Install

```bash
$ npm install
```

```bash
$ npm run dev
$ npm run build
```

## Options

TODO

## LICENSE

MIT
npm package: @smb-tech/logger-core
Description: Core library for structured logging, events, and serialization
Latest version: 1.0.0

# @smb-tech/logger-core

Core library for structured logging.

## Features

- LogEvent builder
- JSON serialization
- Logging levels
- Tags and metadata

## Installation

```bash
npm install @smb-tech/logger-core
```

## Usage

```ts
import { Logger } from '@smb-tech/logger-core';

const logger = Logger.get('MyClass');

logger.info((event) => {
  event.message('Hello world');
});
```
npm package: @smb-tech/logger-node
Description: Node.js adapter for structured logging with AsyncLocalStorage context propagation
Latest version: 1.0.0

# @smb-tech/logger-node

Node.js adapter for structured logging with AsyncLocalStorage.

## Features

- Request context (MDC)
- TraceId / SpanId propagation
- AsyncLocalStorage support
- Express / Next / Nest compatible

## Installation

```bash
npm install @smb-tech/logger-node
```

## Example

```ts
import { runWithNodeContext, Logger } from '@smb-tech/logger-node';

runWithNodeContext(() => {
  const logger = Logger.get('App');

  logger.info((event) => {
    event.message('Request started');
  });
});
```
npm package: @smb-tech/logger-react
Description: React/browser adapter for structured logging with client-side context management
Latest version: 1.0.0

# @smb-tech/logger-react

React/browser adapter for structured logging.

## Features

- Client-side context store
- TraceId propagation to backend
- Compatible with fetch / axios
- Lightweight

## Installation

```bash
npm install @smb-tech/logger-react
```

## Example

```ts
import { BrowserContextStore, BrowserTraceContextFactory } from '@smb-tech/logger-react';

const context = BrowserTraceContextFactory.create();
BrowserContextStore.set(context);
```

## Sending trace headers

```ts
const mdc = BrowserContextStore.getMdc();

fetch('/api', {
  headers: {
    'x-b3-traceid': mdc.traceId
  }
});
```