Local Newton Raphson for plasticity

Hello everyone,
I am trying to implement local newton raphson at gauss point level in fenicsx. I was exploring basicx package that supplies functionalities at integration point level. Is there any minor working example on plasticity using local NR? Could you provide any guidelines to start?

Thanks in advance for your time and the amazing work you’ve done so with this amazing library.