open-index/open-npm huggingface dataset:
npm package: @p3drosola/lucid
Description: SQL ORM built on top of Active Record pattern
Author: virk,adonisjs
Latest version: 21.7.1

# @adonisjs/lucid

<br />

[![gh-workflow-image]][gh-workflow-url] [![npm-image]][npm-url] ![][typescript-image] [![license-image]][license-url]

## Introduction
SQL ORM for AdonisJS built on top of Knex. Comes with a db query builder, Active record ORM, migrations, seeders and model factories.

## Official Documentation
The documentation is available on the [Lucid website](https://lucid.adonisjs.com/docs/introduction)

## Contributing
One of the primary goals of AdonisJS is to have a vibrant community of users and contributors who believes in the principles of the framework.

We encourage you to read the [contribution guide](https://github.com/adonisjs/.github/blob/main/docs/CONTRIBUTING.md) before contributing to the framework.

### Run tests locally
Easiest way to run tests is to launch the redis cluster using docker-compose and `docker-compose.yml` file.

```sh
docker-compose up -d
npm run test
```

## Code of Conduct
In order to ensure that the AdonisJS community is welcoming to all, please review and abide by the [Code of Conduct](https://github.com/adonisjs/.github/blob/main/docs/CODE_OF_CONDUCT.md).

## License
AdonisJS Lucid is open-sourced software licensed under the [MIT license](LICENSE.md).

[gh-workflow-image]: https://img.shields.io/github/actions/workflow/status/adonisjs/lucid/checks.yml?style=for-the-badge
[gh-workflow-url]: https://github.com/adonisjs/lucid/actions/workflows/checks.yml "Github action"

[npm-image]: https://img.shields.io/npm/v/@adonisjs/lucid/latest.svg?style=for-the-badge&logo=npm
[npm-url]: https://www.npmjs.com/package/@adonisjs/lucid/v/latest "npm"

[typescript-image]: https://img.shields.io/badge/Typescript-294E80.svg?style=for-the-badge&logo=typescript

[license-url]: LICENSE.md
[license-image]: https://img.shields.io/github/license/adonisjs/lucid?style=for-the-badge
npm package: @p3kb/paginate
Description: Lightweight pagination for jQuery
Latest version: 1.0.1

# @p3kb/paginate

[![npm (scoped)](https://img.shields.io/npm/v/@p3kb/paginate.svg)](https://github.com/p3kb/paginate/blob/master/README.md) [![GitHub license](https://img.shields.io/github/license/p3kb/paginate.svg)](https://github.com/p3kb/paginate/blob/master/LICENSE) [![npm bundle size (minified)](https://img.shields.io/bundlephobia/min/@p3kb/paginate.svg)](https://github.com/p3kb/paginate/blob/master/src/paginate.min.js)

Lightweight pagination for jquery

## Install

```
npm i @p3kb/paginate
```

## Usage

```js
window.pager = require('@p3kb/paginate');

//Basic
pager.paginate();

//Default options
pager.paginate(
    {
        pagination_element: '.pagination',
        previous: 'Previous',
        next: 'Next',
        num_pages: 10,
        current_page: 1,
        show_page_links: 5,
        call_as_url: true,
        to_call: window.location.href + '?page='
    }
);

//URL to change page
pager.paginate(
    {
        call_as_url: true,
        to_call: window.location.href + '?page='
    }
);
    
//Call a function to change page
function change_page(page) {
    //
}

pager.paginate(
    {
        call_as_url: false,
        to_call: 'change_page'
    }
);
```
npm package: @p402/mcp-server
Description: MCP server for P402 AI Payment Router — route 300+ AI models with per-request USDC micropayments on Base L2
Author: P402 Protocol
Latest version: 1.0.0

<!-- mcp-name: io.github.Z333Q/p402 -->

# @p402/mcp-server

> MCP server for the P402 AI Payment Router — route 300+ AI models with per-request USDC micropayments on Base L2.

P402 sits between your AI agent and every major LLM provider. It intelligently selects the best model for each request based on cost, quality, or latency, and settles payment on-chain via the [x402 protocol](https://x402.org) — 1% flat fee, no per-transaction minimums.

## Installation

### Claude Desktop

Add to `~/Library/Application Support/Claude/claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "p402": {
      "command": "npx",
      "args": ["-y", "@p402/mcp-server"],
      "env": {
        "P402_API_KEY": "your-api-key-here"
      }
    }
  }
}
```

### VS Code / Cursor / JetBrains AI

Search for **p402** in the MCP server browser, or add the same configuration above to your editor's MCP settings.

## Configuration

| Variable | Required | Description |
|---|---|---|
| `P402_API_KEY` | Yes | Your P402 API key — get one at [p402.io/dashboard/settings](https://p402.io/dashboard/settings) |
| `P402_ROUTER_URL` | No | Override the router URL (default: `https://p402.io`) |

## Tools

### `p402_chat`

Route a chat completion through P402's multi-provider router.

```
message        string   The user message
mode           string   cost | quality | speed | balanced (default: balanced)
model          string   Pin a specific model (optional)
session_id     string   Attach to a session budget (optional)
system         string   System prompt (optional)
```

**Returns:** The model's response plus `p402_metadata` (provider, model used, cost in USD, latency).

### `p402_create_session`

Create a budget-capped session for cost-controlled agent runs.

```
budget_usd          number   Budget in USD (e.g. 1.00)
agent_id            string   Agent identifier for attribution (optional)
expires_in_hours    number   Session TTL (default: 24)
```

**Returns:** Session object with `id` — pass this as `session_id` to `p402_chat`.

### `p402_get_session`

Check remaining budget and status for a session.

```
session_id    string   The session ID to query
```

### `p402_list_models`

List all available models with pricing and provider details.

### `p402_compare_providers`

Compare providers side-by-side for a given task type.

```
task_type    string   chat | embedding | code | reasoning (optional)
```

### `p402_health`

Check router and on-chain facilitator health.

## Example workflow

```
1. Call p402_create_session with budget_usd: 0.50
2. Use the returned session id in all p402_chat calls
3. Call p402_get_session to monitor remaining budget
4. The session auto-deactivates when budget is exhausted
```

## Links

- [Documentation](https://p402.io/docs)
- [API Reference](https://p402.io/docs/api)
- [GitHub](https://github.com/Z333Q/p402-protocol)
- [npm: @p402/sdk](https://www.npmjs.com/package/@p402/sdk)

## License

MIT