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

dev-console-kit

v1.1.0

Published

The ultimate debugging toolkit for React & Next.js students. Features environment detection, mentor tips, and a CSS layout debugger.

Readme

Dev Console Kit

A smart, colorful, and educational logging utility designed for React & Next.js students. It helps you debug faster, understand Server/Client environments, and fix CSS layout issues instantly.


Features

Environment Detection: Automatically labels logs as [CLIENT] or [SERVER].

Mentor Tips: Provides a random "Clean Code" tip in the console on every refresh (30+ categorized tips).

CSS X-Ray: A "Golden Shot" feature to outline all DOM elements for layout debugging.

Pretty Logs: Color-coded success, error, warning, info, and debug messages.

Performance Tracking: Built-in timer functions to measure execution time.

Toggle Logging: Enable/disable all logs for production builds.

Smart Inspection: Table view for objects in browser, detailed structure in terminal.

TypeScript Support: Full type definitions included.

Installation

npm install dev-console-kit

or

yarn add dev-console-kit

Verify Installation

After installing, create a test file to verify:

import Logger from 'dev-console-kit';

Logger.success("dev-console-kit is working!");

Usage

import Logger from 'dev-console-kit';

1. Smart Logging

Logger.success("User logged in successfully!");
Logger.error("API Connection Failed", { error: 500 });
Logger.warning("This component is deprecated.");
Logger.info("Application started on port 3000");
Logger.debug("Detailed debugging info", { state: "loading" });

2. Performance Tracking

Measure how long operations take:

Logger.time("API Call");
await fetchUserData();
Logger.timeEnd("API Call"); // Logs: "API Call: 245.32ms"

3. Toggle Logging

Disable all logs in production:

// In your main entry file
if (process.env.NODE_ENV === 'production') {
  Logger.setEnabled(false);
}

4. Inspecting Data (Props, State, etc.)

Prints data in a clean table format (in browser) or detailed structure (in terminal).

const user = { id: 1, name: "John", role: "Admin" };
Logger.inspect("User Data", user);

5. CSS Layout Debugging

Struggling with CSS? Can't see which div is overflowing? Run this function once to outline everything on the page.

// Add this inside a useEffect or call it temporarily
Logger.debugLayout();

Tip: Call Logger.debugLayout() once, identify your layout issue, then remove the call.


API Reference

Logger.success(msg, data?)

Logs a success message with optional data.

Logger.error(msg, error?)

Logs an error message with optional error details.

Logger.warning(msg)

Logs a warning message.

Logger.info(msg, data?)

Logs an informational message with optional data.

Logger.debug(msg, data?)

Logs a debug message (useful for verbose logging).

Logger.inspect(label, object)

Inspects and displays an object in a structured format.

Logger.time(label)

Starts a performance timer with the given label.

Logger.timeEnd(label)

Ends a performance timer and logs the elapsed time.

Logger.setEnabled(enabled)

Enables or disables all logging. Useful for production builds.

Logger.setEnabled(false); // Disable all logs
Logger.setEnabled(true);  // Re-enable logs

Logger.debugLayout()

Activates CSS layout debugging mode (browser only). Outlines all DOM elements with random colors.


Mentor Tips

The package includes 30+ categorized mentor tips covering:

  • React: Hooks, state management, best practices
  • Next.js: Server components, routing, optimization
  • CSS: Flexbox, Grid, responsive design
  • Performance: Optimization techniques
  • Clean Code: Best practices and patterns
  • Debugging: Tips and tricks

A random tip is displayed in the browser console on every refresh!


TypeScript Support

This package includes TypeScript definitions. No additional @types package needed!

import Logger from 'dev-console-kit';

Logger.success("Fully typed!", { id: 1 });

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

ISC License - See LICENSE file for details.


Author

Murat Hüdavendigâr Öncü
Website
GitHub


Support

If you find this package helpful, please give it a ⭐️ on GitHub!

For issues and questions, visit the Issues page.