npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@quantish/server

v0.1.2

Published

Self-hosted Quantish server - bring your own database, full control

Readme

@quantish/server

Self-hosted Quantish Trading MCP Server for Polymarket.

Run your own trading infrastructure with full control over your wallet keys.

Installation

npm install @quantish/server

Quick Start

import { createServer, PostgresAdapter } from '@quantish/server';

const server = await createServer({
  database: new PostgresAdapter({
    connectionString: process.env.DATABASE_URL
  }),
  encryption: {
    masterKey: process.env.QUANTISH_MASTER_KEY
  }
});

server.listen(3000);

Configuration

Environment Variables

| Variable | Description | |----------|-------------| | DATABASE_URL | PostgreSQL connection string | | QUANTISH_MASTER_KEY | 32-byte hex key for wallet encryption | | POLYMARKET_API_KEY | Polymarket Builder API key (optional) | | POLYMARKET_API_SECRET | Polymarket Builder API secret (optional) | | POLYMARKET_PASSPHRASE | Polymarket Builder passphrase (optional) |

Generate Master Key

npx quantish generate-key

Database Setup

The server requires PostgreSQL. Run the included migrations:

npx prisma migrate deploy

Or use the provided schema to create tables manually.

API Endpoints

Health Check

GET /health

Wallet Operations

GET  /v1/wallet/status    - Get wallet setup status
POST /v1/wallet/setup     - Initialize wallet (Safe deployment, approvals)
GET  /v1/wallet/balances  - Get USDC/MATIC balances
POST /v1/wallet/transfer  - Transfer USDC

Trading Operations

POST   /v1/trade/buy           - Buy shares
POST   /v1/trade/sell          - Sell shares
POST   /v1/trade/order         - Place custom order
DELETE /v1/trade/orders/:id    - Cancel order
GET    /v1/trade/orders        - List orders

Positions

GET  /v1/positions           - List positions
GET  /v1/positions/all       - Include transferred shares
GET  /v1/positions/claimable - Check for winnings
POST /v1/positions/claim     - Claim all winnings

MCP Endpoint

For use with Quantish Agent CLI, expose a JSON-RPC 2.0 endpoint:

POST /mcp/execute
Content-Type: application/json
X-API-Key: <user-api-key>

{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "name": "get_balances",
    "arguments": {}
  },
  "id": 1
}

Packages

This monorepo contains:

| Package | Description | |---------|-------------| | @quantish/server | Express server with trading endpoints | | @quantish/core | Encryption, signing, wallet utilities | | @quantish/types | TypeScript type definitions |

Development

# Install dependencies
pnpm install

# Build all packages
pnpm build

# Run in development
pnpm dev

Security

  • All private keys are encrypted with AES-256-GCM
  • HMAC request signing supported
  • API keys are hashed before storage
  • Non-custodial: users can export their keys

License

PolyForm Noncommercial 1.0.0