(bug) fix schema and  add npm dependency