
Imani had been new in town for exactly one week, and in that whole week nobody had said more than "Excuse me" to her. Her mom worked late at the hospital, so every day after school Imani walked to the town library and waited. She always sat in the same spot: on the carpet in the fairy-tale corner, with her back against the shelf and her green satchel in her lap. She liked it there. Stories didn't mind if you were new.

On Friday, at exactly six o'clock, the library lights clicked off one row at a time. Imani stood up to go, and stopped. Between two shelves, where yesterday there had only been a wall, there was a small green door. It was no taller than she was. Its brass handle was shaped like a curling feather, and above it someone had painted words in gold, except the letters kept wriggling, as if they hadn't decided yet what they wanted to say.

Imani looked over her shoulder. The librarian was busy stamping books and humming. So Imani turned the feather handle, and the door swung open without a creak. On the other side was the biggest room she had ever seen: a round hall made entirely of bookshelves, rising up and up until they disappeared into shadow. Rolling ladders leaned against the shelves. Green lamps glowed on long wooden tables. And here and there, books were flapping their pages like restless birds.

Something very large moved behind the tallest shelf. A long purple neck curved over the top, and a dragon peered down at her: an enormous old dragon with plum-purple scales, a grey knitted scarf, and round gold spectacles on the end of her nose. "You're late," said the dragon. Imani's mouth fell open. "I didn't know I was coming." "Nobody ever does. Everyone who finds the door is late. It's tradition." The dragon's head came slowly down to Imani's level, which took a while. "I'm Agnes. Welcome to the School of Lost Endings."

A book was flapping impatiently on the table beside them. "Every story is supposed to go somewhere," Agnes said. "But sometimes a story goes wrong. It gets stuck, it can't reach its ending, and its last page goes pale." She lifted the book with one claw and showed Imani its last page, faded almost to nothing. "That's where menders come in. You put your hand on the first page, read the first line out loud, and in you go." She tapped the table. "One rule. You may help a story. You may never write it for them."

Two other children were waiting at the long table. The first was a boy with round red glasses and a bag so full of books it couldn't close. "I'm Rafi," he said. "Did you know there are hundreds of versions of Cinderella? In one of them, she has a magic fish." The second boy had messy copper hair, ink on his sleeves and a stubby pencil behind his ear. "Silas," he said, and with a flick of his pencil he drew a sandwich in the air. It wobbled, turned real, and dropped into his hand. He took a big bite. "Tastes a bit like pencil," he admitted.

Agnes slid the flapping book across the table. It was Hey Diddle Diddle, the old rhyme where a cat plays the fiddle, a cow jumps over the moon, a little dog laughs, and a dish runs away with a spoon. "A small one, for your first day," said Agnes. "The cow won't jump." Imani put her hand on the first page. Rafi put his hand on top of hers, and Silas put his on top of Rafi's. Imani took a breath and read the first line out loud, and the hall spun away like water down a drain.

They landed on a grassy hill under a sky full of stars. The moon hung low and enormous, so close that Imani could see its craters. At the very top of the hill stood a plump cream-and-brown cow with a pink nose and a little brass bell. Every so often she peeked over the edge at the ground below, shut her eyes, and trembled so hard that her bell jingled. The cat and the little dog had given up waiting and gone home. "The cow jumped over the moon!" Rafi called up to her, encouragingly. The cow did not jump over the moon.

"Leave it to me," said Silas. He drew a big round trampoline at the cow's feet, with wobbly pencil springs. "No, wait—" said Imani, but the cow had already stepped onto it. BOING! She shot straight up, turned a slow somersault in the starlight, and came down, bell clanging, upside down in a haystack, with her legs sticking out of the top like surprised fence posts. "Hey diddle diddle," Rafi recited, a little more quietly. Silas tucked his pencil behind his ear. "Okay," he said. "That's not how I pictured it."

The cow climbed out of the hay and trudged back to the top of the hill. Imani watched her. Every time the cow got ready to jump, her eyes slid down, down, down to the ground far below, and her knees began to shake. Imani walked up beside her. "Don't look down," she said softly. "Look at the moon." The cow lifted her head. She looked at the moon, big and silver and close. Then she backed up, ran, and sailed right over it, her bell ringing like a tiny cheer.

The last page of the rhyme glowed gold, the hill melted away, and they were back at the long table. Agnes looked at Imani over her spectacles for a long moment. "Hm," she said. "You noticed." Then she turned to a cart of returned books and frowned. One book lay open on top. Its last page was completely blank, except for a small silver smudge in the corner. "Third one this week," Agnes muttered. Imani looked up, and behind a far shelf she saw a grey figure, drawn in pencil lines, slip out of sight.

That night, Imani lay in bed with the quilt pulled up to her chin. Outside, the town was quiet and ordinary, as if there were no green doors in it anywhere. She thought about the cow sailing over the moon, and Rafi's facts, and Silas's pencil sandwich. She thought about the blank page with its silver smudge, and the grey figure behind the shelf. Who would steal the end of a story? For the first time since the move, Imani could not wait for tomorrow.