{"id":28965906,"url":"https://github.com/devflowinc/trieve-hn-comparison","last_synced_at":"2025-06-24T07:10:34.314Z","repository":{"id":250831466,"uuid":"835604005","full_name":"devflowinc/trieve-hn-comparison","owner":"devflowinc","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-12T22:00:03.000Z","size":282,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-22T05:17:06.754Z","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/devflowinc.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-07-30T07:06:08.000Z","updated_at":"2024-08-12T22:00:06.000Z","dependencies_parsed_at":"2024-08-09T05:51:21.271Z","dependency_job_id":null,"html_url":"https://github.com/devflowinc/trieve-hn-comparison","commit_stats":null,"previous_names":["devflowinc/trieve-hn-comparison"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/devflowinc/trieve-hn-comparison","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devflowinc%2Ftrieve-hn-comparison","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devflowinc%2Ftrieve-hn-comparison/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devflowinc%2Ftrieve-hn-comparison/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devflowinc%2Ftrieve-hn-comparison/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devflowinc","download_url":"https://codeload.github.com/devflowinc/trieve-hn-comparison/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devflowinc%2Ftrieve-hn-comparison/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261624969,"owners_count":23186121,"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":"2025-06-24T07:10:33.606Z","updated_at":"2025-06-24T07:10:34.288Z","avatar_url":"https://github.com/devflowinc.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HackerNews Blind Relevance Strategy Comparison Poll\n\nThis project is a web application that compares search results from two different search engines (Trieve and Algolia) for Hacker News content. Users can perform searches, view results side by side, and log their preferences between the two search engines.\n\n## Features\n\n- Dual search engine comparison\n- Side-by-side result display\n- User preference logging to PostgreSQL database\n- Server Actions for backend operations\n- Responsive design\n\n## Technologies Used\n\n- Next.js 13+\n- React\n- TypeScript\n- PostgreSQL\n- TanStack Query (React Query)\n- Tailwind CSS\n- Zod for validation\n\n## Prerequisites\n\nBefore you begin, ensure you have met the following requirements:\n\n- Node.js (v14 or later)\n- npm or yarn\n- PostgreSQL database\n\n## Installation\n\n1. Clone the repository:\n   ```\n   git clone https://github.com/your-username/hn-search-comparison.git\n   cd hn-search-comparison\n   ```\n\n2. Install the dependencies:\n   ```\n   npm install\n   ```\n\n3. Set up your environment variables by creating a `.env.local` file in the root directory:\n   ```\n   DATABASE_URL=postgresql://username:password@localhost:5432/your_database_name\n   ```\n\n4. Set up your PostgreSQL database and create the necessary table:\n   ```sql\n   CREATE TABLE search_preferences (\n     id SERIAL PRIMARY KEY,\n     winner VARCHAR(10) NOT NULL,\n     query TEXT NOT NULL,\n     ip VARCHAR(45) NOT NULL,\n     created_at TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP\n   );\n   ```\n\n## Usage\n\nTo run the development server:\n\n```\nnpm run dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n\n## Project Structure\n\n```\nhn-search-comparison/\n│\n├── app/\n│   ├── actions.ts\n│   ├── layout.tsx\n│   └── page.tsx\n│\n├── components/\n│   └── search-comparison-form.tsx\n│\n├── lib/\n│   └── db.ts\n│\n├── public/\n│\n├── .env.local\n├── next.config.js\n├── package.json\n├── README.md\n└── tsconfig.json\n```\n\n## Contributing\n\nContributions to this project are welcome. Please follow these steps:\n\n1. Fork the repository\n2. Create a new branch: `git checkout -b feature-branch-name`\n3. Make your changes and commit them: `git commit -m 'Add some feature'`\n4. Push to the branch: `git push origin feature-branch-name`\n5. Create a pull request\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevflowinc%2Ftrieve-hn-comparison","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevflowinc%2Ftrieve-hn-comparison","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevflowinc%2Ftrieve-hn-comparison/lists"}