0.2.0 • Published 14 days ago

localboast v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
14 days ago

LocalBoast - Making Web Development Harder for Myself.

BannerImage

npm Ko-Fi Support me on Patreon YouTube Channel Subscribers Twitch Channel

What is it?

LocalBoast is a React library developed with a view to creating spectacle with as little effort as possible. If something doesn't sound very practical but would probably look cool, it belongs here.

The intention is to remain with zero dependencies (other than some borrowed code here and there) so a lot of the library consists of common functions from other repos (function debouncing, resize detection etc.) but with an API that's custom-built to work with the flashier parts of this library. So yes, some wheels are being reinvented in the name of creating a pointlessly flashy car but, in fairness, most wheels are boring.

Install the entire module as a dependency from npm as normal:

npm i localboast
# or
yarn add localboast

Note: As this library is intended to be all-inclusive, it has no dependencies other than peer-dependencies of react and react-dom. This means it should have minimal compatibility issues with any app.

Contents

  • Components

    	- #### [AnimatedText](src/components/AnimatedText)
    	- #### [Code](src/components/Code)
    	- #### [ErrorBoundary](src/components/ErrorBoundary)
    	- #### [Haptic](src/components/Haptic)
    	- #### [Truncate](src/components/Truncate)
  • Hooks

    	- #### [useAnimatedText](src/hooks/useAnimatedText)
    	- #### [useAnimationFrames](src/hooks/useAnimationFrames)
    	- #### [useDelayedValue](src/hooks/useDelayedValue)
    	- #### [useHaptic](src/hooks/useHaptic)
    	- #### [useImageLoader](src/hooks/useImageLoader)
    	- #### [useLocalStorage](src/hooks/useLocalStorage)
    	- #### [useTruncate](src/hooks/useTruncate)
    	- #### [useTwitchChat](src/hooks/useTwitchChat)
  • Utils

    	- #### [cx](src/utils/cx)

To Use

This library includes a range of Components, Hooks and Utils. These are all able to be used independently and are intended to provide quick access to powerful functionality.

All public elements of this library are exported from the root index, allowing for simple imports like:

import { Truncate, useMove, debounce } from "localboast"

Each of the core folders also provides an index of the exported contents, potentially saving on some unneeded imports:

import { Truncate } from "localboast/components"
import { useMove } from "localboast/hooks"
import { debounce } from "localboast/utils"

Each module can also be imported directly from their own folder, allowing for largest optimization:

import Truncate from "localboast/components/Truncate"
import useMove from "localboast/hooks/useMove"
import debounce from "localboast/utils/debounce"

Docs/Example

This library is developed and documented through storybook. A static build of this storybook app can be found at https://LocalBoast.com/docs (Note: that entire website is built as a showcase of sorts for the LocalBoast library, but the /docs route is a direct embed of the full storybook app).

While I intend on keeping the above public build up to date with the functionality of this library, I cannot guarantee that it'll always be up to date. If you need docs for the latest and greatest, you can run it locally by cloning this repository and running yarn run storybook

Live Development

In an attempt to be somewhat unique, the development of this project is largely happening live on stream over on Twitch or on YouTube Live. A record of all past live streams and other video documentation can also be found at the above YouTube channel.

Donations

I'm working on this instead of having a job that pays me. So for the time being, I'm going to be funded through generosity alone. If you're feeling generous, here are some links:

License

MIT © ConorKelleher

0.2.0

14 days ago

0.0.10

2 months ago

0.0.12

2 months ago

0.0.13

2 months ago

0.0.14

2 months ago

0.1.0

2 months ago

0.0.9

2 months ago

0.0.8

2 months ago

0.0.7

3 months ago

0.0.6

3 months ago

0.0.5

4 months ago

0.0.4

4 months ago

0.0.3

5 months ago

0.0.2

6 months ago

0.0.1

6 months ago

0.0.0

6 months ago