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

pcbuilder

v1.0.0

Published

Build a pc parts picker.

Readme

PC Builder API

A powerful Express.js server for generating compatible PC configurations based on budget and use-case requirements. Powered by BuildPC.

Features

  • Generate complete PC configurations based on budget constraints
  • Custom configurations for specific use cases (gaming, productivity, content creation)
  • Automatic compatibility checking between components
  • Performance ratings for different use scenarios
  • Upgrade path recommendations
  • Rate limiting to prevent abuse

Installation

# Clone the repository
git clone https://github.com/yourusername/pc-builder-api.git

# Navigate to project directory
cd pc-builder-api

# Install dependencies
npm install

# Create a .env file with your OpenAI API key
echo "OPENAI_API_KEY=your_openai_api_key_here" > .env

# Start the server
npm start

API Endpoints

Generate PC Build

POST /api/build-pc

Request Body:

{
  "budget": 1500,
  "use_case": "gaming",
  "preferences": {
    "brand_preferences": {
      "cpu": "AMD",
      "gpu": "NVIDIA"
    },
    "rgb": true,
    "noise_level": "quiet",
    "size": "mid-tower"
  }
}

Response:

{
  "build_name": "High-End Gaming Build",
  "total_price": 1489.95,
  "performance_rating": {
    "gaming": 8.5,
    "productivity": 7.2,
    "content_creation": 6.8
  },
  "components": {
    "cpu": {
      "name": "AMD Ryzen 5 7600X",
      "price": 249.99,
      "specs": {
        "cores": 6,
        "threads": 12,
        "base_clock": "4.7 GHz",
        "boost_clock": "5.3 GHz",
        "tdp": 105,
        "socket": "AM5"
      },
      "link": "https://www.amazon.com/AMD-Ryzen-7600X-Desktop-Processor/dp/B0BBHHT8LY/"
    },
    "motherboard": {
      "name": "MSI MAG B650 TOMAHAWK WIFI",
      "price": 199.99,
      "specs": {
        "socket": "AM5",
        "form_factor": "ATX",
        "ram_type": "DDR5",
        "max_ram_speed": 6600
      },
      "link": "https://www.amazon.com/MSI-MAG-B650-TOMAHAWK-WIFI/dp/B0BGJBG5YV/"
    },
    /* Other components would be listed here */
  },
  "compatibility": {
    "issues": [],
    "notes": [
      "All components are compatible",
      "System has sufficient cooling for the selected components"
    ]
  },
  "upgrade_path": {
    "recommendations": [
      "Could upgrade to Ryzen 7 7800X3D in the future for better gaming performance",
      "Additional storage could be added as needed"
    ]
  },
  "generated_at": "2025-03-03T17:30:45.123Z"
}

Environment Variables

| Variable | Description | |----------|-------------| | PORT | Port on which the server should run (default: 3000) | | OPENAI_API_KEY | Your OpenAI API key for GPT-4o |

Error Handling

The API returns appropriate HTTP status codes and error messages:

  • 400: Bad Request (invalid input)
  • 429: Too Many Requests (rate limit exceeded)
  • 500: Server Error (with details when possible)

Testing

Run the test suite:

npm test

Dependencies

  • express: Web server framework
  • axios: HTTP client for API requests
  • dotenv: Environment variable management
  • express-validator: Input validation
  • express-rate-limit: API rate limiting

License

MIT

About

This API is designed to help users get optimized PC builds based on their specific requirements and budget constraints. It uses OpenAI's GPT-4o to generate configurations and ensures all components are compatible with each other.

Try our advanced PC builder.