You do not need to read this section, but I highly recommend you do for your own education. 

food

Here is a list of yummy fresh foods and commercial foods you can feed. Safe fresh foods are not limited to this list. Providing these foods in organic is ideal, but of course not required.  

Rat's list:

Rats need a commercial diet to provide vitamins and minerals. The best diets are the following in order. Keep in mind that feeding organic chicken grower feed is a controversial choice. There are no certified organic rat foods on the market, so organic chicken grower is a great way to provide vitamins and minerals without giving them potentially harmful GMOs. My rats do extremely well on it. Rats should not be fed seed mixes or Kaytee Lab blocks.
 .
Commercial food:
-Organic Chicken grower feed, Green Mountain brand is best (controversial option)
-Oxbow Regal Adult Rats Formula (highly recommended by rat community)
-Mazuri (very affordable option)
-Harlan Teklad
.
Fresh Foods for Rats
-Whole wheat pasta
-Raw sunflower seeds
-Organic corn
-Cooked or raw egg (duck, chicken, quail)
-Cooked or raw chicken
-Cooked or raw steak
-Live or dried meal worms
-Live crickets (Rats love em!)
-Grapes
-Peas
-Kale
-Banana
-Sliced apple (Do not feed apple seeds)
-Squash (Fresh or steamed)
-Squash seeds
-Raw hazel nuts
-Raw brazil nuts
-Raw Almonds
-Broccoli
-Spring mix lettuce
-Carrots (Fresh or steamed)
-Cooked potato
-Cooked sweet potato
-Raw whole cashews
-Mango (Only offer to female rats)
-Peaches
-Whole Oats
-High quality cereal and cheerios 
-Cauliflower
-Dried cranberries
-String beans (Not canned)
-Raw or cooked beef 
-Tomatoes
-Granola
-Pumpkin seeds
-Pumpkin (Canned or fresh if in season)
-Raw or cooked bones
-Chocolate (Perfectly safe for rats. Dark is better. Only give as treat)
.
Fun fact: Rats can safety have cooked bones. I often give my rats the pork, chicken, and steak bones that are left over from our dinner meals. Bones are safe for rats because rats gnaw the bone rather than chew it, like a dog would. This is why cooked bones are safe for rats, but not safe for dogs. Bones help provide your rats with calcium. Do not offer any pet-store bought dog bones to them and never give them raw hide.
.

Hamster's list:

Hamsters have a sensitive system so only offer small amounts of fresh foods at a time. Hams prefer bugs and seeds, but some enjoy fruits, veggies, and nuts. Hamsters need a commercial diet which ideally is a mix of lab block and seed mixes.
 .
Commercial Diet:
.
(Seed Mixes)
-Carefresh Complete Menu
-Higgins Sunburst
Higgins Vita Garden
Mr. Johnson's Supreme Hamster & Gerbil
National Geographic Hamster Entree
Natural Balance Hamster Muesli by Pets at Home
Scarlett Hamster & Gerbil
Sunseed Sunsations Hamster & Gerbil
Versele Laga Hamster Nature Complete
Versele Laga Mini Hamster Nature Complete
VitaKraft VitaNature
VitaKraft VitaSmart

(Lab blocks)
Cuisine Rodent Chunk
Harlan Teklad (2018, 8604, 8640)
Kaytee Healthy Support Diet for Rat, Mouse, and Hamster (Forti-Diet Pro-Health)
Living World Green Hamster, Mouse, and Gerbil Food
Martin Little Friends Hamster & Gerbil Food
Mazuri Rat & Mouse
Mr. Johnson’s Advance Hamster and Gerbil Food
Sunseed Critter Cubes
Supreme Science Selective (European Version)
Supreme Science Selective (US Version)
Versele Laga Hamster Complete

.
Fresh Foods for Hamsters
.
-Live crickets
-Live or dried mealworms
-Broccoli
-Cauliflower
-Banana
-Squash seeds
-Pumpkin seeds
-Canned pumpkin
-Apple
-Almonds

My past rat meals:

raw we

Shown above is a rat meal. Organic steamed carrots, apple, raw organic egg, tomatoes, bell pepper, organic garden salad mix, etc.

din 5