sjdonado / idonthavespotify

Effortlessly convert Spotify links to your preferred streaming service
https://idonthavespotify.donado.co
34 stars 2 forks source link

refactor: API v1.3 elysia htmx jsx #8

Closed sjdonado closed 9 months ago

sjdonado commented 9 months ago

Aiming to close #7 and to prepare the ground for #6. But first I have to address several architectural pitfalls:

  1. Testing with snapshots is not a good idea at all, and the current stack makes things more difficult for integration/unit testing especially due to server/client coupling. The proposed solution handles testing as high priority, bun is delightful to work with.
  2. The current folder structure is a bit overkill, v2 will try to keep it as minimal as possible. This app does not need multiple layers and division of responsibilities (hopefully we are not the next google).
  3. This interesting idea https://github.com/sjdonado/idonthavespotify/issues/6 will require to separate adapters (extracting data for representation) from parsers (extracting metadata for internal logic).

Open to suggestions :)