DEV Community

loading...

πŸš€10 Trending projects on GitHub for web developers - 25th June 2021

Iain Freestone
A Web developer from Hampshire in the south of England.
Originally published at iainfreestone.com ・3 min read

Trending Projects is available as a weekly newsletter please sign up at www.iainfreestone.com to ensure you never miss an issue.

1. TypeStat

Converts JavaScript to TypeScript and TypeScript to better TypeScript.

GitHub logo JoshuaKGoldberg / TypeStat

Converts JavaScript to TypeScript and TypeScript to better TypeScript.

TypeStat

Code Style: Prettier TypeScript: Strict Circle CI Join the chat at https://gitter.im/TypeStat/community NPM version

Converts JavaScript to TypeScript and TypeScript to better TypeScript.

Usage

TypeStat is a CLI utility that modifies TypeScript types in existing code The built-in mutators will only ever add or remove types and will never change your runtime behavior TypeStat can:

  • ✨ Convert JavaScript files to TypeScript in a single bound!
  • ✨ Add TypeScript types on files freshly converted from JavaScript to TypeScript!
  • ✨ Infer types to fix --noImplicitAny and --noImplicitThis violations!
  • ✨ Annotate missing nulls and undefineds to get you started with --strictNullChecks!

⚑ To start, the typestat command will launch an interactive guide to setting up a configuration file. ⚑

npx typestat
Enter fullscreen mode Exit fullscreen mode
πŸ‘‹ Welcome to TypeStat! πŸ‘‹
This will create a new typestat.json for you.
...
Enter fullscreen mode Exit fullscreen mode

After, use typestat --config typestat.json to convert your files.

Configuration

To get a deeper understanding of TypeStat, read the following docs pages in order:

  1. Usage.md for an…

2. Package Phobia

Find the cost of adding a new dependency to your project. Package Phobia reports the size of an npm package before you install it.

GitHub logo styfle / packagephobia

βš–οΈ Find the cost of adding a new dependency to your project

Package Phobia

tests uptime lgtm style: prettier

  • βš–οΈ Find the cost of adding a new dependency to your project
  • πŸ•— Save yourself time and disk space with this web app
  • πŸ“ˆ Detect javascript bloat over time with a chart
  • πŸ›‘οΈ Get a badge/shield for your README
  • πŸ“‘ Fetch size from json API to integrate into any tool

...as seen on npm weekly and ponyfoo weekly and habr and rwpod and wolf report and the changelog and all over twitter

What is the purpose?

Package Phobia reports the size of an npm package before you install it.

This is useful for inspecting potential dependencies or devDependencies without using up precious disk space or waiting minutes for npm install. Ain't nobody got time for dat.

Results are saved so the first person might wait a bit to view package size, but everyone else gets to see the results instantly!

Demo

A good use case might be…


3. DenoDB

MySQL, SQLite, MariaDB, PostgreSQL and MongoDB ORM for Deno. Simple, typed API

GitHub logo eveningkid / denodb

MySQL, SQLite, MariaDB, PostgreSQL and MongoDB ORM for Deno

DenoDB

  • πŸ—£Supports PostgreSQL, MySQL, MariaDB, SQLite and MongoDB
  • πŸ”₯Simple, typed API
  • πŸ¦•Deno-ready
  • Read the documentation
import { DataTypes, Database, Model, PostgresConnector } from 'https://deno.land/x/denodb/mod.ts';
const connection = new PostgresConnector({
  host: '...',
  username: 'user',
  password: 'password',
  database: 'airlines',
});

const db = new Database(connection);

class Flight extends Model {
  static table = 'flights';
  static timestamps = true;

  static fields = {
    id: { primaryKey: true, autoIncrement: true },
    departure: DataTypes.STRING,
    destination: DataTypes.STRING,
    flightDuration: DataTypes.FLOAT,
  };

  static defaults = {
    flightDuration: 2.5,
  };
}

db.link([Flight]);

await db.sync({ drop: true });

await
…
Enter fullscreen mode Exit fullscreen mode

4. Size Limit

Calculate the real cost to run your JS app or lib to keep good performance. Show error in pull request if the cost exceeds the limit.

GitHub logo ai / size-limit

Calculate the real cost to run your JS app or lib to keep good performance. Show error in pull request if the cost exceeds the limit.

Size Limit Cult Of Martians

Size Limit logo by Anton Lovchikov

