open-index/open-npm huggingface dataset:
npm package: @polarfox/core
Description: Core contracts for the Polarfox DEX.
Author: Clément Aguilar
Latest version: 2.6.1

# Polarfox Core Smart Contracts
This repo contains all of the core smart contracts used to run [Polarfox](polarfox.io).

[![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/Polarfox-DEX/polarfox-core/workflows/CI/badge.svg)](https://github.com/Polarfox-DEX/polarfox-core)
[![npm version](https://img.shields.io/npm/v/@polarfox/core/latest.svg)](https://www.npmjs.com/package/@polarfox/core/v/latest)

## Deployed Contracts [MAINNET AVALANCHE]
Factory address: `...`

Router address: `...`

## Deployed Contracts [TESTNET AVALANCHE]
Factory address: `0x5b48659781dccb21031Bdd510f0e46163cC95Ea2`

Router address: `0xAeD3baD38CA8907EBC8C919d12a25a58A17063A7`

## Running
To prepare the dev environment, run `yarn install`. To compile the contracts, run `yarn compile`. Yarn is available to install [here](https://classic.yarnpkg.com/en/docs/install/#debian-stable) if you need it.

# Local Development

The following assumes the use of `node@>=10`.

## Install Dependencies

`yarn`

## Compile Contracts

`yarn compile`

## Run Tests

`yarn test`

## Attribution
These contracts were adapted from [uniswap-v2-core](https://github.com/Uniswap/uniswap-v2-core).
npm package: @polarfox/governance
Description: Governance contracts for the Polarfox ecosystem
Author: Polarfox Labs
Latest version: 0.3.2

# Polarfox Governance

This repo contains all of the governance contracts for the Polarfox DEX.

## Deployment Addresses

### Avalanche Mainnet

PFX: `...`

TreasuryVester: `...`

CommunityTreasury: `...`

Airdrop:           `...`

Timelock:          `...`

GovernorAlpha:     `...`

LiquidityPoolManager:         `...`

### Fuji Testnet

PFX: `0x90E487E9a08fF29B2F97ECd0eD73886692dF70D1`

TreasuryVester: `...`

CommunityTreasury: `...`

Airdrop:           `...`

Timelock:          `...`

GovernorAlpha:     `...`

LiquidityPoolManager:         `...`

## Attribution

Forked from
[Compound Governance](https://github.com/compound-finance/compound-protocol/tree/v2.8.1) and [Uniswap Governance](https://github.com/Uniswap/governance)
npm package: @polarfox/periphery
Description: Peripheral smart contracts for interacting with Polarfox
Author: Clément Aguilar
Latest version: 2.0.8

# Polarfox Periphery

[![Actions Status](https://github.com/Polarfox-DEX/polarfox-periphery/workflows/CI/badge.svg)](https://github.com/Polarfox-DEX/polarfox-periphery/actions)
[![npm](https://img.shields.io/npm/v/@polarfox/periphery?style=flat-square)](https://npmjs.com/package/@polarfox/periphery)

Defines some contracts needed for Polarfox to work properly.
Adapted from Uniswap.

# Local Development

The following assumes the use of `node@>=10`.

## Install Dependencies

`yarn`

## Compile Contracts

`yarn compile`

## Run Tests

`yarn test`
npm package: @polarfox/sdk
Description: An SDK for building applications on top of Polarfox.
Author: Clément Aguilar
Latest version: 1.0.19

# Polarfox 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/Polarfox-DEX/polarfox-sdk/workflows/CI/badge.svg)](https://github.com/Polarfox-DEX/polarfox-sdk)
[![npm version](https://img.shields.io/npm/v/@polarfox/sdk/latest.svg)](https://www.npmjs.com/package/@polarfox/sdk/v/latest)
[![npm bundle size (scoped version)](https://img.shields.io/bundlephobia/minzip/@polarfox/sdk/latest.svg)](https://bundlephobia.com/result?p=@polarfox/sdk@latest)

In-depth documentation on this SDK is being written and will be available soon.

## 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/Polarfox-DEX/polarfox-sdk.git
```

Move into the polarfox-sdk working directory

```sh
cd polarfox-sdk/
```

Install dependencies

```sh
yarn install
```

Run tests

```sh
yarn test
```

You should see output like the following:

```sh
yarn run v1.22.10
$ tsdx test
 PASS  test/constants.test.ts    
 PASS  test/route.test.ts
 PASS  test/token.test.ts
 PASS  test/miscellaneous.test.ts
 PASS  test/router.test.ts
 PASS  test/entities.test.ts
 PASS  test/fraction.test.ts
 PASS  test/trade.test.ts
 PASS  test/pair.test.ts

Test Suites: 1 skipped, 9 passed, 9 of 10 total
Tests:       3 skipped, 124 passed, 127 total
Snapshots:   0 total
Time:        8.121s
Ran all test suites.
Done in 6.61s.
```
npm package: @polarfox/sdk-fuji
Description: An SDK for building applications on top of Polarfox.
Latest version: 1.0.2

# Polarfox 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/Polarfox-Labs-Research/polarfox-sdk/workflows/CI/badge.svg)](https://github.com/Polarfox-Labs-Research/polarfox-sdk)
[![npm version](https://img.shields.io/npm/v/@polarfox/sdk-fuji/latest.svg)](https://www.npmjs.com/package/@polarfox/sdk-fuji/v/latest)
[![npm bundle size (scoped version)](https://img.shields.io/bundlephobia/minzip/@polarfox/sdk-fuji/latest.svg)](https://bundlephobia.com/result?p=@polarfox/sdk@latest)

In-depth documentation on this SDK is being written and will be available soon.

## 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/Polarfox-Labs-Research/polarfox-sdk.git
```

Move into the polarfox-sdk working directory

```sh
cd polarfox-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: @polargrid/cli
Description: PolarGrid CLI - Command-line interface for PolarGrid Edge AI Infrastructure
Author: PolarGrid
Latest version: 0.1.0

# PolarGrid CLI

Command-line interface for PolarGrid Edge AI Infrastructure.

## Installation

```bash
npm install -g @polargrid/cli
```

## Quick Start

```bash
# Login to PolarGrid
polargrid login

# List your organizations
polargrid orgs list

# Create an API key
polargrid keys create my-app-key

# Test inference
polargrid test inference --region us-east --prompt "Hello world"
```

## Commands

### Authentication

```bash
polargrid login              # Browser OAuth flow
polargrid login --headless   # API key authentication (for CI/CD)
polargrid logout             # Clear stored credentials
polargrid whoami             # Show current user and organization
```

### Organizations

```bash
polargrid orgs list              # List organizations you belong to
polargrid orgs switch <org_id>   # Switch to a different organization
polargrid orgs current           # Show current organization
```

### API Keys

```bash
polargrid keys list              # List API keys
polargrid keys create <name>     # Create a new API key
  --permissions <level>          # read-only, read-write, or admin
  --project <id>                 # Scope to a specific project
polargrid keys revoke <key_id>   # Revoke an API key
```

### Regions

```bash
polargrid regions list           # List available regions with latency
polargrid regions ping           # Ping all regions, show RTT
```

### Testing

```bash
polargrid test                   # Health check (default)
polargrid test health            # Check edge infrastructure health
  --region <region>              # Specific region or all
polargrid test inference         # Run a quick inference test
  --region <region>              # Required: target region
  --model <model>                # Model to use (default: gpt2)
  --prompt <prompt>              # Prompt to send
```

### Configuration

```bash
polargrid config list            # Show current config
polargrid config get <key>       # Get a config value
polargrid config set <key> <val> # Set a config value
polargrid config unset <key>     # Remove a config value
```

**Config options:**
- `default_region` - Default edge region for requests
- `output_format` - Output format: json, table, or plain
- `api_base_url` - Override API base URL

## CI/CD Usage

For CI/CD pipelines, use the `--headless` flag with an API key:

```bash
# Set API key as environment variable
export POLARGRID_API_KEY="pg_your_api_key_here"

# Login in headless mode
polargrid login --headless

# Or pass the key directly
polargrid login --headless --api-key "pg_your_api_key_here"
```

## Configuration Files

The CLI stores configuration in `~/.polargrid/`:

- `credentials.json` - Authentication tokens (mode 0600)
- `config.json` - CLI configuration

## Development

```bash
# Install dependencies
npm install

# Build
npm run build

# Run locally
npm start -- --help

# Watch mode
npm run dev
```

## License

MIT
npm package: @polaris-news/ai
Description: Polaris News tools for the Vercel AI SDK
Latest version: 0.7.0

# @polaris-news/ai

Polaris News tools for the [Vercel AI SDK](https://sdk.vercel.ai). Drop verified news intelligence into any AI SDK agent with one line.

## Install

```bash
npm install @polaris-news/ai polaris-news-api ai zod
```

## Quick Start

```typescript
import { generateText } from "ai";
import { openai } from "@ai-sdk/openai";
import { polarisSearch, polarisFeed } from "@polaris-news/ai";

const result = await generateText({
  model: openai("gpt-4o"),
  tools: {
    searchNews: polarisSearch({ apiKey: "your-api-key" }),
    getLatest: polarisFeed({ apiKey: "your-api-key" }),
  },
  prompt: "What's happening in AI today?",
});
```

If you've run `polaris login` or set `POLARIS_API_KEY`, you can omit the `apiKey` option:

```typescript
const result = await generateText({
  model: openai("gpt-4o"),
  tools: {
    searchNews: polarisSearch(),
    getLatest: polarisFeed(),
  },
  prompt: "What's happening in AI today?",
});
```

## Tools

| Export | Description |
|--------|------------|
| `polarisSearch()` | Search verified news briefs with confidence scores |
| `polarisFeed()` | Get latest intelligence feed |
| `polarisBrief()` | Get a specific brief by ID |
| `polarisExtract()` | Extract article content from URLs |
| `polarisEntities()` | Look up entity coverage |
| `polarisTrending()` | Get trending entities |
| `polarisCompare()` | Compare outlet coverage of a story |
| `polarisResearch()` | Deep multi-source research (5 credits) |
| `polarisVerify()` | Fact-check a claim against briefs (3 credits) |

Each function accepts an optional `{ apiKey }` config and returns an AI SDK `tool()`.

## License

MIT
npm package: @polaris-news/cli
Description: Financial intelligence from your terminal. The trust layer for AI agents.
Author: Polaris API
Latest version: 1.0.0

# @polaris-news/cli

Financial intelligence from your terminal. The trust layer for AI agents.

```bash
npm install -g @polaris-news/cli
export POLARIS_API_KEY=pr_live_xxx
polaris ask "What's happening with NVDA?"
```

## Commands

| Command | Description | Example |
|---------|-------------|---------|
| `ask <question>` | Natural language query | `polaris ask "Is Tesla overvalued?"` |
| `price <TICKER>` | Live price | `polaris price NVDA` |
| `screen <criteria>` | NLP stock screener | `polaris screen "oversold semiconductors"` |
| `compare <T1> <T2>` | Side-by-side comparison | `polaris compare AAPL MSFT` |
| `earnings <TICKER>` | Next earnings + estimates | `polaris earnings TSLA` |
| `insider <TICKER>` | Insider transactions | `polaris insider NVDA` |
| `signal <TICKER>` | Trade readiness (0-100) | `polaris signal MSFT` |
| `technicals <TICKER>` | Technical indicators | `polaris technicals AMD` |
| `full <TICKER>` | Everything in one call | `polaris full AAPL` |
| `market` | Market overview + indices | `polaris market` |
| `news <query>` | Search briefs | `polaris news "AI stocks"` |
| `verify <claim>` | Fact-check a claim | `polaris verify "NVDA revenue grew 73%"` |

## Output

JSON by default (agent-first). Use `--human` for formatted output.

```bash
# Agent mode (JSON)
polaris ask "NVDA earnings"

# Human mode (formatted)
polaris ask "NVDA earnings" --human
```

## Auth

Get a free API key at [thepolarisreport.com/pricing](https://thepolarisreport.com/pricing) (1,000 credits/month free).

```bash
export POLARIS_API_KEY=pr_live_xxx
```

## What You Get

- 891 tracked tickers (equities, crypto, ETFs, commodities, indices)
- 20 technical indicators + signal summary
- NLP screener that parses natural language into filters
- Trade readiness signal (0-100) with factor breakdown
- Insider trades, SEC filings, analyst ratings, congressional trades
- AI-powered reports (Quick/Full/Deep)
- Verified, bias-scored intelligence briefs
- Real-time market data from multiple providers

## Links

- [API Documentation](https://thepolarisreport.com/docs)
- [Interactive Demo](https://thepolarisreport.com/ask)
- [Python SDK](https://pypi.org/project/polaris-news/)
- [TypeScript SDK](https://www.npmjs.com/package/polaris-news-api)