{"id":31532612,"url":"https://github.com/langliu/novel-planet","last_synced_at":"2026-04-30T08:32:21.692Z","repository":{"id":316931686,"uuid":"1065365587","full_name":"langliu/novel-planet","owner":"langliu","description":"书界 - 基于 Cloudflare 的小说网站","archived":false,"fork":false,"pushed_at":"2025-09-27T16:32:21.000Z","size":338,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-27T18:05:32.962Z","etag":null,"topics":["cloudflare","hono","nextjs","novel","orpc"],"latest_commit_sha":null,"homepage":"","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/langliu.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-27T15:23:11.000Z","updated_at":"2025-09-27T16:32:24.000Z","dependencies_parsed_at":"2025-09-28T15:45:45.958Z","dependency_job_id":null,"html_url":"https://github.com/langliu/novel-planet","commit_stats":null,"previous_names":["langliu/novel-planet"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/langliu/novel-planet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/langliu%2Fnovel-planet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/langliu%2Fnovel-planet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/langliu%2Fnovel-planet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/langliu%2Fnovel-planet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/langliu","download_url":"https://codeload.github.com/langliu/novel-planet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/langliu%2Fnovel-planet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278262444,"owners_count":25957938,"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-10-04T02:00:05.491Z","response_time":63,"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":["cloudflare","hono","nextjs","novel","orpc"],"created_at":"2025-10-04T03:56:40.593Z","updated_at":"2025-10-04T03:56:49.675Z","avatar_url":"https://github.com/langliu.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# novel-planet\n\nThis project was created with [Better-T-Stack](https://github.com/AmanVarshney01/create-better-t-stack), a modern TypeScript stack that combines Next.js, Hono, ORPC, and more.\n\n## Features\n\n- **TypeScript** - For type safety and improved developer experience\n- **Next.js** - Full-stack React framework\n- **TailwindCSS** - Utility-first CSS for rapid UI development\n- **shadcn/ui** - Reusable UI components\n- **Hono** - Lightweight, performant server framework\n- **oRPC** - End-to-end type-safe APIs with OpenAPI integration\n- **workers** - Runtime environment\n- **Drizzle** - TypeScript-first ORM\n- **SQLite/Turso** - Database engine\n- **Authentication** - Better-Auth\n- **Husky** - Git hooks for code quality\n- **Turborepo** - Optimized monorepo build system\n\n## Getting Started\n\nFirst, install the dependencies:\n\n```bash\nbun install\n```\n## Database Setup\n\nThis project uses SQLite with Drizzle ORM.\n\n1. Start the local SQLite database:\nLocal development for a Cloudflare D1 database will already be running as part of the `wrangler dev` command.\n\n2. Update your `.env` file in the `apps/server` directory with the appropriate connection details if needed.\n\n3. Apply the schema to your database:\n```bash\nbun db:push\n```\n\n\nThen, run the development server:\n\n```bash\nbun dev\n```\n\nOpen [http://localhost:3001](http://localhost:3001) in your browser to see the web application.\nThe API is running at [http://localhost:3000](http://localhost:3000).\n\n\n\n\n## Before Deploying to Cloudflare\n\nWhen you are ready to deploy your app to Cloudflare Workers, you'll have to make a couple changes.\n- Change your url environment variables to match your `*.workers.dev` domains generated by Cloudflare:\n\n```bash\n# apps/web/.env\nSERVER_URL={your-production-server-domain}\n\n# apps/server/.env\nCORS_ORIGIN={your-production-web-domain}\nBETTER_AUTH_URL={your-production-server-domain}\n```\n- In `apps/server/lib/auth.ts`, uncomment the `session.cookieCache` and `advanced.crossSubDomainCookies` sections and replace `\u003cyour-workers-subdomain\u003e` with your actual workers subdomain. These settings are required to ensure cookies are transferred properly between your web and server domains.\n\n\n\n\n## Deployment (Cloudflare Wrangler)\n- Web deploy: cd apps/web \u0026\u0026 bun deploy\n- Server dev: cd apps/server \u0026\u0026 bun dev\n- Server deploy: cd apps/server \u0026\u0026 bun deploy\n\n\n## Project Structure\n\n```\nnovel-planet/\n├── apps/\n│   ├── web/         # Frontend application (Next.js)\n│   └── server/      # Backend API (Hono, ORPC)\n```\n\n## Available Scripts\n\n- `bun dev`: Start all applications in development mode\n- `bun build`: Build all applications\n- `bun dev:web`: Start only the web application\n- `bun dev:server`: Start only the server\n- `bun check-types`: Check TypeScript types across all apps\n- `bun db:push`: Push schema changes to database\n- `bun db:studio`: Open database studio UI\n- `cd apps/server \u0026\u0026 bun db:local`: Start the local SQLite database\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flangliu%2Fnovel-planet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flangliu%2Fnovel-planet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flangliu%2Fnovel-planet/lists"}