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

@auresjs/api

v1.1.0

Published

A JavaScript/TypeScript client for Aures API

Downloads

30

Readme

@auresjs/api

A TypeScript/JavaScript client library for accessing Aures account data.

Installation

npm install @auresjs/api
# or
yarn add @auresjs/api

Quick Start

// ES Modules / TypeScript
import Aures from "@auresjs/api";

// Initialize with username
const aures = new Aures({ username: "username" });

// Load all data
const data = await aures.load();
console.log(data);

Basic Usage

Using the Client Class

import Aures from "@auresjs/api";

const aures = new Aures({
  username: "username",
  config: {
    baseURL: "https://api.aures.io", // optional
    timeout: 10000, // optional, default: 10000ms
    cache: true, // optional, default: true
  },
});

// Load all data
const allData = await aures.load();

// Load specific data types
const profile = await aures.getProfile();
const projects = await aures.getProjects();
const experience = await aures.getExperience();
const certificates = await aures.getCertificates();
const awards = await aures.getAwards();
const skills = await aures.getSkills();

Using Individual Functions

import { loadProfile, loadCertificates } from "@auresjs/api";

const profile = await loadProfile("username");
const certificates = await loadCertificates("username");

Individual Module Imports

import { loadProfile } from "@auresjs/api/profile";
import { loadCertificates } from "@auresjs/api/certificates";
import { loadProjects } from "@auresjs/api/projects";

CommonJS Usage

const Aures = require("@auresjs/api").default;
const { loadProfile } = require("@auresjs/api");

// Or for individual modules
const { loadProfile } = require("@auresjs/api/profile");

CDN Usage

<script src="https://unpkg.com/@auresjs/api"></script>
<script>
  const aures = new Aures({ username: "username" });

  // Global functions available
  loadProfile("username").then((profile) => {
    console.log(profile);
  });
</script>

React Example

import { useState, useEffect } from "react";
import { loadProfile, loadCertificates } from "@auresjs/api";

function Portfolio({ username }) {
  const [profile, setProfile] = useState(null);
  const [certificates, setCertificates] = useState([]);
  const [loading, setLoading] = useState(true);

  useEffect(() => {
    const fetchData = async () => {
      try {
        const [profileData, certificatesData] = await Promise.all([
          loadProfile(username),
          loadCertificates(username),
        ]);
        setProfile(profileData);
        setCertificates(certificatesData);
      } finally {
        setLoading(false);
      }
    };

    fetchData();
  }, [username]);

  if (loading) return <div>Loading...</div>;

  return (
    <div>
      <h1>{profile.username}</h1>
      {/* Render your data */}
    </div>
  );
}

API Reference

AuresClient

Constructor

new Aures({ username: string, config?: AuresConfig })

Configuration

interface AuresConfig {
  baseURL?: string; // default: 'https://api.aures.io'
  timeout?: number; // default: 10000
  cache?: boolean; // default: true
  headers?: Record<string, string>;
}

Methods

  • load(): Load all user data
  • getProfile(): Get profile information (username, avatar, email, skills)
  • getProjects(): Get projects array
  • getExperience(): Get work experience array
  • getCertificates(): Get certificates array
  • getAwards(): Get awards array
  • getSkills(): Get skills array
  • get(selectFields): Get specific fields

Available Data Fields

The API returns these data types:

interface ProfileData {
  username: string;
  avatar: string;
  email?: string;
  skills?: string[];
}

interface Project {
  name: string;
  desc: string;
  url?: string;
  tech?: string[];
}

interface Experience {
  title: string;
  company: string;
  description: string;
  startDate: string;
  endDate?: string;
}

interface Certificate {
  title: string;
  platform: string;
  description: string;
  url?: string;
  completedOn: string;
  role?: string;
}

interface Award {
  title: string;
  issuer: string;
  description: string;
  date: string;
}

Individual Functions

  • loadProfile(username, options?): Load profile data
  • loadProjects(username, options?): Load projects
  • loadExperience(username, options?): Load experience
  • loadCertificates(username, options?): Load certificates
  • loadAwards(username, options?): Load awards
  • loadSkills(username, options?): Load skills

Error Handling

import { AuresError } from "@auresjs/api";

try {
  const data = await loadProfile("username");
} catch (error) {
  if (error instanceof AuresError) {
    console.error(`API Error ${error.status}: ${error.message}`);
  } else {
    console.error("Network error:", error.message);
  }
}

TypeScript Support

Full TypeScript definitions are included. All interfaces are exported:

import Aures, {
  ProfileData,
  Certificate,
  AuresError,
  type AuresConfig,
} from "@auresjs/api";

License

MIT