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

@jasbel/responsive

v1.0.5

Published

responsive for javascript vanilla, css, scss, react, nextjs and others web project, description: https://github.com/jasbel/responsive-styles#readme

Readme

@jasbel/responsive NPM version Downloads

Information

The best supported, easiest to use react media query module.

Install

$ npm install @jasbel/responsive --save-dev
$ npm i -D @jasbel/responsive

Example Usage

Usage

install compiler sass and import file scss main:

@import "@jasbel/responsive/scss/responsive.scss";

...

With HTML and SCSS

Example:

index.html

<body>
  <h1>Title</h1>
  <h1 class="myTitle">Title Responsive</h1>
  <h2>Subtitle</h2>
  <h2 class="mySubtitle">Subtitle</h2>
  <p class="myText">Text Responsive </p>

  <div style="display: flex;">
    <div class="myBoxNoResponsive">My Box No Responsive</div>
    <div class="myBox">My Box</div>
    <div class="myBox2">My Box2</div>
  </div>
</body>
// @import "@jasbel/responsive/scss/responsive.scss";
@import "@jasbel/responsive/index.scss";

h1 {
  font-size: 50px;
  @include mq(fz, 50, $desktop-responsive);
  @include mq(fz, 30, $phone-responsive);
}

h2 {
  font-size: 40px;
  @include mq(fz, 40, $desktop-responsive);
  @include mq(fz, 20, $phone-responsive);
}

.myTitle {
  @include responsive(fz, 50, 30);
}

.mySubtitle {
  @include responsive(fz, 40, 20);
}

.myText {
  @include responsive(fz, 28, 16);
}

.myBoxNoResponsive {
  display: block;
  width: 300px;
  height: 300px;
  @include mq(w, 300, $desktop-responsive);
  @include mq(w, 150, $tablet-responsive);
  @include mq(w, 80, $phone-responsive);
  @include mq(h, 300, $desktop-responsive);
  @include mq(h, 150, $tablet-responsive);
  @include mq(h, 80, $phone-responsive);
  background-color: violet;
}

.myBox {
  display: block;
  @include responsive(w, 300, 80);
  @include responsive(h, 300, 80);
  background-color: yellow;
}

.myBox2 {
  display: block;
  @include r(w, 80, 300);
  @include r(h, 80, 300);
  background-color: rgb(155, 255, 128);
}

Simple Example

index.html

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width" />
    <title>Responsive</title>
    <link href="main.css" rel="stylesheet" type="text/css" />
  </head>
  <body>
    <p class="text textResponsive">Text Responsive</p>
    <p class="text">Text No Responsive</p>
    <div class="box boxResponsive">Box Responsive</div>
    <br />
    <div class="box">Box No Responsive</div>
  </body>
</html>

main.scss

@import "@jasbel/responsive/scss/responsive.scss";

html,
body {
  height: 100%;
  width: 100%;
}

.text {
  font-size: 30px;

  &Responsive {
    @include responsive(fz, 100, 30);
  }
}

.box {
  background-color: lightblue;
  width: 100px;
  height: 100px;
  font-size: 16px;

  &Responsive {
    @include responsive(fz, 50, 16);
    @include responsive(w, 500, 100);
    @include responsive(h, 500, 100);
  }
}

API

@include responsive(fz, 100, 30);
@include mq(fz, 60, 1440);
@include font-responsive(26, 20, 1440, 360);
@include font-responsive(26, 20);
@include responsive-mq(fz, 60, 39, 1440);
@include padding-responsive(...);
@include margin-responsive(...);

padding-left: responsive($pl-max, $pl-min, $w-max, $w-min);

Browser Support

Out of the box

Documentation

Template (In Process)

Clone a copy of the repo:

git clone https://github.com/jasbel/template-responsive.git