Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

✍️ Text Generator — AI-Powered Content Creator

A simple but powerful text generator that uses the Anthropic Claude API to create poems, short stories, jokes, and articles on any topic.


Features

  • 4 content types — Poem, Short Story, Joke, Article
  • 4 languages — English, Turkish, Spanish, French
  • History — Generated texts are saved in the session
  • Copy to clipboard — One-click copy for each result
  • Show more / less — Expandable history items
  • Clean dark UI — Minimal and responsive design

Tech Stack

  • Vanilla JavaScript
  • HTML + CSS
  • Anthropic Claude API (claude-sonnet-4-5)

Getting Started

  1. Clone the repo:
git clone https://github.com/mastartm/text-generator.git
cd text-generator
  1. Get your API key from console.anthropic.com

  2. Open index.html and replace YOUR_API_KEY_HERE with your key:

"x-api-key": "YOUR_API_KEY_HERE"
  1. Run with a local server:
live-server

⚠️ Important

Never commit your real API key to GitHub. Keep it local only.


Built with Claude API + Vanilla JS

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages