{"id":31040429,"url":"https://github.com/rahulrmcoder/moonlight-tales","last_synced_at":"2025-10-24T06:19:22.661Z","repository":{"id":304020818,"uuid":"1017523318","full_name":"RahulRmCoder/moonlight-tales","owner":"RahulRmCoder","description":"Moonlight Tales is an AI-powered web app that creates funny and heartwarming bedtime stories for children based on a single sentence or idea. With a beautifully illustrated interface and playful storytelling, this app brings joy, laughter, and life lessons to kids — one story at a time.","archived":false,"fork":false,"pushed_at":"2025-07-10T17:10:31.000Z","size":188,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-10T23:35:43.791Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RahulRmCoder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-10T17:01:31.000Z","updated_at":"2025-07-10T17:10:34.000Z","dependencies_parsed_at":"2025-07-10T23:36:01.138Z","dependency_job_id":null,"html_url":"https://github.com/RahulRmCoder/moonlight-tales","commit_stats":null,"previous_names":["rahulrmcoder/moonlight-tales"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/RahulRmCoder/moonlight-tales","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RahulRmCoder%2Fmoonlight-tales","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RahulRmCoder%2Fmoonlight-tales/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RahulRmCoder%2Fmoonlight-tales/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RahulRmCoder%2Fmoonlight-tales/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RahulRmCoder","download_url":"https://codeload.github.com/RahulRmCoder/moonlight-tales/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RahulRmCoder%2Fmoonlight-tales/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275081662,"owners_count":25402336,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-14T02:00:10.474Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-09-14T08:40:31.243Z","updated_at":"2025-10-24T06:19:22.584Z","avatar_url":"https://github.com/RahulRmCoder.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🌙 Moonlight Tales\n\n**Where AI Magic Meets Bedtime Wonder**\n\nMoonlight Tales is an AI-powered web app that creates funny and heartwarming bedtime stories for children based on a single sentence or idea. With a beautifully illustrated interface and playful storytelling, this app brings joy, laughter, and life lessons to kids — one story at a time.\n\n---\n\n## 🧠 Powered by Lyzr Agent\n\nThis project connects to a Lyzr AI inference agent that generates creative bedtime stories on demand using the following endpoint:\n\n```\nPOST https://agent-prod.studio.lyzr.ai/v3/inference/chat/\n```\n\n**Headers:**\n\n```\nContent-Type: application/json  \nx-api-key: sk-default-iPEOmf2biknSikwsVOh0xbDtT5nNkUx6\n```\n\n**Example Payload:**\n\n```json\n{\n  \"user_id\": \"rahulrajasekharanmenon64325@gmail.com\",\n  \"agent_id\": \"#\",\n  \"session_id\": \"#\",\n  \"message\": \"A curious girl finds a talking sock in her laundry basket\"\n}\n```\n\n---\n\n## ✨ Features\n\n- 🎨 Cute, animated bedtime-themed UI (clouds, stars, moon)\n- 🧒 Child-friendly fonts (e.g., Comic Neue, Baloo 2)\n- 💡 Single sentence input to generate full story\n- 📖 Storybook-style display with soft scrolling or flipping\n- 🌈 Gentle moral or life lesson in every tale\n- 🎵 Optional toggle for soothing background music\n- 📱 Fully responsive and mobile-friendly\n\n---\n\n## 🌈 Tech Stack\n\n- **Frontend**: HTML, CSS, JavaScript or React\n- **Styling**: Tailwind CSS (for pastel tones, smooth UI)\n- **Font**: Google Fonts - Comic Neue / Baloo\n- **API**: Lyzr Agent (AI backend)\n- **Audio**: Howler.js (optional background music)\n\n---\n\n## 🚀 How to Use\n\n1. **Clone the repository**\n\n```bash\ngit clone https://github.com/RahulRmCoder/moonlight-tales.git\ncd moonlight-tales\n```\n\n2. **Install dependencies**\n\n```bash\nnpm install\n```\n\n3. **Set your environment variables**\n\nCreate a `.env` file and add your key:\n\n```env\nVITE_LYZR_API_KEY=sk-default-iPEOmf2biknSikwsVOh0xbDtT5nNkUx6\n```\n\n4. **Run the development server**\n\n```bash\nnpm run dev\n```\n\n---\n\n## 📁 Project Structure\n\n```\nmoonlight-tales/\n├── public/               # Static assets (images, sounds)\n├── src/\n│   ├── components/       # InputBox, StoryDisplay, etc.\n│   ├── styles/           # Tailwind or CSS files\n│   ├── App.jsx\n│   └── main.jsx\n├── .env\n├── index.html\n├── package.json\n└── README.md\n```\n\n---\n\n## 🧪 Sample API Call (cURL)\n\n```bash\ncurl -X POST 'https://agent-prod.studio.lyzr.ai/v3/inference/chat/' \\\n  -H 'Content-Type: application/json' \\\n  -H 'x-api-key: sk-default-iPEOmf2biknSikwsVOh0xbDtT5nNkUx6' \\\n  -d '{\n        \"user_id\": \"rahulrajasekharanmenon64325@gmail.com\",\n        \"agent_id\": \"#\",\n        \"session_id\": \"#\",\n        \"message\": \"A giraffe who wants to touch the moon\"\n      }'\n```\n\n---\n\n## 🌟 Example Input → Output\n\n**Input:**  \n`A shy dragon wants to become a stand-up comedian`\n\n**Generated Story:**  \n\u003e Once upon a time in the giggle-filled valley of Burniebelly, a shy dragon named Drako discovered a love for telling jokes. Every time he tried to breathe fire, he sneezed sparkles instead…\n\n(Continues with a moral at the end.)\n\n---\n\n## 📜 License\n\nThis project is licensed under the MIT License.\n\n---\n\n## 🌠 Ending Note\n\n\u003e “Sweet dreams are made of stories.”  \nBring imagination to life and make bedtime magical — one sentence at a time.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frahulrmcoder%2Fmoonlight-tales","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frahulrmcoder%2Fmoonlight-tales","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frahulrmcoder%2Fmoonlight-tales/lists"}