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

@uvrn/farm

v1.0.0

Published

Standardized data source connectors for the UVRN protocol

Downloads

19

Readme

@uvrn/farm

@uvrn/farm is the UVRN protocol's provider-agnostic ingestion layer. It defines the connector contract used by @uvrn/agent, gives you a reusable base class for retry and timeout handling, and includes a few reference connectors that demonstrate the pattern without locking you to any specific third-party service.

Minimal install

npm install @uvrn/farm @uvrn/core @uvrn/agent

@uvrn/core and @uvrn/agent are peer dependencies. No other UVRN package is required to implement your own connector.

Bring Your Own Provider

FarmConnector is the contract. BaseConnector is the reusable scaffold. This is the primary use case.

import { BaseConnector } from '@uvrn/farm';
import type { ClaimRegistration, FarmResult } from '@uvrn/farm';

class MyConnector extends BaseConnector {
  readonly name = 'MyConnector';

  async fetch(claim: ClaimRegistration): Promise<FarmResult> {
    return {
      claimId: claim.id,
      sources: [
        {
          url: 'https://example.com/data',
          title: `${claim.label} evidence`,
          snippet: 'Your custom provider result goes here.',
          publishedAt: new Date().toISOString(),
          credibility: 0.8,
        },
      ],
      fetchedAt: new Date().toISOString(),
      durationMs: 10,
    };
  }
}

Concrete connectors may also expose a convenience fetch(claim: string) overload for standalone use.

Reference Implementations

These classes are examples, not requirements:

  • CoinGeckoFarm: public crypto search metadata, no API key required
  • CoinbaseFarm: public currency catalog data, no API key required
  • PerplexityFarm: research synthesis via Perplexity, API key required
  • NewsApiFarm: news article search via NewsAPI, API key required

You can import them from the package root or from @uvrn/farm/connectors.

import { MultiFarm } from '@uvrn/farm';
import { CoinGeckoFarm, CoinbaseFarm } from '@uvrn/farm/connectors';

const farm = new MultiFarm([
  new CoinGeckoFarm(),
  new CoinbaseFarm(),
]);

MultiFarm

MultiFarm runs multiple connectors in parallel with Promise.allSettled(), merges successful sources, and returns partial results if one connector fails. Set failFast: true if you want the first connector error to abort the run.

Connector Registry

ConnectorRegistry stores named connectors and can assemble a MultiFarm instance from all registered connectors or a named subset.

Public API

  • BaseConnector
  • CoinGeckoFarm
  • CoinbaseFarm
  • PerplexityFarm
  • NewsApiFarm
  • MultiFarm
  • ConnectorRegistry
  • registry
  • FarmConnector
  • FarmResult
  • FarmSource
  • ClaimRegistration
  • ConnectorConfig
  • MultiFarmOptions
  • FarmConnectorError

Dependencies

  • Peer dependencies: @uvrn/core, @uvrn/agent
  • Runtime dependencies: none