Last Two Lines for the Earth
A Digital Poetry Campaign Platform — turning two lines of verse into peaceful, global movements for climate action.
About the project
Introduction
Last2Lines is a groundbreaking AI-powered campaign platform where anyone can contribute two lines of poetry on social issues. With AI moderation and editing, couplets are stitched into a living collective poem, enhanced with live impact counters, embeddable widgets, and shareable QR posters.
The current campaign, “Two Lines for the Earth,” unites learners worldwide to express their climate hopes and fears through poetry — transforming creative expression into participatory climate education and awareness.
- Live Demo: https://www.last2lines.com/
- Demo video: https://youtu.be/jsF-8hk_zn4
- Code Repo: https://github.com/codersbeyondborders/last2lines
Inspiration
Traditional activism often lacks inclusivity and impact: hashtags fade quickly, and physical protests can be inaccessible. We wanted to create a platform where anyone can contribute safely, meaningfully, and creatively. Growing up in conflict regions, I’ve seen how art transcends borders. Last2Lines reframes activism as poetry — a chorus of global voices for change.
What it does
- Launches campaigns by theme (e.g., Two Lines for the Earth).
- Lets people submit two-line verses in seconds.
- Uses AI moderation & editing to ensure contributions are safe and on-topic.
- Stitches submissions into a collective global poem in real-time.
- Displays live counters of voices, lines, and global reach.
- Provides widgets, QR posters, and dashboards for NGOs, educators, and communities.
How we built it
- Frontend & Backend: PHP, HTML, CSS, JavaScript.
- Database: MySQL for storing campaigns, users, and contributions.
- AI: GPT models for moderation, editing, and thematic alignment.
- UX: Simple single-page flow to maximize accessibility and minimize barriers.
- Storage: Text-based live poem files for lightweight performance.
Data Flow & Integrations
- User Input (Web App) → User enters two lines on campaign theme.
- AI Moderation (OpenAI GPT) → Checks for safety, relevance, tone, and edits if needed.
- Persistence (MySQL) → Stores contribution and campaign metadata.
- Poem Generator → Instantly appends couplet to live global poem.
- Impact Dashboard → Counters show voices, lines, and participation globally.
- NGO & Classroom Tools → Share via QR posters and embeddable widgets.
Integrations:
- Frontend: PHP/HTML/JS single-page app
- Backend: PHP + MySQL
- AI: GPT models for moderation/editing
- Campaign tools: Widgets, QR code generator, counters
🚀 Run Instructions
Clone the repo
git clone https://github.com/yourusername/last2lines.git cd last2linesSet up environment
- Create a MySQL database and add credentials in
.env. - Add
OPENAI_API_KEYfor moderation.
- Create a MySQL database and add credentials in
Install & run
php -S localhost:8000Usage
- Open http://localhost:8000
- Select a campaign (e.g., Two Lines for the Earth).
- Submit your two-line verse.
- Watch it instantly appear in the live global poem.
- Share via generated QR poster or widget.
- Open http://localhost:8000
What judges will love
- Unique activism format: poetry as peaceful, creative protest.
- Scalability: NGOs can launch campaigns instantly with widgets/posters.
- AI safety net: respectful, on-theme contributions at scale.
- Inclusivity: minimal barriers — anyone can add just two lines.
Challenges I ran into
- Designing AI moderation to balance freedom of expression with safety.
- Handling real-time updates in a lightweight, global app.
- Ensuring campaigns remain engaging, not just experimental.
Accomplishments that I am proud of
- Built the world’s first AI-powered poetry campaign tool.
- Created a smooth pipeline: submission → moderation → live poem.
- Designed a model NGOs and educators can use immediately.
What I learned
- How to merge art, activism, and AI into one accessible platform.
- The importance of lightweight, barrier-free participation.
- That collective expression can be more powerful than isolated posts.
What's next for Last2Lines
- Add multi-language support to expand globally.
- Partner with NGOs for real-world climate campaigns.
- Build impact dashboards tracking engagement, reach, and donations.
- Expand beyond poetry into visual and multimedia activism.
Log in or sign up for Devpost to join the conversation.