Files
verse-quote-app/server/db/seed-data.ts
T
exe.dev user 0a18c774a5
CI / build (push) Successful in 4m26s
Build Verse: a poem-quote app on the agent-native chat template
Adds a Postgres-backed quotes domain (poems/quotes/favorites) exposed as
five agent-native actions (list-quotes, get-random-quote, create-quote,
toggle-favorite, list-favorites) callable from both chat and the React UI
via useActionQuery/useActionMutation. Moves the primary UI from chat to a
mobile-first Quotes/Favorites experience (chat moves to /chat), adds
manual OpenTelemetry instrumentation exporting traces/metrics/logs over
OTLP, and wires a local Docker Postgres for shared state.
2026-07-25 17:42:04 +00:00

274 lines
7.5 KiB
TypeScript

// Public-domain poem excerpts used to seed a fresh database. Shared by the
// startup migration plugin so seeding works the same way regardless of which
// SQL provider (Docker Postgres, Neon, Supabase, local SQLite, ...) is
// behind DATABASE_URL.
export type SeedQuote = {
text: string;
tags: string[];
};
export type SeedPoem = {
author: string;
title: string;
source: string | null;
year: number | null;
quotes: SeedQuote[];
};
export const SEED_POEMS: SeedPoem[] = [
{
author: "Emily Dickinson",
title: "“Hope” is the thing with feathers",
source: "Poems (1891)",
year: 1861,
quotes: [
{
text: "“Hope” is the thing with feathers — that perches in the soul — and sings the tune without the words — and never stops — at all —",
tags: ["hope", "resilience"],
},
],
},
{
author: "Robert Frost",
title: "The Road Not Taken",
source: "Mountain Interval",
year: 1916,
quotes: [
{
text: "Two roads diverged in a wood, and I— I took the one less traveled by, and that has made all the difference.",
tags: ["choice", "life", "journey"],
},
],
},
{
author: "Walt Whitman",
title: "Song of Myself",
source: "Leaves of Grass",
year: 1855,
quotes: [
{ text: "I contain multitudes.", tags: ["identity", "self"] },
{
text: "Do I contradict myself? Very well then I contradict myself, (I am large, I contain multitudes.)",
tags: ["identity", "self"],
},
],
},
{
author: "William Wordsworth",
title: "I Wandered Lonely as a Cloud",
source: "Poems in Two Volumes",
year: 1807,
quotes: [
{
text: "For oft, when on my couch I lie in vacant or in pensive mood, they flash upon that inward eye which is the bliss of solitude.",
tags: ["memory", "solitude", "nature"],
},
{
text: "I wandered lonely as a cloud that floats on high o'er vales and hills, when all at once I saw a crowd, a host, of golden daffodils.",
tags: ["nature", "solitude"],
},
],
},
{
author: "William Shakespeare",
title: "Sonnet 18",
source: "Shakespeare's Sonnets",
year: 1609,
quotes: [
{
text: "Shall I compare thee to a summer's day? Thou art more lovely and more temperate.",
tags: ["love", "beauty"],
},
{
text: "So long as men can breathe or eyes can see, so long lives this, and this gives life to thee.",
tags: ["love", "immortality"],
},
],
},
{
author: "John Keats",
title: "Endymion",
source: null,
year: 1818,
quotes: [
{
text: "A thing of beauty is a joy for ever: its loveliness increases; it will never pass into nothingness.",
tags: ["beauty", "joy"],
},
],
},
{
author: "William Butler Yeats",
title: "The Second Coming",
source: "Michael Robartes and the Dancer",
year: 1920,
quotes: [
{
text: "Turning and turning in the widening gyre the falcon cannot hear the falconer; things fall apart; the centre cannot hold.",
tags: ["chaos", "change"],
},
{
text: "The best lack all conviction, while the worst are full of passionate intensity.",
tags: ["conviction", "society"],
},
],
},
{
author: "Percy Bysshe Shelley",
title: "Ozymandias",
source: null,
year: 1818,
quotes: [
{
text: "My name is Ozymandias, king of kings: look on my works, ye Mighty, and despair! Nothing beside remains.",
tags: ["time", "pride", "impermanence"],
},
],
},
{
author: "Alfred, Lord Tennyson",
title: "Ulysses",
source: null,
year: 1842,
quotes: [
{
text: "Though much is taken, much abides; and though we are not now that strength which in old days moved earth and heaven... one equal temper of heroic hearts... strong in will to strive, to seek, to find, and not to yield.",
tags: ["perseverance", "age", "courage"],
},
],
},
{
author: "Edgar Allan Poe",
title: "A Dream Within a Dream",
source: null,
year: 1849,
quotes: [
{
text: "Is all that we see or seem but a dream within a dream?",
tags: ["dreams", "existence"],
},
],
},
{
author: "William Blake",
title: "Auguries of Innocence",
source: null,
year: 1863,
quotes: [
{
text: "To see a World in a Grain of Sand, and a Heaven in a Wild Flower, hold Infinity in the palm of your hand, and Eternity in an hour.",
tags: ["wonder", "nature", "infinity"],
},
],
},
{
author: "Christina Rossetti",
title: "Remember",
source: "Goblin Market and Other Poems",
year: 1862,
quotes: [
{
text: "Better by far you should forget and smile than that you should remember and be sad.",
tags: ["memory", "love", "loss"],
},
],
},
{
author: "Robert Frost",
title: "Stopping by Woods on a Snowy Evening",
source: "New Hampshire",
year: 1923,
quotes: [
{
text: "The woods are lovely, dark and deep, but I have promises to keep, and miles to go before I sleep.",
tags: ["duty", "rest", "nature"],
},
],
},
{
author: "Emily Dickinson",
title: "Because I could not stop for Death",
source: "Poems (1890)",
year: 1863,
quotes: [
{
text: "Because I could not stop for Death, he kindly stopped for me; the carriage held but just ourselves and Immortality.",
tags: ["death", "time"],
},
],
},
{
author: "Walt Whitman",
title: "O Captain! My Captain!",
source: "Sequel to Drums-Taps",
year: 1865,
quotes: [
{
text: "O Captain! my Captain! our fearful trip is done, the ship has weather'd every rack, the prize we sought is won.",
tags: ["triumph", "loss", "leadership"],
},
],
},
{
author: "Rumi",
title: "The Guest House",
source: "The Essential Rumi (translation)",
year: 1207,
quotes: [
{
text: "This being human is a guest house. Every morning a new arrival... Welcome and entertain them all!",
tags: ["acceptance", "emotion", "mindfulness"],
},
],
},
{
author: "Sara Teasdale",
title: "Barter",
source: "Rivers to the Sea",
year: 1915,
quotes: [
{
text: "Life has loveliness to sell, all beautiful and splendid things, blue waves whitened on a cliff, soaring fire that sways and sings.",
tags: ["beauty", "life", "joy"],
},
],
},
{
author: "Elizabeth Barrett Browning",
title: "Sonnet 43 (How Do I Love Thee?)",
source: "Sonnets from the Portuguese",
year: 1850,
quotes: [
{
text: "How do I love thee? Let me count the ways. I love thee to the depth and breadth and height my soul can reach.",
tags: ["love"],
},
],
},
{
author: "Langston Hughes",
title: "Dreams",
source: "The Weary Blues",
year: 1926,
quotes: [
{
text: "Hold fast to dreams, for if dreams die, life is a broken-winged bird that cannot fly.",
tags: ["dreams", "hope"],
},
],
},
{
author: "Henry Wadsworth Longfellow",
title: "A Psalm of Life",
source: "Voices of the Night",
year: 1838,
quotes: [
{
text: "Life is real! Life is earnest! And the grave is not its goal... Let us, then, be up and doing, with a heart for any fate.",
tags: ["life", "purpose", "courage"],
},
],
},
];