Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
May 28, 2021 02:07 pm GMT

10 Trending projects on GitHub for web developers - 28th May 2021

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

1. Comlink

Comlink makes WebWorkers enjoyable. Comlink is a tiny library (1.1kB), that removes the mental barrier of thinking about postMessage and hides the fact that you are working with workers.

GitHub logo GoogleChromeLabs / comlink

Comlink makes WebWorkers enjoyable.

Comlink

Comlink makes WebWorkers enjoyable. Comlink is a tiny library (1.1kB), that removes the mental barrier of thinking about postMessage and hides the fact that you are working with workers.

At a more abstract level it is an RPC implementation for postMessage and ES6 Proxies.

$ npm install --save comlink

Comlink in action

Browsers support & bundle size

Chrome 56+Edge 15+Firefox 52+Opera 43+Safari 10.1+Samsung Internet 6.0+

Browsers without ES6 Proxy support can use the proxy-polyfill.

Size: ~2.5k, ~1.2k gzipd, ~1.1k brotlid

Introduction

On mobile phones, and especially on low-end mobile phones, it is important to keep the main thread as idle as possible so it can respond to user interactions quickly and provide a jank-free experience. The UI thread ought to be for UI work only. WebWorkers are a web API that allow you to run code in a separate thread. To communicate with another thread, WebWorkers offer the postMessage API. You can send JavaScript objects

2. Notion SDK for JavaScript

Official Notion JavaScript Client. A simple and easy to use client for the Notion API

GitHub logo makenotion / notion-sdk-js

Official Notion JavaScript Client

Notion SDK for JavaScript

A simple and easy to use client for the Notion API


Build statusnpm version

Installation

npm install @notionhq/client

Usage

Before getting started, create an integration and find the token.

Learn more about authorization.

Import and initialize a client using an integration token or an OAuth access token.

const { Client } = require("@notionhq/client")// Initializing a clientconst notion = new Client({  auth: process.env.NOTION_TOKEN,})

Make a request to any Notion API endpoint.

See the complete list of endpoints in the API reference.

;(async () => {  const listUsersResponse = await notion.users.list()})()

Each method returns a Promise which resolves the response.

console.log(listUsersResponse)// {//   results: [//     {//       object: 'user',//       id: 'd40e767c-d7af-4b18-a86d-55c61f1e39a4',

3. Capacitor

Build cross-platform Native Progressive Web Apps for iOS, Android, and the Web

GitHub logo ionic-team / capacitor

Build cross-platform Native Progressive Web Apps for iOS, Android, and the Web


Cross-platform apps with JavaScript and the Web

Capacitor is a cross-platform API and code execution layer that makes it easy to call Native SDKs from web code and to write custom native plugins that your app may need. Additionally, Capacitor provides first-class Progressive Web App support so you can write one app and deploy it to the app stores and the mobile web.

Capacitor comes with a Plugin API for building native plugins. Plugins can be written inside Capacitor apps or packaged into an npm dependency for community use. Plugin authors are encouraged to use Swift to develop plugins in iOS and Kotlin (or Java) in Android.

Capacitor 3.0 development has begun!

Interested in following Capacitor 3 development? We'd love your feedback! Use the Capacitor 3 planning issue as a starting point. Open a discussion if you have questions or suggestions.

We'd love to hear

4. daisyUI

Tailwind CSS Components. Adds component classes like btn, card and more to Tailwind CSS

GitHub logo saadeghi / daisyui

Tailwind Components

Tailwind CSS Components
Adds component classes like btn, card and more to Tailwind CSS

[ See all components ]

DaisyUI


Features

  • Tailwind CSS pluginDaisyUI is a Tailwind CSS plugin. Install it, add it to your tailwind.config.js file.
  • Component classesAdds component classes to Tailwind. Classes like btn, card, So you will end up with a cleaner HTML.
  • Semantic color namesAdds color names like primary, secondary, accent,.
  • CustomizableYou can customize the design of components with Tailwind utility classes and CSS variables.
  • ThemeableAdd multiple themes and customize colors. You can even set a theme for a specific section of your page.
  • RTL supportedEnable rtl config for right to left layouts.
  • Pure CSSNo script

5. Notistack

Highly customizable notification snackbars (toasts) that can be stacked on top of each other

GitHub logo iamhosseindhv / notistack

Highly customizable notification snackbars (toasts) that can be stacked on top of each other

notistack logo

Notistack is a notification library which makes it extremely easy to display notifications on your web apps. It is highly customizable and enables you to stack snackbars/toasts on top of one another
Visit documentation website for demos.

npm versionnpm downloadspackage license

Stacking behaviourDismiss oldest when reached maxSnack (3 here)

Table of Contents

Getting Started

Use your preferred package manager:

npm install notistackyarn add notistack

How to use

1: Wrap your app inside a SnackbarProvider component: (see docs for a full list of available props)
Note: If you're using material-ui ThemeProvider, make sure SnackbarProvider is a child of it.

import { SnackbarProvider } from 'notistack';<SnackbarProvider maxSnack={3}>    <App /></SnackbarProvider>

2: Export any component that needs to send notification using withSnackbar. By doing this, you'll have access to

6. Dragula

Drag and drop so simple it hurts

GitHub logo bevacqua / dragula

Drag and drop so simple it hurts

logo.png

Travis CIDependenciesDev DependenciesPatreon

Drag and drop so simple it hurts

Browser support includes every sane browser and IE7+. (Granted you polyfill the functional Array methods in ES5)

Framework support includes vanilla JavaScript, Angular, and React.

Demo

demo.png

Try out the demo!

Inspiration

