SP.js is The SharePoint 2013 Client Object Model library and allows using some SharePoint's powerful features from a client Web Part.
It is mostly used in correlation with .Net applications. Good tutorial here to proceed.
There now exists a specific SharePoint StackExchange site.