open-index/open-npm huggingface dataset:
npm package: @pixel-fx/discord-connector
Description: Discord Game SDK for Electron.js
Author: Christof Harnischmacher
Latest version: 0.2.10

Discord Game SDK
===
[![Node CI Status](https://github.com/open-unlight/node-discord-game/workflows/Node%20CI/badge.svg)](https://github.com/open-unlight/node-discord-game/actions?workflow=Node+CI)
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fopen-unlight%2Fnode-discord-game.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fopen-unlight%2Fnode-discord-game?ref=badge_shield)

This is node.js module for Electron to integrate with Discord.

## Requirements

* Node.js 11+
* Electron 6.0+

## Windows Setup

The Windows is required to add `dll` to project root, please copy `sdk\{ARCH}\discord_game_sdk.dll` to your project folder to ensure your Electron can access SDK correctly.

## Usage

Before using this module, you have to go to [Discord Developer](https://discord.com/developers/applications/) to create an application.

### Discord

#### create()

Initialize Discord.

```js
const Discord = require('discord-game');

const isRequireDiscord = true;
Discord.create('Client ID', isRequireDiscord);
// => true
```

#### version

Get Discord Game SDK Version

#### runCallback()

Resolve Discord's async behavior and call the callback;

```js
const Discord = require('discord-game');

const isRequireDiscord = true;
Discord.create('Client ID', isRequireDiscord);

setInterval(function() {
  Discord.runCallback(); // => true
}, 1000/60)
```

### Application

#### locale

Get the current locale

#### branch

Get the current branch

#### getOAuth2Token()

Get the user OAuth2 Token.

```js
const Discord = require('discord-game');

const isRequireDiscord = true;
Discord.create('Client ID', isRequireDiscord);

Discord.Application
       .getOAuth2Token()
       .then(function(token) { console.log('Token is', token) });

setInterval(function() {
  Discord.runCallback(); // => true
}, 1000/60)
```

### Activity (aka Rich Presence)

#### update

Update user's rich presence.

```js
const Discord = require('discord-game');

const isRequireDiscord = true;
Discord.create('Client ID', isRequireDiscord);

// All property are optional
const activity = {
  details: 'Details',
  state: 'State',
  assets: {
    largeImage: 'large',
    largeText: 'Large',
    samllImage: 'small',
    smallText: 'Small'
  },
  timestamps: {
    startAt: new Date(),
    endAt: new Date()
  },
  secrets: {
    match: 'match',
    join: 'join',
    spectate: 'spectate'
  },
  party: {
    id: 'id',
    currentSize: 1,
    maxSize: 5
  }
}
const start_at = new Date();
Discord.Activity
       .update(activity)
       .then(function() { console.log('Rich Presence updated') });

setInterval(function() {
  Discord.runCallback(); // => true
}, 1000/60)
```

#### clear

Clear user's rich presence.

```js
Discord.Activity.clear()
```


## License
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fopen-unlight%2Fnode-discord-game.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fopen-unlight%2Fnode-discord-game?ref=badge_large)
npm package: @pixel-nft/sdk
Description: 🛠 An SDK for building applications on top of PixelFinance.
Latest version: 1.0.1

# Pancakeswap SDK

[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
[![Actions Status](https://github.com/pancakeswap/pancakeswap-sdk/workflows/CI/badge.svg)](https://github.com/pancakeswap/pancakeswap-sdk)
[![npm version](https://img.shields.io/npm/v/@pancakeswap-lib/sdk/latest.svg)](https://www.npmjs.com/package/@pancakeswap-lib/sdk/v/latest)

## Running tests

To run the tests, follow these steps. You must have at least node v10 and [yarn](https://yarnpkg.com/) installed.

First clone the repository:

```sh
git clone https://github.com/pancakeswap/pancakeswap-sdk.git
```

Move into the pancakeswap-sdk working directory

```sh
cd pancakeswap-sdk/
```

Install dependencies

```sh
yarn install
```

Run tests

```sh
yarn test
```

You should see output like the following:

```sh
yarn run v1.22.4
$ tsdx test
 PASS  test/constants.test.ts
 PASS  test/pair.test.ts
 PASS  test/fraction.test.ts
 PASS  test/miscellaneous.test.ts
 PASS  test/entities.test.ts
 PASS  test/trade.test.ts

Test Suites: 1 skipped, 6 passed, 6 of 7 total
Tests:       3 skipped, 82 passed, 85 total
Snapshots:   0 total
Time:        5.091s
Ran all test suites.
✨  Done in 6.61s.
```
npm package: @pixel-pilots/eslint-config
Description: Eslint configurations for Pixel Pilots Design & Development Studio AB
Author: Anton Nystedt
Latest version: 0.1.29

# Eslint

Eslint configurations for Pixel Pilots Design & Development Studio AB

## Installation

```bash
npm install --save-dev @pixel-pilots/eslint-config
```

## Usage

Add the following to your `.eslintrc` file:

```json
{
  "extends": "@pixel-pilots/eslint-config"
}
```

### React

```json
{
  "extends": [
    "@pixel-pilots/eslint-config",
    "@pixel-pilots/eslint-config/react"
  ]
}
```

### Next

```json
{
  "extends": ["@pixel-pilots/eslint-config", "@pixel-pilots/eslint-config/next"]
}
```

## License

[MIT](LICENSE)
npm package: @pixel-point/tailwind-preset
Description: ## Spacing (1st version)
Latest version: 0.1.1

# Pixel Point Tailwind Preset

## Spacing (1st version)

| Name (original) | Name (preset) | Value (original) | Value (preset) | Usage examples (original) | Usage examples (preset) |
| --------------- | ------------- | ---------------- | -------------- | ------------------------- | ----------------------- |
| 0.5             | 2             | 0.125rem         | 2px            | m-0.5, p-0.5              | m-2, p-2                |
| 1               | 4             | 0.25rem          | 4px            | m-1, p-1                  | m-4, p-4                |
| 1.5             | 6             | 0.375rem         | 6px            | m-1.5, p-1.5              | m-6, p-6                |
| 2               | 8             | 0.5rem           | 8px            | m-2, p-2                  | m-8, p-8                |

## Spacing (2nd version)

| Name (original / preset) | Value (original / preset) | Usage examples (original / preset) |
| ------------------------ | ------------------------- | ---------------------------------- |
| 0.5 / 2                  | 0.125rem / 2px            | mt-0.5 / mt-2                      |
| 1 / 4                    | 0.25rem / 4px             | mt-1 / mt-4                        |
| 1.5 / 6                  | 0.375rem / 6px            | mt-1.5 / mt-6                      |
| 2 / 8                    | 0.5rem / 8px              | mt-2 / mt-8                        |
npm package: @pixel-protocol/sdk
Description: Official SDK for Pixel Protocol - Decentralized Reputation Infrastructure
Author: Pixel Protocol
Latest version: 0.1.0

# Pixel Protocol SDK

The official SDK for interacting with Pixel Protocol - a decentralized reputation infrastructure.

## Installation

```bash
npm install @pixel-protocol/sdk
```

## Quick Start

```typescript
import { PixelProtocol } from "@pixel-protocol/sdk";

// Initialize the SDK
const pixelProtocol = new PixelProtocol({
  rpcUrl: "YOUR_RPC_URL",
  chainId: 1, // or your preferred chain
  credentialIssuerAddress: "YOUR_CONTRACT_ADDRESS",
  reputationCalculatorAddress: "YOUR_CONTRACT_ADDRESS",
  zkpVerifierAddress: "YOUR_CONTRACT_ADDRESS",
  subgraphUrl: "YOUR_SUBGRAPH_URL",
});

// Initialize (connects wallet and sets up ZKP)
await pixelProtocol.initialize();

// Get a user's reputation profile
const profile = await pixelProtocol.getReputationProfile("0x...");
console.log("Credentials:", profile.credentials);
console.log("Reputation Score:", profile.score);

// Prove credential ownership with zero knowledge
const proof = await pixelProtocol.proveCredentialOwnership(
  "credentialId",
  "I have a positive payment history"
);

// Verify the proof
const isValid = await pixelProtocol.zkp.verifyProof(proof);
```

## Features

- Full smart contract interaction layer
- Subgraph querying for efficient data retrieval
- Zero-knowledge proof generation and verification
- Wallet management and connection
- TypeScript support with full type definitions
- Comprehensive credential management
- Reputation score calculation
- Privacy-preserving proofs

## Documentation

### Smart Contract Interactions

```typescript
// Issue a new credential
const credentialId = await pixelProtocol.contracts.issueCredential(
  userAddress,
  "issuer1",
  "paymentHistory",
  { score: 95, date: "2025-08-09" }
);

// Verify a credential
const isValid = await pixelProtocol.contracts.verifyCredential(credentialId);

// Calculate reputation score
const score = await pixelProtocol.contracts.calculateScore(
  userAddress,
  "default"
);
```

### Subgraph Queries

```typescript
// Get all credentials for a user
const credentials = await pixelProtocol.subgraph.getUserCredentials(
  userAddress
);

// Search credentials with filters
const filtered = await pixelProtocol.subgraph.searchCredentials({
  credentialType: "paymentHistory",
  fromTimestamp: 1628553600,
});
```

### Zero-Knowledge Proofs

```typescript
// Create a proof of meeting a score threshold
const proof = await pixelProtocol.proveReputationScore(80);

// Verify a batch of proofs
const isValid = await pixelProtocol.zkp.verifyBatch(proofs);
```

## Contributing

Contributions are welcome! Please read our contributing guidelines and submit pull requests.

## License

MIT License
npm package: @pixel-shadow/reset-css
Description: Tiny Reset CSS
Author: Pixel Shadow
Latest version: 1.0.1

# Reset CSS
## Tiny Reset CSS
<br>

[![npm](https://img.shields.io/npm/v/minireset.css.svg)](https://www.npmjs.com/package/@pixel-shadow/reset-css)

[![Version](https://img.shields.io/github/release/pixel-shadow/reset-css.svg)](https://github.com/pixel-shadow/reset-css/releases)

[![dependencies Status](https://david-dm.org/pixel-shadow/reset-css/status.svg)](https://david-dm.org/pixel-shadow/reset-css)

[![devDependencies Status](https://david-dm.org/pixel-shadow/reset-css/dev-status.svg)](https://david-dm.org/pixel-shadow/reset-css?type=dev)

<br>
A simple Reset CSS with features:
* Margin / Padding
* Tables
* Font size
* Box sizing
* Media

### Install

Use directly: [reset.css](https://raw.githubusercontent.com/pixel-shadow/reset-css/master/reset.css) / [reset.min.css](https://raw.githubusercontent.com/pixel-shadow/reset-css/master/reset.min.css)
<br>
Or via NPM
```
npm i @pixel-shadow/reset-css
```
npm package: @pixel-starry/hook-store
Description: A light data management tool for react framework.
Author: wanglei8381
Latest version: 1.0.0

# HookStore
HookStore 是一个轻量级的 React 状态管理 hooks 库，支持精细化更新。

## store 定义
现在我们来编写一个计数器 store

```typescript
import { BaseStore } from '@pixel-starry/hook-store';

class CountStore extends BaseStore {
  count = 0;
  count2 = 0;

  add(num: number) {
    this.setState({ count: num });
  }

  reset() {
    this.setState({ count: 0 });
  }

  times(num: number) {
    this.setState({ count: this.count * num  });
  }
}

```

## 使用 store

```typescript
import { StoreProvider, useStore } from '@pixel-starry/hook-store';
const Child = () => {
  const store = useStore(CountStore);
  return (
    <div>
      <div>{store.count}</div>
      <button onClick={() => store.add(1)}>加1</button>
      <button onClick={() => store.times(2)}>乘2</button>
      <button onClick={() => store.reset()}>复位</button>
    </div>
  );
};

const Root = () => {
  return (
    <StoreProvider store={CountStore}>
      <Child />
    </StoreProvider>
  );
};

```

## API

* BaseStore

store的基类，提供了 setState 来更新数据

* StoreProvider

Context Provider 组件，需要把当前的 store 传递给 Provider 组件

* withStore

StoreProvider 另一种用法， 用法 withStore(Child, CountStore);

```
const Root = withStore(Child, CountStore);
```

* useStore

获取 store 实例，第一个参数是 BaseStore，第二个参数是更新依赖项。

如：

```js
// 调用 setState 组件就会更新
const store = useStore(CountStore);

// 调用 setState 组件不会更新
const store = useStore(CountStore, []);


// 调用 setState 后， count值变化组件会更新，否则不会更新
const store = useStore(CountStore, ['count']);

```