api-cursor.js with generated examples