The recommended approach to implement YOLOv8 in deepstream

I found this repository on github

But I see this is not a repository maintained by nvidia. Is there any official or recommended way to deploy YOLOv8n to deepstream?

No.
You can refer to the third party samples.