/rbcm

open-source color matching technology

Primary LanguageTypeScriptMIT LicenseMIT

Recommendations by color matching (rbcm)

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.

How to use?

  1. Install our bun (fast runtime with built-in typescript support) i prefer using.
  2. Install packages i prefer pnpm so pnpm install.
  3. Then create subfolders in assets/ and upload atleast 2 images.
  4. Run either by pnpm run dev or bun run ..
  5. For support, questions or else join our Discord.

Dependencies

  • 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.

Example footage

Example Footage Gif