Socket
Book a DemoInstallSign in
Socket

@wheelofnames/lib

Package Overview
Dependencies
Maintainers
2
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wheelofnames/lib

This package contains some common utilities used by the https://wheelofnames.com web client, the Wheel of Names API, Discord bot, as well as various other tools. This package is likely useless to you if you are not a Wheel of Names developer.

0.3.7
latest
npmnpm
Version published
Weekly downloads
14
-82.72%
Maintainers
2
Weekly downloads
 
Created
Source

Wheel of Names lib

This package contains some common utilities used by the https://wheelofnames.com web client, the Wheel of Names API, Discord bot, as well as various other tools. This package is likely useless to you if you are not a Wheel of Names developer.

Contents

  • Wheel (and Wheel2) classes
  • WheelConfig class
  • standardizeWheelConfig function
  • WheelPainter (web-only) class
  • hubSizes object
  • ImageUtil functions
  • WheelEntry, WheelType, HubSize, ApiWheel, ShareMode types

Developing

This package is part of the Wheel of Names monorepo, which is private. Everything below this point is only useful for those with access to the repo.

Install dev dependencies with npm i.

Testing

npx playwright install --with-deps # only needs to be done once
npm run test

Developing lib and client together

To test local changes to lib in the client and backend, npm uninstall @wheelofnames/lib in their respective directories, then add "@wheelofnames/lib": "file:../lib", to their package.json and run npm i. When you update any code in lib, run npm run build in the lib directory. The client will detect the file change and do a hot reload.

You switch between the two lib versions with these two scripts in the client directory:

  • npm run locallib
  • npm run globallib

Don't forget to run npm run globallib before committing, since local dependencies don't work in CI/CD.

Publishing

Publish a new version:

npm run publish:patch # or minor/major

FAQs

Package last updated on 30 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.