Is there any firebase alternative that I can use offline? Just like having your own SQL Server on your pc
can you tell us more about your specific needs?
Which parts of Firebase do you need locally?
You can setup many databases (Postgres, MySQL, MongoDB etc.) locally and connect to them.