Size Limit is a performance budget tool for JavaScript. It checks every commit on CI, calculatesΒ the real cost ofΒ your JS for end-users and throws an error if the cost exceeds theΒ limit.

  • ES modules and tree-shaking support.
  • Add Size Limit to Travis CI, Circle CI, GitHub Actions or another CI system to know if a pull request adds aΒ massiveΒ dependency.
  • Modular to fit different use cases: big JS applications that use their own bundler orΒ smallΒ npmΒ librariesΒ withΒ many files.
  • Can calculate the time it would take a browser to download and execute your JS. TimeΒ isΒ aΒ muchΒ moreΒ accurate andΒ understandable metric compared to the size in bytes.
  • Calculations include all dependencies and polyfills used in your JS.

Size Limit CLI

With GitHub action Size Limit will post bundle size changes as a comment in pull request discussion.

Size Limit comment in pull request about bundle size changes

With --why, Size Limit…





5. Holmes

Fast and easy searching inside a page. Holmes filters a list of elements based on the value of a input in just ~2KB.

GitHub logo Haroenv / holmes

Fast and easy searching inside a page

Holmes.js

Fast and easy searching inside a page.

Build Status Coverage Status npm version Bower version CDNJS version Join the chat at https://gitter.im/Haroenv/holmes gzipped size

Holmes filters a list of elements based on the value of a input in just ~2KB.

Installation

You can install Holmes with either npm or bower under the package name holmes.js. For npm that looks like this:

$ yarn add holmes.js # or via npm
Enter fullscreen mode Exit fullscreen mode

After which you can add it in your page with i.e. webpack, rollup, browserify or loading the module in a different script tag.

You have to make sure that you have a css rule for the class .hidden that hides elements however you want. One option is to have this:

.hidden {
  display: none
}
Enter fullscreen mode Exit fullscreen mode

but this could be any css you want.

Usage

demo

When should I use it?

You should use Holmes when

  • you have a limited amount of items
  • you don't need typo-tolerance
  • you only want to add a really small library
  • …

6. react-headroom

Hide your header until you need it.

GitHub logo KyleAMathews / react-headroom

Hide your header until you need it

react-headroom

Hide your header until you need it.

Demo

http://kyleamathews.github.io/react-headroom

Install

npm install react-headroom

Usage

A simple example, see the docs site for more examples and documentation.

<Headroom>
  <h1>You can put anything you'd like inside the Headroom Component</h1>
</Headroom>
Enter fullscreen mode Exit fullscreen mode




7. React Interview Questions & Answers

List of top 500 ReactJS Interview Questions & Answers.

GitHub logo sudheerj / reactjs-interview-questions

List of top 500 ReactJS Interview Questions & Answers....Coding exercise questions are coming soon!!

React Interview Questions & Answers

Click ⭐if you like the project. Pull Request are highly appreciated. Follow me @SudheerJonna for technical updates.



Learn to code and get hired with Zero To Mastery:
  1. This React course is good if you’re struggling to learn React beyond the basics
  2. This coding interview bootcamp is helpful if you’re serious about getting hired as a developer

Note: This repository is specific to ReactJS. Please check Javascript Interview questions for core javascript questions.

Downloading PDF/Epub formats

You can download the PDF and Epub version of this repository from the latest run on the actions tab.

Table of Contents

…

8. Intro.js

Lightweight, user-friendly onboarding tour library

GitHub logo usablica / intro.js

Lightweight, user-friendly onboarding tour library

Intro.js

Build Status npm

Lightweight, user-friendly onboarding tour library

Where to get

You can obtain your local copy of Intro.js from:

1) This github repository, using git clone https://github.com/usablica/intro.js.git

2) Using bower bower install intro.js --save

3) Using npm npm install intro.js --save

4) Download it from CDN (1, 2)

How to use

Intro.js can be added to your site in three simple steps:

1) Include intro.js and introjs.css (or the minified version for production) in your page. Use introjs-rtl.min.css for Right-to-Left language support.

CDN hosted files are available at jsDelivr (click Show More) & cdnjs.

2) Add data-intro and data-step to your HTML elements. To add hints you should use data-hint attribute.

For example:

<a href='http://google.com/' data-intro='Hello step one!'></a>
Enter fullscreen mode Exit fullscreen mode

See all attributes here.

3) Call this JavaScript function:

introJs().start();
Enter fullscreen mode Exit fullscreen mode

…


9. clipboard.js

Modern copy to clipboard. No Flash. Just 3kb gzipped.

GitHub logo zenorocha / clipboard.js

βœ‚οΈ Modern copy to clipboard. No Flash. Just 3kb gzipped πŸ“‹

