Power in tiny libraries
Maksim

Maksim @pretaporter

About: Creator and maintainer of https://github.com/ibitcy/eo-locale | Contributor of https://github.com/renovatebot/renovate | Son, husband and cat owner.

Location:
Amsterdam, Netherlands
Joined:
Mar 19, 2019

Power in tiny libraries

Publish Date: Jan 7 '20
68 23

Hello there!

Weight of your client side bundle is very important for best user experience. Users do not like to wait. For this purpose I am interesting to find tiny analogs of most popular libraries. I know next ones:

Do you know something else?

Comments 23 total

  • Pacharapol Withayasakpunt
    Pacharapol WithayasakpuntJan 7, 2020

    jquery => cash / cash-dom

    cash-dom also is written in TypeScript.

    bootstrap => bulma

  • Pacharapol Withayasakpunt
    Pacharapol WithayasakpuntJan 7, 2020

    Also about dayjs, is it one of the smallest datetime library around?

    Anyways, if I want no library, nothing works better than

    const d = new Date()
    d.setTime(+d + MILLISECONDS)
    
  • Ilya Lesik
    Ilya LesikJan 7, 2020

    lodash -> lodash-es
    lodash-es -> clone-deep if only cloning needed

  • Juan Carlos
    Juan CarlosJan 7, 2020

    Bootstrap ➡️ Spectre / Bulma
    Webpack ➡️ Parcel
    Jquery ➡️ Nothing
    TypeScript ➡️ Nim

  • АнонимJan 7, 2020

    [deleted]

    • Maksim
      MaksimJan 7, 2020

      Nice try) but no)))

  • Ravavyr
    RavavyrJan 7, 2020

    Always felt the big libs/frameworks were overkill for most sites.
    For building small sites, I created github.com/Ravavyr/taino-js [Check the README for the 4 step setup]
    It's open for anyone to play with, i'm in the process of creating sample sites that are actually fully built sites to use as tutorials since that's something the frameworks have been terrible at doing too. Also SEO functionality and routing are built in. Zero NPM installs. You need live-server or whatever you use to run a SPA and point it to index.html. Try it it out and if you do i'd love some feedback :)
    It's used on taino.netlify.com [though netlify is apparently down right now]

  • Mr F.
    Mr F.Jan 8, 2020

    Thanks Maxim, that's a nice bunch of suggestions!

    This is a bit out of date, but some decent little nuggets in there :

    microjs

    • Maksim
      MaksimJan 8, 2020

      Yep, very cool project. Unfortunately last merge requests stuck.

  • Juha Lindstedt
    Juha LindstedtJan 8, 2020

    Also check out redom.js.org 😎

  • Jovi De Croock
    Jovi De CroockJan 8, 2020

    For forms Hooked-form
    Also for urql there's now an implementation that just integrates with Preact, Preact-urql

  • Koa
    KoaJan 8, 2020

    I completely agree with this. The web needs to get lighter and easier to navigate especially as new countries begin to get online!

  • Nuno Ferreira
    Nuno FerreiraJan 8, 2020

    lodash -> micro-dash
    jQuery -> cash
    styled-components -> goober

    React -> Svelte 😛

    • Cristian Bote
      Cristian BoteJan 9, 2020

      Hey Nuno, thanks for the shout-out! 👍🙂

  • Giorgos Kontopoulos 👀
    Giorgos Kontopoulos 👀Jan 22, 2020

    swiper.js 128k minified >

    Bootstrap > plain CSS/CSS3 😛

Add comment