NFLpredict uses historical score data from the official NFL API and MELO, a "Margin-dependent Elo ratings and predictions model", in order to give predictions on what the spread for a given NFL matchup will be.
MELO can be found here: https://github.com/morelandjs/melo