Question [Q] difference between cyanogenmod rom and stock rom

what is the difference between cyanogenmod based roms and stock based roms? on the bases of applications(if it is based on the apps only)
or is there any other difference i should know...??