Commit graph

75 commits

Author SHA1 Message Date
uimaxbai
e9131c7e9a deps: bump am-lyrics again again 2026-04-08 13:49:58 +01:00
uimaxbai
080b268e29 deps: bump am-lyrics again 2026-04-07 21:41:47 +01:00
binimum
fdfe1a54d0
deps: update @uimaxbai/am-lyrics to version 1.1.5 2026-04-07 21:33:13 +01:00
binimum
f0748421d3
Merge branch 'main' of https://github.com/monochrome-music/monochrome 2026-04-05 18:50:33 +00:00
binimum
bc004d3dc4
fix: refine image size logic and update build configuration for better performance 2026-04-05 18:49:23 +00:00
edideaur
2830d12bda
fix binislop 2026-04-05 18:41:25 +00:00
binimum
995906f572
refactor: optimize image loading and enhance performance
- Removed unnecessary preconnect link to jsDelivr in index.html.
- Added lazy loading to contribs in app.js for improved performance.
- Implemented dynamic loading of am-lyrics and shaka based on image loading status to reduce lcp
- Introduced waitForImagesLoading function in player.js to ensure all images are loaded before initializing the player
- Enhanced image loading attributes in ui.js to include fetchpriority based on loading strategy.
- Updated package.json to include vite-plugin-purgecss for CSS optimization
- Configured Vite to use purgecss and enabled tree-shaking in vite.config.ts to reduce bundle size
2026-04-05 17:21:10 +00:00
binimum
8a377d5332
chore(player): log preload load errors 2026-04-04 20:36:41 +00:00
Daniel
3acbcd61f2 Adjust linting rules and add vs code extension recommendations 2026-04-04 01:37:47 +03:00
Daniel
4a9493fb72 feat(dev): add vite-bundle-visualizer
This will run on build, and automatically generate a bundle-stats.html file in the assets folder containing details about package sizes
2026-04-03 20:39:15 +03:00
Daniel
51e5e1973f fix: update taglib-ts 2026-04-03 14:31:19 +03:00
Daniel
b94a832d2e feat(vitest): add vitest config and tests
Add tests for HiFi, ffmpeg, and download api functions.
2026-04-01 12:46:30 -05:00
Samidy
8ed52d8843 Bye Bye Desktop App 2026-03-29 13:09:32 +03:00
Daniel
2440939f4b refactor(hifi): update HiFi.ts to add trackManifests route and refactor 2026-03-23 13:42:03 -05:00
binimum
98cc3b9391
Merge branch 'main' of https://github.com/monochrome-music/monochrome 2026-03-22 20:11:37 +00:00
binimum
d783642401
feat: add Atmos support, use new API endpoint, streamline API caching 2026-03-22 20:08:30 +00:00
edideaur
b6e8068652 capacitor app 2026-03-22 20:59:00 +02:00
Daniel
4e2a595504 refactor(hls/dash): externalize hls.js and dashjs to reduce initial bundle size 2026-03-19 15:34:51 -05:00
Daniel
e2a09b9b32 refactor: externalize svg images and add new vite plugin
The plugin runs all imported SVG files through svgo.

For index.html, you can use the following syntax:
```html
<use svg="file.svg" size="24" />
```

For scripts, use the `?svg` import query
```javascript
import SVG_FILE from './file.svg?svg&size=24
```

Note: size is shorthand for specifying both width and height individually.  You can also set any property of the base SVG element.

You can also use the `?svg&icon` query to return a function that allows dynamically resizing the SVG string.
2026-03-19 15:28:33 -05:00
Daniel
895d5dd20f feat(metadata): replace taglib-wasm with @dantheman827/taglib-ts
- feat(taglib): updated audio buffer handling in metadata.js to use Uint8Array.
- feat(taglib): refactored addMetadataToAudio to support return type as Blob or Uint8Array

- feat(taglib): add timeout functionality to metadata functions
  - Introduced `withTimeout` utility function to handle operation timeouts.
  - Updated `addMetadataWithTagLib` to use `withTimeout` for promise resolution.
  - Updated `getMetadataWithTagLib` to use `withTimeout` for promise resolution.
  - Added default timeout parameter to both metadata functions.

- feat(taglib): improve metadata handling with ChunkedByteVectorStream
  - Enhanced metadata handling in taglib.ts and taglib.worker.ts to utilize ChunkedByteVectorStream.

- fix(taglib): handle metadata addition failure gracefully
  - Updated `addMetadataWithTagLib` to catch errors and return original audio data if metadata addition fails.

fix(downloads): return original blob if metadata addition fails
 - Wrap addMetadataToAudio call in try-catch to handle errors.

feat(taglib): add direct calling of taglib methods
  - Introduced `direct` parameter to `addMetadataWithTagLib` and `getMetadataWithTagLib` functions for direct processing in the current thread.
  - Exported taglib worker functions.
