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

nodeaur

v1.0.0

Published

A lightweight TypeScript/Node.js client for the [AUR RPC API v5](https://aur.archlinux.org/rpc).

Downloads

30

Readme

nodeaur

A lightweight TypeScript/Node.js client for the AUR RPC API v5.

Installation

npm install nodeaur

Usage

import {
  searchSinglePackageTerm,
  packageNameSingleStartsWith,
  packageNameMultipleStartsWith,
  singlePackageInfo,
  multiplePackageInfo,
  multiplePackageInfoPost,
} from "nodeaur";

Search

Search packages by keyword

const results = await searchSinglePackageTerm("neovim");
// results.results → PackageBasic[]

Autocomplete: suggest package names starting with a prefix

const names = await packageNameSingleStartsWith("gtk");
// names → string[]  e.g. ["gtk3", "gtk4", "gtk-doc", ...]

Autocomplete: suggest package-base names starting with a prefix

const bases = await packageNameMultipleStartsWith("gtk");
// bases → string[]

Package info

Fetch details for a single package

const info = await singlePackageInfo("yay");
// info.results[0] → PackageDetailed

Fetch details for multiple packages (GET)

const info = await multiplePackageInfo({ arg: "yay", arg: "paru" });
// info → PackageDetailed[]

For a large number of packages, prefer the POST variant to avoid URL-length limits.

Fetch details for multiple packages (POST)

const info = await multiplePackageInfoPost({ arg: "yay", arg: "paru" });
// info → PackageDetailed[]

Low-level client

All functions are built on aurRequest, which you can call directly if you need full control:

import { aurRequest, AUR_BASE_URL } from "nodeaur";

const data = await aurRequest<MyType>("/search", "neovim");

aurRequest throws a GenericRequestError (which extends Error) on any API or network failure.

API Reference

Search functions

| Function | Parameters | Returns | |---|---|---| | searchSinglePackageTerm | searchTerm: string | Promise<SearchResult> | | packageNameSingleStartsWith | startsWith: string | Promise<PackageName[]> | | packageNameMultipleStartsWith | startsWith: string | Promise<PackageName[]> |

Info functions

| Function | Parameters | Returns | |---|---|---| | singlePackageInfo | packageName: string | Promise<InfoResult> | | multiplePackageInfo | params: Record<string, string> | Promise<InfoResult[]> | | multiplePackageInfoPost | params: Record<string, string> | Promise<InfoResult[]> |

Types

| Type | Description | |---|---| | PackageBasic | Core package fields returned by search | | PackageDetailed | Extended fields returned by info (extends PackageBasic) | | SearchResult | Wrapper with results: PackageBasic[] | | InfoResult | Wrapper with results: PackageDetailed[] | | BaseResult | Shared resultCount, type, version fields | | ErrorResult | Error response shape | | GenericRequestError | Error class thrown on API/network failures | | PackageName | Alias for string |

License

ISC