This Node JS file shows, how to create s2 components using s2-geometry in nodejs by creating 9 fields around a specific location.
First install s2-geometry by doing npm install s2-geometry
You can change the size of the components by changing the level variable.
You can also visuallize the components by using this website: https://igorgatis.github.io/ws2/?cells=