Skip to content
nuvaireaPublic

About

A moodboard generator for collecting visual inspiration.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

187 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Loom

Weave your inspiration.

Live demo JavaScript Storage: IndexedDB Design: Material 3 Expressive

Loom screenshot

Table of Contents

How It Works

Loom turns your collected images into a single visual board. Paste an image URL or upload files, drag to arrange them, and keep as many boards as you like. Uploads are downscaled to 2400px and saved as WebP.

Boards are saved in your browser with IndexedDB. Export a board as a PNG or send it with the Web Share API. Themes follow your system, and a wavy meter appears when storage reaches 80%.

Design

Loom's look is inspired by Material 3 Expressive, Google's design language: springy motion, shapes that morph, bold color, and a wavy progress indicator.

It's an independent project, not affiliated with or endorsed by Google.

Tech Stack

  • HTML, CSS, and JavaScript (ES modules)
  • Muuri for the draggable masonry grid
  • html2canvas for PNG export
  • idb for IndexedDB access
  • Google Sans Flex and Material Symbols from Google Fonts

All libraries load from a CDN, so an internet connection is required.

Usage

  1. Paste an image URL and press Add to weave, or use the upload button to pick files from your device.
  2. Drag images to rearrange them.
  3. Rename the board by clicking its title.
  4. Use the export button to save the board as a PNG, or the share button to send it to another app.
  5. Remove an image with its x button, or use the reset button to clear everything.

Project Structure

loom/
├── index.html
├── css/               load order matters, see index.html
│   ├── tokens.css     colors, dark mode
│   ├── base.css       reset, body, pill buttons
│   ├── dock.css       bottom bar and tools
│   ├── topbar.css     wordmark, board chip, count
│   ├── boards.css     board switcher panel and menu
│   ├── meter.css      wavy storage meter
│   ├── tiles.css      masonry, items, empty state
│   ├── utilities.css  .hidden, reduced motion
│   └── overlays.css   modals, toast, broken image overlay
├── docs/              screenshots
└── js/
    ├── main.js        app wiring, grid setup, restore flow
    ├── moodboard.js   creates and removes board items
    ├── storage.js     IndexedDB persistence, boards, and migrations
    ├── optimize.js    image downscaling and WebP encoding
    ├── export.js      PNG export and sharing
    ├── meter.js       wavy storage meter
    ├── validation.js  image URL validation
    ├── boards.js      board switcher, rename, duplicate, delete
    └── dom.js         shared DOM references

Limitations

  • Images added by URL must be publicly accessible, and the host must allow cross-origin requests
  • Uploads are limited to 20MB each
  • Boards live in your browser. Clearing site data erases them, and they do not sync across devices

About

A moodboard generator for collecting visual inspiration.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Contributors

Languages