{"version":"1.0","type":"rich","title":"Gist 8487030","description":"This example shows a Node.js server endpoint that handles user creation through a series of asynchronous validation and persistence steps. The code demonstrates a Koa-style generator function using `yield` for control flow, with `parse` to read the request body and `password` to generate a salt and hash. It validates the user schema, checks for an existing username with `users.findOne`, and inserts the new user with `users.insert`, returning a 201 status. The example relies on promise-based database and password utilities without any visualization libraries.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-8487030?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}