node api demo