How precise are you talking(that is like how much money do you want to spend)?
I might spell it wrong,but there is an outfit named Chatillion that makes such gages for QC purposes.
However,you might look at scales to weigh fish.
extension springs,obviously you pull on,but to compress
Suppose you drilled a hole in a board.put a long eyebolt or the equivalent through the hole,thread on the spring,then put a fender washer and nut on it.Hook the fish scale to it and pull.Now,there are many ways you could vary this,but it might get you thinking.
Heck,you could put the board horizontal,the spring on top,with a washer on top,something thru the spring and hang a bucket on it.Pour in water till you get whatever compression you want,and weigh the bucket.
Don't forget the tare weight of whatever you hang.