Have you ever wanted a drag and drop library that just works? That doesn't just depend on bloated frameworks, that has great support? That actually understands where to place the elements when they are dropped? That doesn't need you to do a zillion things to get it to work? Well, so did I!

Features

  • Super easy to set up
  • No bloated dependencies
  • Figures out sort order on its own
  • A shadow where the item would be dropped offers visual feedback
  • Touch events!
  • Seamlessly handles clicks without any configuration

Install

You can




7. SimpleBar

SimpleBar does only one thing: replace the browser's default scrollbar with a custom CSS-styled one without losing performances.

GitHub logo Grsmto / simplebar

Custom scrollbars vanilla javascript library with native scroll, done simple, lightweight, easy to use and cross-browser.

SimpleBar

NPM version NPM downloads Build Status



SimpleBar does only one thing: replace the browser's default scrollbar with a custom CSS-styled one without losing performances
Unlike some popular plugins, SimpleBar doesn't mimic scroll with Javascript, causing janks and strange scrolling behaviours
You keep the awesomeness of native scrolling...with a custom scrollbar

SimpleBar does NOT implement a custom scroll behaviour. It keeps the native overflow: auto scroll and only replace the scrollbar visual appearance.

Design it as you want

SimpleBar uses pure CSS to style the scrollbar. You can easily customize it as you want! Or even have multiple style on the same page...or just keep the default style ("Mac OS" scrollbar style).

Lightweight and performant

Only 6kb minified. SimpleBar doesn't use Javascript to handle scrolling. You keep the performances/behaviours of the native scroll.

Supported everywhere

SimpleBar has been tested on the following browsers: Chrome, Firefox, Safari, Edge, IE11.

Getting started

The easiest way to use SimpleBar

8. govuk-react

An implementation of the GOV.UK Design System in React using CSSinJS

GitHub logo govuk-react / govuk-react

An implementation of the GOV.UK Design System in React using CSSinJS

govuk-react

An implementation of the GOV.UK Design System in React using CSSinJS using Object notation (with styled-components).

codecovJoin the community on Spectrum

We aim to track the following projects (in priority order) as to which components to implement and how they should look/behave. Where possible we are using the existing CSS as a guide. When we need to modify to suit custom markup, we aim to provide a comment in our code as to why this was done.

Usage

npm install govuk-react styled-components --save
import { Button } from 'govuk-react'const MyComponent = ({title}) => (<div>  <h1>{title}</h1>  <Button /><

9. htmx

htmx allows you to access AJAX, CSS Transitions, WebSockets and Server Sent Events directly in HTML, using attributes, so you can build modern user interfaces with the simplicity and power of hypertext

GitHub logo bigskysoftware / htmx

</> htmx - high power tools for HTML

</> htmx

high power tools for HTML

DiscordNetlifyBundlephobiaBundlephobia

introduction

htmx allows you to access AJAX, CSS TransitionsWebSockets and Server Sent Eventsdirectly in HTML, using attributes, so you can buildmodern user interfaces with the simplicity andpower of hypertext

htmx is small (~10k min.gz'd)dependency-freeextendable &IE11 compatible

motivation

  • Why should only <a> and <form> be able to make HTTP requests?
  • Why should only click & submit events trigger them?
  • Why should only GET & POST be available?
  • Why should you only be able to replace the entire screen?

By removing these arbitrary constraints htmx completes HTML as ahypertext

quick start

  <!-- Load from unpkg -->  <script src="https://unpkg.com/[email protected]" ></script>  <!-- have a button POST a click via AJAX -->  <button hx-post="/clicked" hx-swap="outerHTML">    Click Me  </button>

The

10. Vuestic UI

Free and Open Source UI Library for Vue 3

GitHub logo epicmaxco / vuestic-ui

Free and Open Source UI Library for Vue 3

Vuestic UI Logo
Vue.js 3.0 UI Library
Developed by Epicmax. Designed by Vasili Savitski

CI badge License Version

Documentation | Discord

Vuestic UI is forever free and open to contributions. See ourissuescontributing guide and join discussions on ourDiscord to help us improve Vuestic UI experience.

Why use Vuestic UI?

  • Vue.js 3.0 compatible
  • MIT license
  • Feature-rich: more than 52 customizable components
  • Two built-in color scheme presets
  • Powerful configurations
    • Local - configure components in-depth
    • Global - configure framework overall
  • Cross-browser and responsive
  • i18n-ready

Installation

First, make sure you have all prerequisites installed:

After checking the prerequisites, install Vuestic UI via npm/yarn:

npm install vuestic-ui//oryarn add vuestic-ui

Quick start

Make sure you're imported both styles and plugin into your entry file:

//main.jsimport { createApp } from 'vue'import App from './App.vue'import { VuesticPlugin } from 'vuestic-ui'

Stargazing

Top risers over last 7 days

  1. Appwrite +1,890 stars
  2. Coding Interview University +1,234 stars
  3. code-server +1,103 stars
  4. Fig +926 stars
  5. Free Programming Books +908 stars

Top growth(%) over last 7 days

  1. useStateMachine +164%
  2. Fig +69%
  3. Appwrite +27%
  4. renature +7%
  5. Chakra Templates +7%

Top risers over last 30 days

  1. Public APIs +5,557 stars
  2. Coding Interview University +5,500 stars
  3. Free Programming Books +3,678 stars
  4. WinBox.js +3,668 stars
  5. Developer Roadmap +3,609 stars

Top growth(%) over last 30 days

  1. WinBox.js +653%
  2. github-elements +160%
  3. Fig +159%
  4. Supabase Realtime +42%
  5. Supabase +36%

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.


Original Link: https://dev.to/iainfreestone/10-trending-projects-on-github-for-web-developers-28th-may-2021-2411

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To