clipboard.js

Build Status Killing Flash

Modern copy to clipboard. No Flash. Just 3kb gzipped.

Demo

Why

Copying text to the clipboard shouldn't be hard. It shouldn't require dozens of steps to configure or hundreds of KBs to load. But most of all, it shouldn't depend on Flash or any bloated framework.

That's why clipboard.js exists.

Install

You can get it on npm.

npm install clipboard --save

Or if you're not into package management, just download a ZIP file.

Setup

First, include the script located on the dist folder or load it from a third-party CDN provider.

<script src="dist/clipboard.min.js"></script>
Enter fullscreen mode Exit fullscreen mode

Now, you need to instantiate it by passing a DOM selector, HTML element, or list of HTML elements.

new ClipboardJS('.btn');
Enter fullscreen mode Exit fullscreen mode

Internally, we need to fetch all elements that matches with your selector and attach event listeners for each one. But guess…


10. next-sitemap

Sitemap generator for next.js. Generate sitemap(s) and robots.txt for all static/pre-rendered/dynamic/server-side pages.

GitHub logo iamvishnusankar / next-sitemap

Sitemap generator for next.js. Generate sitemap(s) and robots.txt for all static/pre-rendered/dynamic/server-side pages.

next-sitemap

Sitemap generator for next.js. Generate sitemap(s) and robots.txt for all static/pre-rendered/dynamic/server-side pages.

Table of contents

Getting started

Installation

yarn add next-sitemap -D
Enter fullscreen mode Exit fullscreen mode

Create config file

next-sitemap requires a basic config file (next-sitemap.js) under your project root

βœ… next-sitemap now loads environment variables from .env files by default.

module.exports = {
  siteUrl: process.env.SITE_URL || 'https://example.com',
  generateRobotsTxt: true, // (optional)
  // ...other options
}
Enter fullscreen mode Exit fullscreen mode

Building sitemaps

Add next-sitemap as your postbuild script

{
  "build": "next build"
  "postbuild": "next-sitemap"
}
Enter fullscreen mode Exit fullscreen mode

Having next-sitemap command & next-sitemap.js file may result in file opening instead of building sitemaps in windows machines. Please read more about the issue…


Stargazing πŸ“ˆ

Top risers over last 7 days

  1. Slides +1,056 stars
  2. JavaScript Algorithms +908 stars
  3. Algorithm Visualizer +884 stars
  4. Coding Interview University +864 stars
  5. Tailwindcss +791 stars

Top growth(%) over last 7 days

  1. Slides +41%
  2. Nano Stores +34%
  3. React Virtual Cool +27%
  4. Million +17%
  5. Flicking +17%

Top risers over last 30 days

  1. Coding Interview University +11,825 stars
  2. Public APIs +7,051 stars
  3. Free Programming Books +5,253 stars
  4. Slidev +4,050 stars
  5. JavaScript Algorithms +3,029 stars

Top growth(%) over last 30 days

  1. Fig +74%
  2. Vuestic UI +59%
  3. Plaiceholder +50%
  4. Flicking +41%
  5. Slidev +39%

Trending Projects is available as a weekly newsletter please sign up at www.iainfreestone.com to ensure you never miss an issue.

If you enjoyed this article you can follow me on Twitter where I regularly post bite size tips relating to HTML, CSS and JavaScript.

Discussion (6)

Collapse
imjituchauhan profile image
Jitu Chauhan

Hi,

Thank you for sharing these trending projects. One of my projects on the Admin dashboard based on Bootstrap 5. Its now not trending, it is just initiated.
Demo & Gihub Also.
github.com/codescandy/Dash-UI

Collapse
akshith6212 profile image
Akshith

Hey jitu I saw your dashboard and I must admit it's pretty clean great work bro🀘.

Collapse
tomasforsman profile image
Tomas Forsman

How come only js related projects are trending on github? Can't remember seeing a .Net repository in these lists.

Collapse
iainfreestone profile image
Iain Freestone Author • Edited

Hi Tomas,

My list is always focused more towards JavaScript, HTML, CSS and related projects, as these are the technologies that I work in.

I only pick repositories which I have an understanding of as I would not want to add anything to the list that I do not have an understanding of find interesting in someway.

I should probably add this to the introduction of the weekly list.

Thank you

Collapse
akshith6212 profile image
Akshith • Edited

The slidev repo is awesome for slides🀩.

Thanks for the info.

Collapse
3ankur profile image
Ankur V

Very nice.
Thanks for sharing