I have been able to install repositories that do not have a composer.json file like this:
{ \"type\": \"package\", \"package\": {
Use npm, yarn or WebPack instead of Composer they are way better for that kind of needs.
npm
yarn
WebPack