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

@devgroup.se/poe-forum-api

v5.4.0

Published

Auto-generated API client for Path of Exile Forum Crawler

Readme

@devgroup.se/poe-forum-api

Auto-generated API client for the Path of Exile Forum Crawler.

This package is automatically generated from the Swagger/OpenAPI specification of the backend server.

Installation

npm install @devgroup.se/poe-forum-api

Usage

Basic Usage

import { getCategories, getCategory, getThread } from '@devgroup.se/poe-forum-api'

// Fetch all categories
const categories = await getCategories()

// Fetch threads from a specific category
const threads = await getCategory('announcements')

// Fetch a specific thread
const thread = await getThread('1234567')

Configuring the Base URL

By default, the client uses the current origin (in browsers) or http://localhost:3000 (in Node.js).

To set a custom base URL:

import { setBaseUrl, getCategories } from '@devgroup.se/poe-forum-api'

// Set API base URL before making requests
setBaseUrl('https://api.example.com')

// Or for development with a different port
setBaseUrl('http://localhost:4000')

// Then use the API functions normally
const categories = await getCategories()

Common Patterns

React App:

// App.tsx or main.tsx
import { setBaseUrl } from '@devgroup.se/poe-forum-api'

const apiUrl = process.env.REACT_APP_API_URL || 'http://localhost:3000'
setBaseUrl(apiUrl)

// Now use the API throughout your app

Express/Node.js Server:

import { setBaseUrl, getCategories } from '@devgroup.se/poe-forum-api'

app.get('/api/categories', async (req, res) => {
  setBaseUrl('http://internal-api-server:3000')
  const categories = await getCategories()
  res.json(categories)
})

Environment Variables:

# .env
VITE_API_URL=https://api.production.com

# or for React
REACT_APP_API_URL=https://api.production.com
const apiUrl = import.meta.env.VITE_API_URL || 'http://localhost:3000'
setBaseUrl(apiUrl)

API Reference

setBaseUrl(baseUrl: string)

Sets the base URL for all subsequent API requests.

setBaseUrl('https://api.example.com')

getBaseUrl(): string

Returns the currently configured base URL.

console.log(getBaseUrl()) // 'https://api.example.com'

resetBaseUrl()

Resets the base URL to its default value.

resetBaseUrl() // Back to browser origin or http://localhost:3000

API Endpoints

Categories

  • getCategories() - Get all forum categories
  • getCategory(categoryId, params?) - Get threads from a category

Threads

  • getThread(threadId, params?) - Get a specific thread

Development

Regenerating the Client

When the backend API changes, regenerate the client from the root project:

npm run generate:api
npm run build:client

Publishing (Maintainers only)

  1. Ensure you're authenticated with npm:

    npm login
  2. Update version in packages/api-client/package.json following semver

  3. Publish:

    npm run publish:client

Notes

  • The client uses the Fetch API, so it requires a modern browser or Node.js 18+
  • Base URL is stored globally, so changing it affects all subsequent requests
  • The client preserves the current browser origin by default when running in a browser
  • Query parameters are automatically encoded

License

MIT