Is it possible to give a flat rate of $N for up to N items and then free shipping on anything over these N items?

Yes, with our Shipping per product extension you will be able to give a flat rate of $N for the number of products you need and set $0 shipping for all other products in your store.

See more details on Shipping per Product page
Rate the answer?