{"id":21926547,"url":"https://github.com/marekzelinka/betternews","last_synced_at":"2026-04-16T10:02:26.268Z","repository":{"id":264026031,"uuid":"891642757","full_name":"marekzelinka/betternews","owner":"marekzelinka","description":"Hacker News clone with authentication and submission comments support.","archived":false,"fork":false,"pushed_at":"2024-12-12T12:54:27.000Z","size":948,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-22T11:49:02.521Z","etag":null,"topics":["bun","docker","drizzle-orm","flyio","hackernews-clone","hono","postgresql","tanstack-form","tanstack-query","tanstack-router","typescript","zod"],"latest_commit_sha":null,"homepage":"https://betternews-aged-wave-251.fly.dev/","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/marekzelinka.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-11-20T17:37:23.000Z","updated_at":"2025-03-14T13:29:31.000Z","dependencies_parsed_at":"2024-11-21T16:20:59.357Z","dependency_job_id":"631157a5-d4d9-474f-89d9-c82423bd11a6","html_url":"https://github.com/marekzelinka/betternews","commit_stats":null,"previous_names":["marekzelinka/betternews"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/marekzelinka/betternews","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marekzelinka%2Fbetternews","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marekzelinka%2Fbetternews/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marekzelinka%2Fbetternews/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marekzelinka%2Fbetternews/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marekzelinka","download_url":"https://codeload.github.com/marekzelinka/betternews/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marekzelinka%2Fbetternews/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31880884,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T09:23:21.276Z","status":"ssl_error","status_checked_at":"2026-04-16T09:23:15.028Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bun","docker","drizzle-orm","flyio","hackernews-clone","hono","postgresql","tanstack-form","tanstack-query","tanstack-router","typescript","zod"],"created_at":"2024-11-28T22:08:32.603Z","updated_at":"2026-04-16T10:02:26.251Z","avatar_url":"https://github.com/marekzelinka.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BetterNews - A Fullstack Hacker News Clone\n\nThis project is a full-stack clone of [Hacker News](https://news.ycombinator.com/), that implements the core features like posting, commenting (with nested comments), and username/password authentication. I've deployed this project on [Fly.io](https://fly.io/), but deployment with Docker is also supported.\n\n![betternews-aged-wave-251 fly dev__sortBy=points orderBy=desc](https://github.com/user-attachments/assets/a4d61ab4-b5eb-4dff-a8a0-270f65a8989f)\n\n## Tech Stack\n\n- [Hono](https://hono.dev/docs/api/routing) - backend server (like Express.js, but faster)\n- [Bun](https://bun.sh/) - package manager (Node.js alternative)\n- [Drizzle ORM](https://orm.drizzle.team/) - database ORM library (like Prisma)\n- Postgres SQL - backend database\n- [Tanstack Router, Query, and Form](https://tanstack.com/) - Tanstack Query is a data management library and Tanstack Form is a form state manager\n- Zod - validations\n- TypeScript - static typing for JavaScript\n\n## Usage\n\nTo use this project, you will first need a running Postgres server. You can set this up with Docker.\n\n### Development\n\n1. Clone the repo\n2. Run `bun install`\n3. Add in environment variables to `.env`\n4. Run the development servers for both backend and frontend:\n\n- `bun dev` for the backend\n- `cd frontend \u0026\u0026 bun dev` for the frontend\n\n### Production\n\n1. Clone the repo\n2. Add in environment variables to `.env`\n3. Build the frontend `cd frontend \u0026\u0026 bun run build`\n4. Run `bun server/index.ts`\n\n## Goals\n\nI've tried to implement the core features of Hacker News while creating a full-stack application.\n\n## Credits\n\n- [Build a HackerNews Clone](https://www.youtube.com/watch?v=eHbO5OWBBpg\u0026t=2273s)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarekzelinka%2Fbetternews","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarekzelinka%2Fbetternews","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarekzelinka%2Fbetternews/lists"}