{"id":22551239,"url":"https://github.com/sing1ee/songci-generator","last_synced_at":"2025-03-28T10:12:03.137Z","repository":{"id":256744601,"uuid":"856250267","full_name":"sing1ee/songci-generator","owner":"sing1ee","description":"songci-generator","archived":false,"fork":false,"pushed_at":"2025-01-27T05:07:26.000Z","size":300,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-27T05:25:44.488Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sing1ee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-09-12T08:52:04.000Z","updated_at":"2025-01-27T05:07:30.000Z","dependencies_parsed_at":"2024-09-18T15:41:01.706Z","dependency_job_id":null,"html_url":"https://github.com/sing1ee/songci-generator","commit_stats":null,"previous_names":["sing1ee/songci-generator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sing1ee%2Fsongci-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sing1ee%2Fsongci-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sing1ee%2Fsongci-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sing1ee%2Fsongci-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sing1ee","download_url":"https://codeload.github.com/sing1ee/songci-generator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246009076,"owners_count":20708881,"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","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":"2024-12-07T17:11:39.795Z","updated_at":"2025-03-28T10:12:03.116Z","avatar_url":"https://github.com/sing1ee.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Songci Generator\n\nSongci Generator is a Next.js application that generates Chinese Song Dynasty style poems (宋词) and corresponding SVG illustrations using AI.\n\n## Features\n\n-   Generate Song Dynasty style poems using AI\n-   Create SVG illustrations based on the generated poems\n-   React-based user interface for poem generation and display\n-   API routes for poem generation and SVG creation\n\n## Technologies Used\n\n-   [Next.js](https://nextjs.org/) - React framework for building the web application\n-   [React](https://reactjs.org/) - JavaScript library for building user interfaces\n-   [OpenAI API](https://openai.com/) - For AI-powered poem generation\n-   [TailwindCSS](https://tailwindcss.com/) - For styling the application\n-   [TypeScript](https://www.typescriptlang.org/) - For type-safe JavaScript development\n\n## Prerequisites\n\n-   Node.js (version 18 or higher recommended)\n-   pnpm (package manager)\n\n## Getting Started\n\n1. Clone the repository:\n\n    ```bash\n    git clone https://github.com/your-username/songci-generator.git\n    cd songci-generator\n    ```\n\n2. Install dependencies:\n\n    ```bash\n    pnpm install\n    ```\n\n3. Set up environment variables:\n   Create a `.env.local` file in the root directory and add your OpenAI API key:\n\n    ```\n    OPENAI_API_KEY=your_api_key_here\n    ```\n\n4. Run the development server:\n\n    ```bash\n    pnpm dev\n    ```\n\n5. Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n\n## Project Structure\n\n-   `src/app/`: Contains the main application code\n    -   `components/`: React components (e.g., PoemForm, SvgDisplay)\n    -   `api/`: API routes for poem generation and SVG creation\n    -   `page.tsx`: Main page component\n-   `src/lib/`: Utility functions and API clients\n    -   `openai.ts`: OpenAI API integration\n\n## Available Scripts\n\n-   `pnpm dev`: Runs the app in development mode\n-   `pnpm build`: Builds the app for production\n-   `pnpm start`: Runs the built app in production mode\n-   `pnpm lint`: Lints the codebase\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## License\n\nThis project is open source and available under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsing1ee%2Fsongci-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsing1ee%2Fsongci-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsing1ee%2Fsongci-generator/lists"}