Vision & What the App Does
Poetry often feels like gravity itself — pulling emotions down into words, shaping them into lines that land with weight. The Gravity Poem Generator is a playful experiment in turning that metaphor into motion. Instead of static text, poems here fall, bounce, and drift across the screen as if pulled by invisible forces.
The app is simple: you enter or generate words, and they don’t just appear — they move. Each poem becomes a living canvas, where gravity and randomness make the lines dance. The creative output is the product: a short, visual piece of writing that feels alive, meant to spark curiosity and joy.
Two touches keep it engaging. First, the physics engine ensures every word interacts with the environment, so no two runs look the same. Second, the generator is open-ended — you can feed it your own text or let it surprise you, making it both a tool for expression and a toy for discovery.
How I Built It
I started with a simple idea: combine JavaScript canvas rendering with text input. The earliest version just dropped words straight down, but it quickly felt flat. Adding bounce physics and randomized motion gave the poems personality.
One key lesson came early: text isn’t like particles. Words have meaning, so the visuals had to respect readability. I tuned the gravity, friction, and collision detection until the words moved playfully but stayed legible.
The architecture is lightweight:
- HTML + CSS for the static frontend.
- JavaScript for the physics simulation and rendering.
- A simple parser to split text into words and feed them into the canvas.
Because it’s all client-side, there’s no backend complexity. The app runs instantly in any browser, making it accessible and easy to share.
AWS Services Used / Architecture Overview
While the Gravity Poem Generator itself is static and hosted on GitHub Pages, the design philosophy aligns with AWS’s builder spirit: lightweight, scalable, and creative. If extended, the architecture could look like this:
- Amazon S3 + CloudFront — hosting the static site globally.
- AWS Lambda — adding an API for custom poem generation.
- Amazon DynamoDB — storing shared creations in a communal wall.
- Amazon Bedrock — generating poetic text dynamically before feeding it into the gravity engine.
This weekend challenge is about experimenting with creativity, so the current version stays simple, but the AWS ecosystem offers clear paths to scale.
What I’ve Learned
Two lessons stuck. First, playfulness matters: adding physics turned plain text into an experience. Second, constraints shape creativity: keeping words readable while making them move forced me to balance art and engineering.
I also realized that creativity doesn’t need heavy infrastructure. A browser, a few lines of JavaScript, and an idea were enough to make something delightful. But imagining how AWS services could extend it — shared walls, AI-generated poems, global hosting — shows how small experiments can grow into community tools.
Link to Demo
Loading article