SkillsLib.ai

Lnget

Download files with automatic Lightning micropayment handling via L402

4.2(44 reviews)
100+ downloads
Updated Nov 2026
Verified SafeSecurity VerifiedThis skill was analyzed by our AI security scanner for harmful content including data exfiltration, system manipulation, credential theft, and prompt injection. No threats were detected.

What You Can Do

Use lnget to fetch files and data from HTTP endpoints that require L402 Lightning micropayments. The tool automatically detects payment requirements (HTTP 402 responses), processes Lightning payments through your connected LND node, and retries requests—all without manual intervention. You can preview costs before paying, manage authentication tokens, and output results in machine-readable JSON or raw format.

Features

Automatic L402 payment flow

detects HTTP 402 challenges and pays Lightning invoices automatically

Dry-run mode

preview payment amounts and costs before executing transactions

Multiple output formats

JSON metadata, raw body content, or piped responses for scripting

Token management

list, inspect, and clear cached authentication tokens per domain

Lightning backend integration

supports both LND (macaroon auth) and LNC (pairing phrase) connections

Cost controls

set maximum payment limits to prevent unexpected charges

CLI and MCP interfaces

use via command line or as Claude's Machine Control Protocol tool

Event logging and introspection

check Lightning node status and review command schemas

Example Output

code
$ lnget --json --print-body https://api.example.com/data.json
{
  "status": 200,
  "headers": {"content-type": "application/json"},
  "body": {"data": "fetched content"},
  "payment": {"amount_sat": 250, "status": "paid"}
}

$ lnget tokens list --json
[{"domain": "api.example.com", "amount_sat": 500}, {"domain": "data.provider.io", "amount_sat": 1000}]

$ lnget --dry-run https://paid-endpoint.example.com
{"estimated_cost_sat": 150, "preview": true}

What's Included

  • SKILL.md: Complete lnget reference guide with CLI commands and usage patterns
  • Quick Reference Cheat Sheet: Essential flags and common command patterns for HTTP downloads and token management
  • L402 Payment Workflow Examples: Copy-paste command templates for automatic payment handling
  • Lightning Backend Setup Guide: Configuration instructions for LND macaroon and LNC pairing authentication
  • Schema Introspection Toolkit: Commands to explore available parameters and verify Lightning node connectivity

Who It's For

  • API developers and data engineers integrating L402-protected endpoints
  • DevOps engineers automating downloads from paid content sources
  • Bitcoin/Lightning developers building payment-integrated workflows
  • Research teams accessing paid datasets with micropayment billing
  • SREs managing infrastructure that consumes metered API services

Best For

  • Fetching data from L402-protected APIs and endpoints
  • Automating file downloads with embedded micropayment handling
  • Previewing payment costs before executing transactions
  • Managing and rotating Lightning authentication tokens
  • Building agent-driven workflows that handle paid content access

You might also like

Marketing Stack Integration Architect
$25
Marketing Stack Integration Architect

This skill helps you design, document, and troubleshoot integrations between your marketing platforms. You get API mapping strategies, workflow automation guidance, and ready-to-use integration templates for popular tools like Salesforce, HubSpot, Marketo, and Zapier. Whether you're building native connections or orchestrating multi-step workflows, this skill guides you through requirements gathering, authentication setup, and data validation.

PPC Campaign Audit & Strategic Optimization Roadmap
$35
PPC Campaign Audit & Strategic Optimization Roadmap

Upload your Google Ads account data and receive a comprehensive strategic audit that identifies performance gaps, competitive positioning issues, and high-impact optimization opportunities. Claude analyzes keyword quality, bidding strategies, budget allocation, and landing page performance to generate a prioritized 90-day roadmap with detailed ROI projections for each recommended change.

Guerrilla Tactics Campaign Designer
$25
Guerrilla Tactics Campaign Designer

You create structured guerrilla marketing campaigns that deliver outsized impact without big budgets. The skill designs tactics from concept through execution plan, identifies and mitigates legal and reputational risks, and stress-tests ideas for feasibility before you invest time or money. You get actionable playbooks with timelines, resource estimates, contingency plans, and success metrics.

Competitive Intelligence Analyst
$30
Competitive Intelligence Analyst

You can quickly structure competitor research, map competitive positioning across markets, and identify white space opportunities. The skill synthesizes company data, product analysis, and market trends into actionable strategic recommendations that inform your go-to-market strategy and product roadmap.

Affiliate Commission Analyzer
$35
Affiliate Commission Analyzer

Automate commission validation to catch calculation errors, tier mismatches, and overpayments before payment. Reconcile payer-affiliate disputes by comparing transaction records side-by-side and recommending resolution amounts with full justification. Generate compliance-ready payment reports with timestamped audit trails that satisfy finance teams and regulatory requirements.

Typescript Strict Mode Enforcer
$20
Backend4.2(51)
Typescript Strict Mode Enforcer

This skill scans your TypeScript codebase for type safety violations and systematically remediates them. You can automatically remove implicit any types, add comprehensive type annotations to functions and variables, configure strict mode compiler options in tsconfig.json, and receive actionable refactoring guidance with concrete code examples. It's designed for migrating existing projects to strict mode or enforcing strict practices before production deployment.

Brand Name Generation Strategist
$30
Brand Name Generation Strategist

You can generate distinctive brand names tailored to your market positioning, industry landscape, and target audience. The skill analyzes linguistic patterns, evaluates trademark viability signals, and ensures names align with your brand narrative and values. You'll receive multiple name candidates with detailed reasoning for why each works strategically.

API Parameter Validation & Security Hardening
$30
API Parameter Validation & Security Hardening

You get Claude to analyze your API specifications and automatically generate bulletproof parameter validation logic. Claude creates security-hardened middleware, enforces type constraints, detects malicious input patterns, and generates comprehensive error handling — all tailored to your framework and existing codebase. The result is production-ready validation code with zero unvalidated inputs reaching your business logic.

$30.00