{"id":27771388,"url":"https://github.com/triton-z/cc.ai","last_synced_at":"2025-07-12T07:34:47.493Z","repository":{"id":288984504,"uuid":"969740331","full_name":"Triton-Z/CC.AI","owner":"Triton-Z","description":"A simple app to assist in reading Chinese articles.","archived":false,"fork":false,"pushed_at":"2025-06-29T03:48:41.000Z","size":1630,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-29T04:31:31.320Z","etag":null,"topics":["chatgpt","chinese","flask","nextjs","npm","pnpm","puter-ai","react","tailwind","yarn"],"latest_commit_sha":null,"homepage":"https://cc-ai.vercel.app/","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/Triton-Z.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,"zenodo":null}},"created_at":"2025-04-20T20:35:17.000Z","updated_at":"2025-06-29T03:48:45.000Z","dependencies_parsed_at":"2025-04-29T22:37:53.924Z","dependency_job_id":"e8c984af-1982-4791-907a-7ce52b64074c","html_url":"https://github.com/Triton-Z/CC.AI","commit_stats":null,"previous_names":["triton-z/cc.ai"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Triton-Z/CC.AI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Triton-Z%2FCC.AI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Triton-Z%2FCC.AI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Triton-Z%2FCC.AI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Triton-Z%2FCC.AI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Triton-Z","download_url":"https://codeload.github.com/Triton-Z/CC.AI/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Triton-Z%2FCC.AI/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264958196,"owners_count":23689011,"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":["chatgpt","chinese","flask","nextjs","npm","pnpm","puter-ai","react","tailwind","yarn"],"created_at":"2025-04-29T22:37:19.044Z","updated_at":"2025-07-12T07:34:47.487Z","avatar_url":"https://github.com/Triton-Z.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://nextjs-flask-starter.vercel.app/\"\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/Triton-Z/CC.AI/refs/heads/main/public/logo.png\" height=\"96\"\u003e\n    \u003ch3 align=\"center\"\u003eCC.AI\u003c/h3\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003eSimple Next.js app that uses \u003ca href=\"https://flask.palletsprojects.com/\"\u003eFlask\u003c/a\u003e as the API backend.\u003c/p\u003e\n\n\u003cbr/\u003e\n\n## Introduction\n\nThis is a hybrid Next.js + Python app that uses Next.js as the frontend and Flask as the API backend. This app is primarily used to assist in reading articles on websites such as Baidu.\n\n## How It Works\n\nThe Python/Flask server is mapped into to Next.js app under `/api/`.\n\nThis is implemented using [`next.config.js` rewrites](https://github.com/vercel/examples/blob/main/python/nextjs-flask/next.config.js) to map any request to `/api/:path*` to the Flask API, which is hosted in the `/api` folder.\n\nOn localhost, the rewrite will be made to the `127.0.0.1:5328` port, which is where the Flask server is running.\n\nIn production, the Flask server is hosted as [Python serverless functions](https://vercel.com/docs/concepts/functions/serverless-functions/runtimes/python) on Vercel.\n\nThis app also uses [Puter.js](https://docs.puter.com/) to provide simpler and more secure client-based ChatGPT functions.\n\n## Demo\n\n[https://cc-ai.vercel.app/](https://cc-ai.vercel.app/)\n\n## Deploy Your Own\n\nYou can clone \u0026 deploy it to Vercel with one click:\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?demo-title=Next.js%20Flask%20Starter\u0026demo-description=Simple%20Next.js%20boilerplate%20that%20uses%20Flask%20as%20the%20API%20backend.\u0026demo-url=https%3A%2F%2Fnextjs-flask-starter.vercel.app%2F\u0026demo-image=%2F%2Fimages.ctfassets.net%2Fe5382hct74si%2F795TzKM3irWu6KBCUPpPz%2F44e0c6622097b1eea9b48f732bf75d08%2FCleanShot_2023-05-23_at_12.02.15.png\u0026project-name=Next.js%20Flask%20Starter\u0026repository-name=nextjs-flask-starter\u0026repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fexamples%2Ftree%2Fmain%2Fpython%2Fnextjs-flask\u0026from=vercel-examples-repo)\n\n## Developing Locally\n\nYou can clone \u0026 create this repo with the following command\n\n```bash\nnpx create-next-app nextjs-flask --example \"https://github.com/vercel/examples/tree/main/python/nextjs-flask\"\n```\n\n## Getting Started\n\nFirst, install the dependencies:\n\n```bash\nnpm install\n# or\nyarn\n# or\npnpm install\n```\n\nThen, run the development server:\n\n```bash\nnpm run dev\n# or\nyarn dev\n# or\npnpm dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n\nThe Flask server will be running on [http://127.0.0.1:5328](http://127.0.0.1:5328) – feel free to change the port in `package.json` (you'll also need to update it in `next.config.js`).\n\n## Learn More\n\nTo learn more about Next.js, take a look at the following resources:\n\n- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.\n- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.\n- [Flask Documentation](https://flask.palletsprojects.com/en/1.1.x/) - learn about Flask features and API.\n\nYou can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftriton-z%2Fcc.ai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftriton-z%2Fcc.ai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftriton-z%2Fcc.ai/lists"}