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

@gvnrdao/lit-ops-server

v0.0.35

Published

HTTP REST service for LIT Protocol operations - handles credits and PKP management

Downloads

291

Readme

@gvnrdao/lit-ops-server

HTTP REST service for LIT Protocol operations - handles credits and PKP management

Description

A production-ready HTTP REST server that manages LIT Protocol operations for the Diamond Hands Protocol. This service handles PKP (Programmable Key Pair) creation, authorization, and LIT Actions execution in a secure, scalable manner.

Installation

npm install @gvnrdao/lit-ops-server

Usage

Basic Server Setup

import { LitOpsServer } from "@gvnrdao/lit-ops-server";

const server = new LitOpsServer({
  port: 3001,
  network: "datil",
  privateKey: process.env.WALLET_PRIVATE_KEY,
  debug: true,
});

await server.start();

Configuration

Set up environment variables:

# Required
PRIVATE_KEY=0x...
# Chipotle network/API credential required at server startup
LIT_CHIPOTLE_API_KEY=your_chipotle_api_key
# Supported: naga, naga-test, naga-dev (default: naga)
LIT_NETWORK=chipotle

# Lit usage API key for the price-oracle lit-action only (X-Api-Key on POST /core/v1/lit_action).
# Other lit-actions will use their own LIT_ACTION_<name>_API_KEY vars over time.
LIT_ACTION_PRICE_ORACLE_API_KEY=your_lit_usage_key_for_price_oracle

# Lit Core base URL for Chipotle execution (default: hosted dev API)
LIT_CORE_API_BASE_URL=https://api.dev.litprotocol.com

# Set to false to force legacy Naga executeJs for the registry priceOracle CID (not recommended)
# LIT_PRICE_ORACLE_USE_CORE=false

# Exchange / market-data keys are passed by callers as js_params.priceProviders.

# Optional
PORT=3001
DEBUG=true

API Endpoints

Health Check

GET /health

PKP Operations

POST /pkp/create
POST /pkp/authorize
POST /pkp/execute-action

Running the Server

# Development
npm run dev

# Production
npm run build
npm start

Features

  • REST API: Clean HTTP interface for LIT Protocol operations
  • PKP Management: Secure creation and authorization of PKPs
  • LIT Actions Execution: Execute custom LIT Actions remotely
  • Security: Helmet protection, CORS configuration
  • Logging: Comprehensive Winston-based logging
  • Health Monitoring: Built-in health check endpoints
  • TypeScript: Full type safety and IntelliSense support

API Documentation

Visit http://localhost:3001 when the server is running for interactive API documentation.

Security Considerations

  • Always use environment variables for sensitive configuration
  • Enable HTTPS in production
  • Implement proper authentication for production deployments
  • Monitor logs for security events

License

MIT