When comparing Crafty.js vs raylib, the Slant community recommends raylib for most people. In the question“What are the best 2D game engines?” raylib is ranked 36th while Crafty.js is ranked 37th. The most important reason people chose raylib is:
Very good for begginers who are looking for game FRAMEWORKS.
Specs
Ranked in these QuestionsQuestion Ranking
Pros

Pro Eventbinding
Easy to learn, based on Entities and Components, the later being class-like objects that entities inherit.

Pro Javascript
Pro Modular
Has open function binding systems, allowing easy creation of custom components.
Pro Simple
Very good for begginers who are looking for game FRAMEWORKS.
Pro Support forum
Though it's a small project, it has a forum on the webpage with helpful content available.
Cons
Con No IDE
If you like having some huge GUI akin to Gamemaker, Unreal, Unity, etc, Crafty is not for you.
Con Just coding
Lack of an interface, visual help or auto-debugging could make it difficult to use for a complete beginner.
