Skip to content
/ assets Public

๐Ÿš€ A collection of reusable frontend assets (JS, CSS) hosted with CDN support via jsDelivr. Perfect for quick plug-and-play integration in any project.

Notifications You must be signed in to change notification settings

njbm/assets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

9 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“ฆ njbm/assets โ€” Universal Frontend Assets CDN

A centralized repository of reusable frontend assets (JavaScript, CSS, images, fonts, icons, and plugins), published and distributed via jsDelivr CDN for easy use in any web project.


๐Ÿš€ Quick Start (CDN Usage)

Add any asset to your project in seconds:

JavaScript (versioned, recommended):

<script src="https://cdn.jsdelivr.net/gh/njbm/assets@1.1.1/js/form-submit-lock.min.js"></script>

CSS (versioned):

<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/njbm/assets@1.0.2/css/my-styles.min.css">

Latest (not recommended for production):

<script src="https://cdn.jsdelivr.net/gh/njbm/assets/js/form-submit-lock.min.js"></script>

๐Ÿงฎ Calculator Widget (Example)

Add a robust calculator to your site:

<div id="my-calculator"></div>
<script src="https://cdn.jsdelivr.net/gh/njbm/assets/calculator/robust-calculator.js"></script>

<script>
  RobustCalculator.init('#my-calculator', { theme: "dark", accent: "#e17055" });
</script>

Or the versioned:

<script src="https://cdn.jsdelivr.net/gh/njbm/assets@1.1.1/calculator/robust-calculator.js"></script>

๐Ÿ“‚ Repository Structure

assets/
  calculator/
    robust-calculator.js
    robust-calculator.min.js
    calculator-theme.css
    icons/
  js/
    form-submit-lock.js
    form-submit-lock.min.js
  css/
    my-styles.css
    my-styles.min.css
  icons/
    logo.svg
    github.svg
  plugins/
    <your-plugin-files>
README.md

โ„น๏ธ More Examples

Img CDN:

<img src="https://cdn.jsdelivr.net/gh/njbm/assets/img/logo.png" alt="Logo">

<img src="https://cdn.jsdelivr.net/gh/njbm/assets@1.1.1/img/logo.svg" alt="Logo">

Plugin CDN:

<script src="https://cdn.jsdelivr.net/gh/njbm/assets@1.0.2/plugins/your-plugin.min.js"></script>

๐Ÿ‘จโ€๐Ÿ’ป Maintainer

Jaber Masud
GitHub
Blog


Happy coding! Use, share, and contribute to make web development faster and easier for everyone.

About

๐Ÿš€ A collection of reusable frontend assets (JS, CSS) hosted with CDN support via jsDelivr. Perfect for quick plug-and-play integration in any project.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published