open-index/open-npm huggingface dataset:
npm package: @stuymedova/assert
Description: Minimalist unit testing library
Latest version: 1.0.2

# Assert

Minimalist unit testing library.

## Installation and Usage

**Installation**

To add the library to a project, run:
```shell
npm i @stuymedova/assert
```

**Usage**

```js
import { assert } from '@stuymedova/assert';

assert.equal('hello', 'world'); // Throws an AssertionError
```

## API

**`assert.equal(actual, expected)`**

Throws an `AssertionError` if the given values are not equal. Values are compared using the strict equality operator (triple equals).

**`assert.notEqual(actual, expected)`**

Throws an `AssertionError` if the given values are equal. Values are compared using the strict equality operator (triple equals).

**`assert.equalReference(actual, expected)`**

Throws an `AssertionError` if the given variables do not referce the same object.

**`assert.deepEqual(actual, expected)`**

Throws an `AssertionError` if the given objects (incl. arrays) are not deeply equal (thay have the same number of key-value pairs, and all of them match).

**`assert.less(actual, expected)`**

Throws an `AssertionError` if the first passed value is greater than or equal to the second value.

**`assert.lessOrEqual(actual, expected)`**

Throws an `AssertionError` if the first passed value is greater than the second value.

**`assert.greater(actual, expected)`**

Throws an `AssertionError` if the first passed value is less than or equal to the second value.

**`assert.greaterOrEqual(actual, expected)`**

Throws an `AssertionError` if the first passed value is less than the second value.

**`assert.trapped(value, lowerBound, excludedUpperBound)`**

Throws an `AssertionError` if the given value is not within bounds or if the precondition is not satisfied (lower bound must be greater than the upper bound).

**`assert.equalType(actual, expected)`**

Throws an `AssertionError` if the given values are not of the same type.

**`assert.type(value, expectedType)`**

Throws an `AssertionError` if the given value's type does not match the given type.

**`assert.true(value)`**

Throws an `AssertionError` if the given value is not `true`.

**`assert.false(value)`**

Throws an `AssertionError` if the given value is not `false`.
npm package: @stvtest/testa
Description: A blank schematics
Latest version: 0.0.3

# Getting Started With Schematics

This repository is a basic Schematic implementation that serves as a starting point to create and publish Schematics to NPM.

### Testing

To test locally, install `@angular-devkit/schematics-cli` globally and use the `schematics` command line tool. That tool acts the same as the `generate` command of the Angular CLI, but also has a debug mode.

Check the documentation with

```bash
schematics --help
```

### Unit Testing

`npm run test` will run the unit tests, using Jasmine as a runner and test framework.

### Publishing

To publish, simply do:

```bash
npm run build
npm publish
```

That's it!
npm package: @stwd/react
Description: Embeddable React components for Steward agent wallet management
Author: Steward-Fi
Latest version: 0.6.4

# @stwd/react

Embeddable React components for Steward agent wallet management. Drop-in UI for wallet overview, transaction history, policy controls, approval queues, and spend analytics.

## Install

```bash
npm install @stwd/react @stwd/sdk
```

## Quick Start

```tsx
import { StewardProvider, WalletOverview, PolicyControls, TransactionHistory } from "@stwd/react";
import "@stwd/react/styles.css";
import { StewardClient } from "@stwd/sdk";

const client = new StewardClient({
  baseUrl: "https://api.steward.fi",
  bearerToken: agentJwt,
});

function AgentWalletPage({ agentId }: { agentId: string }) {
  return (
    <StewardProvider client={client} agentId={agentId}>
      <WalletOverview showQR />
      <PolicyControls />
      <TransactionHistory pageSize={10} />
    </StewardProvider>
  );
}
```

## Components

| Component | Description |
|-----------|-------------|
| `<StewardProvider>` | Context provider — wraps all other components |
| `<WalletOverview>` | Wallet address, balance, chain info, funding QR |
| `<TransactionHistory>` | Paginated tx list with status badges and explorer links |
| `<PolicyControls>` | Human-friendly policy toggles (spending limits, address lists, etc.) |
| `<ApprovalQueue>` | Pending transaction review with approve/deny |
| `<SpendDashboard>` | Spend tracking with budget bars and charts |

## Hooks

All components use public hooks. Use them directly for custom UIs:

```tsx
import { useSteward, useWallet, useTransactions, usePolicies, useApprovals, useSpend } from "@stwd/react";
```

| Hook | Returns |
|------|---------|
| `useSteward()` | Client, agentId, features, theme, tenant config |
| `useWallet()` | Agent data, balance, addresses with auto-refresh |
| `useTransactions(opts?)` | Paginated tx history |
| `usePolicies()` | Policy CRUD + template support |
| `useApprovals(interval?)` | Pending approvals + approve/reject actions |
| `useSpend(range?)` | Spend analytics for time range |

## Theming

Components use CSS custom properties. Override any `--stwd-*` variable:

```css
.stwd-root {
  --stwd-primary: #8B5CF6;
  --stwd-accent: #A78BFA;
  --stwd-bg: #0F0F0F;
  --stwd-surface: #1A1A2E;
  --stwd-text: #FAFAFA;
  --stwd-muted: #6B7280;
  --stwd-success: #10B981;
  --stwd-error: #EF4444;
  --stwd-warning: #F59E0B;
  --stwd-radius: 12px;
  --stwd-font: Inter, system-ui, sans-serif;
}
```

Or pass theme overrides to the provider:

```tsx
<StewardProvider
  client={client}
  agentId={agentId}
  theme={{ primaryColor: "#FF6B35", colorScheme: "light" }}
>
```

## Peer Dependencies

- `react >= 18`
- `@stwd/sdk >= 0.1.0`

## License

MIT