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

@denlabs/feedback-client

v0.1.0

Published

Typed client for the DenLabs Event Feedback Ops API

Readme

@denlabs/feedback-client

Typed client for the DenLabs Event Feedback Ops API.

Zero runtime dependencies — uses native fetch.

Install

pnpm add @denlabs/feedback-client

Usage

import { FeedbackClient } from '@denlabs/feedback-client'

const client = new FeedbackClient({
  baseUrl: 'https://feedback-ops.vercel.app',
  adminToken: process.env.EFO_ADMIN_TOKEN, // required for admin endpoints
})

// List labs
const { data: labs, meta } = await client.listLabs({ limit: 10 })

// Get a lab
const { data: lab } = await client.getLab('my-lab')

// Submit feedback (public, no admin token needed)
const publicClient = new FeedbackClient({
  baseUrl: 'https://feedback-ops.vercel.app',
})
const { data: feedback } = await publicClient.submitFeedback('my-lab', {
  message: 'The onboarding flow is confusing',
  tags: ['ux', 'onboarding'],
  route: '/labs/my-lab',
})

// Create a lab (admin)
const { data: newLab } = await client.createLab({
  name: 'ETH Denver 2026',
  startDate: '2026-02-23T00:00:00Z',
  endDate: '2026-03-02T00:00:00Z',
  surfacesToObserve: ['registration', 'schedule', 'networking'],
})

// Triage feedback (admin)
const { data: triaged } = await client.triageFeedback('my-lab', feedback.id, {
  status: 'triaged',
  priority: 'P1',
})

Error Handling

import { FeedbackClient, FeedbackClientError } from '@denlabs/feedback-client'

try {
  await client.getLab('nonexistent')
} catch (err) {
  if (err instanceof FeedbackClientError) {
    console.log(err.code)    // 'NOT_FOUND'
    console.log(err.status)  // 404
    console.log(err.message) // 'Lab not found'
  }
}

Error Codes

| Code | HTTP | Description | |------|------|-------------| | VALIDATION_ERROR | 400 | Invalid request parameters | | UNAUTHORIZED | 401 | Missing or invalid admin token | | NOT_FOUND | 404 | Resource not found | | LAB_NOT_ACTIVE | 409 | Lab is not accepting feedback | | SLUG_EXHAUSTED | 409 | Could not generate unique slug | | RATE_LIMITED | 429 | Too many requests | | INTERNAL_ERROR | 500 | Server error |

API Reference

| Method | Auth | Description | |--------|------|-------------| | listLabs(opts?) | Public | Paginated list of labs | | createLab(input) | Admin | Create a new lab | | getLab(slug) | Public | Get lab by slug | | updateLabStatus(slug, input) | Admin | Update lab status | | listFeedback(slug, opts?) | Public | Paginated feedback for a lab | | submitFeedback(slug, input) | Public | Submit feedback | | triageFeedback(slug, id, input) | Admin | Triage feedback |

License

MIT