How to get a cell’s name?

I can add a short snippet to my noteboosk.js for namedCells and functions extract from notebook nodes value.

still wondering how you intend to use it? outside of observable as a custom js script similar to how we do unit tests with spec.js but for docs?

very good question and idea! I never thought of notebook cell docs. def. worth considering adding to some form of observable runtime in the future.