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

fellow-aiden

v1.0.0

Published

JavaScript/TypeScript client for the Fellow Aiden coffee brewer cloud API

Readme

fellow-aiden (JavaScript / TypeScript)

npm version npm downloads license

A TypeScript client for the Fellow Aiden coffee brewer's cloud API. A faithful port of the Python library 9b/fellow-aiden.

Unofficial — not affiliated with or endorsed by Fellow.

Install

npm install fellow-aiden

Requires Node 18+ (uses the built-in global fetch). Ships ESM + CommonJS builds and TypeScript declarations.

Quick start

import { FellowAiden } from 'fellow-aiden';

// Authentication is async, so use the static factory:
const aiden = await FellowAiden.create({
  email: process.env.FELLOW_EMAIL!,
  password: process.env.FELLOW_PASSWORD!,
});

console.log(aiden.getDisplayName(), aiden.getBrewerId());

const profiles = await aiden.getProfiles();

API

Construction & auth

  • FellowAiden.create(options) — construct, authenticate, and load the device.
  • new FellowAiden(options) then await client.authenticate() — manual flow.
  • authenticate() — (re)log in; also called automatically once on a 401.

options: { email, password, baseUrl?, userAgent?, maxRetries?, fetch? }.

Device

  • getDisplayName(): string | null
  • getBrewerId(): string | null
  • getDeviceConfig({ refresh? }): Promise<DeviceConfig>
  • adjustSetting(setting, value): Promise<unknown>

Profiles

  • getProfiles({ refresh? }): Promise<Profile[]>
  • getProfileByTitle(title, { fuzzy? }): Promise<Profile | null> — exact (case-insensitive) by default; fuzzy uses a difflib-equivalent ratio > 0.65.
  • createProfile(data): Promise<Profile> — validated against CoffeeProfileSchema.
  • updateProfile(profileId, data): Promise<Profile>
  • deleteProfileById(profileId): Promise<void>
  • generateShareLink(profileId): Promise<string>
  • parseBrewLinkUrl(link): Promise<Record<string, unknown>>
  • createProfileFromLink(link): Promise<Profile>

Schedules

  • getSchedules({ refresh? }): Promise<Schedule[]>
  • createSchedule(data): Promise<Schedule> — validated against CoffeeScheduleSchema.
  • toggleSchedule(scheduleId, enabled): Promise<unknown>
  • deleteScheduleById(scheduleId): Promise<void>

Validation

Profile and schedule inputs are validated with Zod schemas that mirror the Python Pydantic models. Allowed ratio/temperature values are exported (RATIO_VALUES, TEMPERATURE_VALUES, BLOOM_RATIO_VALUES). Invalid input throws a ValidationError; API failures throw ApiError; auth failures throw AuthError. All extend FellowAidenError.

Profile fields

{
  profileType: number;            // int
  title: string;                  // ≤ 50 chars, restricted charset
  ratio: number;                  // 14–20 step 0.5
  bloomEnabled: boolean;
  bloomRatio: number;             // 1, 1.5, 2, 2.5, 3
  bloomDuration: number;          // 1–120
  bloomTemperature: number;       // 50–98.5 step 0.5 (°C)
  ssPulsesEnabled: boolean;
  ssPulsesNumber: number;         // 1–10
  ssPulsesInterval: number;       // 5–60
  ssPulseTemperatures: number[];  // each 50–98.5 step 0.5
  batchPulsesEnabled: boolean;
  batchPulsesNumber: number;      // 1–10
  batchPulsesInterval: number;    // 5–60
  batchPulseTemperatures: number[];
}

Schedule fields

{
  days: boolean[];                // exactly 7, Sunday → Saturday
  secondFromStartOfTheDay: number;// 0–86399
  enabled: boolean;
  amountOfWater: number;          // 150–1500 (ml)
  profileId: string;              // "p<n>" or "plocal<n>"
}

Development

npm install
npm test          # vitest (fully mocked, no network)
npm run typecheck # tsc --noEmit
npm run build     # tsup → dist/ (ESM + CJS + .d.ts)

See examples/basic-usage.ts for a runnable example.

Releasing

Releases are published to npm by CI via trusted publishing (OIDC, no token) when a vX.Y.Z tag is pushed. To cut one:

npm run release            # patch: 0.1.1 → 0.1.2
npm run release -- minor   # 0.1.1 → 0.2.0
npm run release -- major   # 0.1.1 → 1.0.0

This bumps the version, commits, tags vX.Y.Z, and pushes — which triggers release.yml to build, test, and publish with provenance.

License

MIT. Inspired by the GPL-3.0 Python project 9b/fellow-aiden; this is an independent reimplementation written against the observed HTTP API.