The FLO repository is structured as a monorepo, employing Nx as its build tool. To keep our main package.json as light as possible, we keep libraries that are only used for a hub in the hub package.json . This means when adding a new library you should navigate to the hub folder and install the library with our package manager bun
cd packages/hubs/<hub-path> 
bun install --save <library-name>
  • Import the library into your hub.
Guidelines:
  • Make sure you are using well-maintained libraries.
  • Ensure that the library size is not too large to avoid bloating the bundle size; this will make the hub load faster in the sandbox.