open-index/open-npm huggingface dataset:
npm package: @nance/nance-hooks
Description: hooks for https://nance.app
Author: nance
Latest version: 4.1.9

## Install

`yarn add @nance/nance-hooks`

## Usage

Wrap components with `NanceContext.Provider` and pass `apiUrl` as a prop. And then you can use nance hooks.
Check full example [here](./examples/nance-demo).

```typescript
import { NanceProvider, useSpaceInfo } from "@nance/nance-hooks";

const apiUrl = "https://api.nance.app";

export default function SpacePage() {
  return (
    <NanceProvider apiUrl={apiUrl}>
      <SpaceInfoCard />
    </NanceProvider>
  )
}

function SpaceInfoCard() {
  const { spaceInfo } = useSpaceInfo();
  return (
    <div>
      <h1>{spaceInfo.name}</h1>
      <p>{spaceInfo.description}</p>
    </div>
  )
}
```
npm package: @nance/nance-sdk
Description: SDK for https://nance.app
Author: nance
Latest version: 4.1.9

## Install

Nance SDK contains types and actions that can be used to interact with [Nance API](https://api.nance.app/api/docs).

If you need React hooks, try [@nance/nance-hooks](https://www.npmjs.com/package/@nance/nance-hooks).

`yarn add @nance/nance-sdk`

## Usage

Actions contains async fetch functions that you can use.

```
import { getProposals } from "@nance/nance-sdk";

// Query proposals of single space
// e.g Search first 8 juicebox proposals which contains keyword "grant" in title or content.
const proposalsPacket = await getProposals({
  space: "juicebox",
  cycle: "All",
  limit: 8,
  keyword: "grant",
  page: 1,
});
```

## Development

```
// Build dist files
yarn build

// Testing package locally before publish
yarn add file:../nance-sdk/packages/core

// Publish
npm publish --access public
```
npm package: @nancyjs/clients
Description: To install dependencies:
Latest version: 0.1.2

# core

To install dependencies:

```bash
bun install
```

To run:

```bash
bun run src/index.ts
```

This project was created using `bun init` in bun v1.0.1. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.
npm package: @nancyjs/core
Description: To install dependencies:
Latest version: 0.1.2

# core

To install dependencies:

```bash
bun install
```

To run:

```bash
bun run src/index.ts
```

This project was created using `bun init` in bun v1.0.1. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.