just wondering because i have a good weapon and I don't want to lose it
Yes, to repair simply use an anvil or the faction's smith.
Just whatever you do, don't hit the little hammer icon! That will reforge the item and make you lose all your modifiers.
What do you think?