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

@articles-media/articles-dev-box

v1.3.3

Published

Shared code, functions, and components for different Articles Media projects.

Readme

Articles Dev Box

Preview

Shared code, functions, and components that are commonly used across Articles Media projects.

Warning

A lot of this package is expected to be consumed in a Articles Media related React ecosystem. See Package Exports section for more details.

Getting Started

For production use add the organization scooped package to your package.json.

npm i @articles-media/articles-dev-box

For local development, navigate to this project and run this command.

npm link

Then go to the consuming project directory and run this command.

npm link @articles-media/articles-dev-box

You will need to have a dev script running to watch for changes and build the dist to see local changes

npm run dev

Package Exports

| Name | Description | Usage Example | | :--- | :--- | :--- | | ReturnToLauncherButton | For bringing users back to their state in the games showcase/launcher | | | SignInButton | For bringing users to the accounts service to login at and redirecting back | | | SessionButton | Button that manages sign in, sign out, and account details. | Catching Game and School Run | | GameScoreboard | Scoreboard for registered games that links with a user's Articles Media account. | | | Ad | Articles Ad component that connects with user data. | | | GameMenu | All in one component that handles the sidebar and menu-bar inside a game page. | Catching Game and School Run use Static Panel for sidebarStyle and Corner Button for menuBarStyle. Ice Slide uses Floating Panel for sidebarStyle and Bar for menuBarStyle. | | GameMenuPrimaryButtonGroup | The common button groups for landing page and menu content across our games | Catching Game and Move Match | | NicknameInput | Handles nickname UI on landing page | Catching Game | | GlobalHead | Not used at this time, allows for head element related tags to be added to site without other logic. | | | GlobalBody | Easy way to add future logic and components to all projects with ease. For now handling the font awesome script. Also shows connection status to required servers in development. Will ping the main and auth server as they are needed for some dev-box features. | | | ViewUserModal | View user profile data and recent activity. | | | SettingsModal | All in one component to handle game settings UI across multiple games. | | | CreditsModal | All in one component to handle game credits UI across multiple games. | | | InfoModal | All in one component to handle game info modal across multiple games. | USA Tycoon | | FriendsList | List and Modal for showing friends. | Auto imported via GlobalClientModals | | InviteModal | Modal for showing FriendsList with allowInvite | Normally used via GlobalClientModals | | ReusedSocketLogicHandler | Sets up a lot of common websocket logic | Catching Game, Ocean Rings | | DarkModeHandler | Consumes a Zustand store, detects prefers-color-scheme, sets data-bs-theme on body element. | | | ToontownModeHandler | Handles setting zustand state from url params if toontownMode is passed. | | | SocketServerUrlHandler | Handles setting socket server state from url params if socketServerUrl is passed. | | | HasNoMouseHandler | Sets hasNoMouse and isTouchCapable on first load | | | useUserToken | Hook for getting the subdomain auth token. | | | useUserDetails | Hook for getting the details of the current user if a valid user token is found. | | | useFullscreen | Hook for going fullscreen on the body or provided element | | | typicalZustandStoreExcludes | Array of strings that every game published by Articles Media would want to normally exclude from persisting in base game store. | Catching Game and School Run | | typicalZustandStoreStateSlice | Slice of zustand states that every game normally uses | Catching Game and School Run | | zustandSocketStoreSlice | Slice of zustand states that every game normally uses for sockets | School Run | getSignOutRedirectUrl | Handles signout redirect api logic | Catching Game | | GlobalClientModals | Imports all global client modals like FriendsList, CreditsModal, SettingsModal, InfoModal, and so on | USA Tycoon | | generateRandomNickname | Reusable way of doing random nicknames from package | USA Tycoon | | defaultGameNextConfig | Not usable, for reference | None | | defaultGameThemeConfig | Not usable, for reference | None | | useModalNavigation | Handles navigating a modal with controller | None | | gameLandingPageTemplate | All in one component that sets up the default landing page as much as possible | USA Tycoon | | gamePageTemplate | All in one component that sets up the default game page as much as possible | USA Tycoon |

Usage Examples

For newly developed components I sometimes find myself trying to remember what repos used it. Here is a short list of recent components developed and what project is using it. Doing this until AMPM can search by imports or enough projects adopted the component.

Roadmap

⏹️ Remove Bootstrap reliance?
⏹️ Figure out why this package does not work outside webpack, on Turbopack for example it fails. Bootstrap SASS related I think.

TODO

  • Nothing major right now, search "TODO" in repo for minor stuff.