Our open-source color matching technology to be used to give you the recommendations by comparing the posts you liked with other posts by matching the % of color similarity.
- Install our bun (fast runtime with built-in typescript support) i prefer using.
- Install packages i prefer pnpm so
pnpm install
. - Then create subfolders in assets/ and upload atleast 2 images.
- Run either by
pnpm run dev
orbun run .
. - For support, questions or else join our Discord.
- node-vibrant - used to extract colors from images in the getColors function.
- colorjs.io - used for the math behind color similarity.
- fs - used to write the data in .json files.
- path - used to find paths easily.