2026-03-19 15:14:52 -05:00
Samidy
48fc94895a split site building & desktop building 2026-03-18 04:39:17 +03:00
binimum
33d3c6c51a
fix(lyrics): update track title retrieval to use getTrackTitle function
chore(deps): update @uimaxbai/am-lyrics to version 1.1.4 in package.json and package-lock.json
2026-03-13 19:57:24 +00:00
Samidy
8674aba673 update packages and shit 2026-03-13 02:19:14 +03:00
Daniel
a36ae22f4f
feat: add blob-url support and integrate blob asset plugin for Vite 2026-03-12 22:34:37 +00:00
edideaur
a776e24aee
Merge pull request #303 from DanTheMan827/copilot/extract-duplicated-code-to-ts
Extract shared download utilities and abstract bulk download handlers + new folder picker support
2026-03-12 21:18:47 +02:00
Daniel
9226515bcf
feat: update client-zip to version 2.5.0 and adjust import in bulk-download-writer.ts 2026-03-12 14:46:52 +00:00
Samidy
df7ba22fa1 didnt see these 2026-03-12 10:12:06 +03:00
Samidy
cb7141341a use bun for everything 2026-03-12 09:31:02 +03:00
Samidy
46d09af6d7 outdated github links 2026-03-12 09:27:58 +03:00
Samidy
dfa6e40385 we dont even have tests 2026-03-12 09:27:27 +03:00
Samidy
b7c57a06fe outdated 2026-03-12 09:27:13 +03:00
dependabot[bot]
5dca0421c0
chore(deps): bump tar and npm
Removes [tar](https://github.com/isaacs/node-tar). It's no longer used after updating ancestor dependency [npm](https://github.com/npm/cli). These dependencies need to be updated together.


Removes `tar`

Updates `npm` from 11.11.0 to 11.11.1
- [Release notes](https://github.com/npm/cli/releases)
- [Changelog](https://github.com/npm/cli/blob/latest/CHANGELOG.md)
- [Commits](https://github.com/npm/cli/compare/v11.11.0...v11.11.1)

---
updated-dependencies:
- dependency-name: tar
  dependency-version: 
  dependency-type: indirect
- dependency-name: npm
  dependency-version: 11.11.1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-12 06:18:39 +00:00
Samidy
51b88cc5e8 cdn to package for am-lyrics 2026-03-12 09:00:27 +03:00
Samidy
7fc685d8dc eh js update the vers to what we have locally 2026-03-11 05:06:22 +03:00
Daniel
de472c5891
Merge remote-tracking branch 'upstream' into taglib-wasm 2026-03-09 02:43:12 +00:00
Daniel
efa3521aff
feat(taglib): refactor and improve metadata handling, worker integration, and code quality
- Refactor metadata handling to use fetchTagLib and addMetadataWithTagLib for improved loading and worker-based processing
- Update prefetchMetadataObjects and addMetadataToAudio for simplified and more robust metadata extraction
- Add taglib.worker.ts for audio metadata processing in a worker
- Implement getMetadataWithTagLib function
- Auto-fix linting issues and remove unnecessary debugger statements
2026-03-09 00:35:20 +00:00
Samidy
83c705a60a Merge branch 'main' of github.com:monochrome-music/monochrome 2026-03-09 03:03:59 +03:00
Julien Maille
10f4d6952c dev: add local upload handler for development environment 2026-03-08 19:51:16 +01:00
Julien Maille
443ef4b6e1 fix: resolve security vulnerabilities in dependencies 2026-03-08 18:38:18 +01:00
Samidy
e3f781d588 feat(covers): animated covers 2026-03-08 05:27:20 +03:00
Daniel
0f20106076 feat(downloads): prefetch data while downloading to improve performance and update taglib-wasm 2026-03-08 01:55:42 +00:00
Daniel
44a7c3b61c fix(downloads): cache ffmpeg core js and wasm
This creates a blob url outside of the worker for for the core .js and .wasm files so they aren't downloaded on each run.
2026-03-08 01:54:29 +00:00
Daniel
50a5b79d70 feat(downloads): use taglib-wasm to set tags
taglib supports multiple media formats beyond what was previously supported, this would enable transcoding to other formats without needing to write additional metadata libraries.
2026-03-08 01:54:29 +00:00
Samidy
6067c893a8 die 2026-03-07 08:07:17 +03:00
edideaur
6db0923d20 update lockfiles 2026-03-06 20:09:44 +00:00
edideaur
8f945c8fd7 try wrangler.toml again 2026-03-06 09:59:14 +00:00
edideaur
9e5332d953 remove wrangler 2026-03-06 09:35:26 +00:00
edideaur
720cad4bbb upload function using catbox cause imgur just got taken down LMAO 2026-03-06 09:26:02 +00:00
edideaur
55854020b6
Merge pull request #275 from boidushya/main
feat: add kawarp as visualizer
2026-03-06 09:58:46 +02:00
Samidy
ad7d088e5c refactor(auth): migrate authentication from Firebase to (self-hosted) Appwrite 2026-03-06 02:14:43 +03:00