{"id":28933905,"url":"https://github.com/rinpatch/spearline","last_synced_at":"2025-07-15T14:02:18.873Z","repository":{"id":300464729,"uuid":"1005554264","full_name":"rinpatch/spearline","owner":"rinpatch","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-21T20:43:10.000Z","size":1080,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-21T21:30:42.684Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://imaginehack-2025.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/rinpatch.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-06-20T12:11:59.000Z","updated_at":"2025-06-21T20:43:13.000Z","dependencies_parsed_at":"2025-06-21T21:41:46.313Z","dependency_job_id":null,"html_url":"https://github.com/rinpatch/spearline","commit_stats":null,"previous_names":["rinpatch/spearline"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rinpatch/spearline","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rinpatch%2Fspearline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rinpatch%2Fspearline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rinpatch%2Fspearline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rinpatch%2Fspearline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rinpatch","download_url":"https://codeload.github.com/rinpatch/spearline/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rinpatch%2Fspearline/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265437770,"owners_count":23765130,"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-22T18:11:11.424Z","updated_at":"2025-07-15T14:02:18.832Z","avatar_url":"https://github.com/rinpatch.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spearline  - Piercing Bias. Truth in the Line.\n\n![spearline logo](./public/spearline-logo.png)\n\nSpearline is an AI-powered Malaysian news aggregator designed to uncover media bias.\n\nWe bring together news from across languages — Malay, English, and Chinese — and use AI to summarize each article and identify its ideological leanings, such as Pro-Government, Pro-Islam, or Opposition-aligned.\n\n## Team\nThis project is done by Nott-A-Hackers team for Taylor's Univeristy ImagineHack 2025 Hackathon. The team members are:\n- [@rinpatch](https://github.com/rinpatch)\n- [@Mint3Ds](https://github.com/Mint3Ds)\n- [mithileshtew0702](https://github.com/mithileshtew0702)\n- [@Yoonjae7](https://github.com/Yoonjae7)\n- [Pyjalal](https://github.com/Pyjalal)\n\n## Technologies Used\n- Next.js (FE/BE)\n- Vercel (Deploy)\n- Supabase (Postgres Database to store articles/embeddings)\n- Qstash (Job queue for news scraping/processing)\n- Upstash Redis (In-Memory cache, we just use it to keep track of recently processed articles to not reprocess them)\n- Openrouter (Unified LLM API allowing for easy switching of models, we currently use gemini-2.0-flash for everything due to good cost-to-benefit)\n- OpenAI embeddings API (used to transform news text into number vectors, which we can compare for similarity in order to \"cluster\" articles about same topic into one story)\n\n## Deploying\n\nDeploy in a [Vercel](https://vercel.com) project with QStash, Supabase and Upstash Redis connected. Set the following evironment variables:\n- `APP_BASE_URL`: prod url that QStash cron will query (i.e https://spearline.vercel.app/).\n- `OPENROUTER_API_KEY`: OpenRouter API key to be used for analysis as well as summary/title generation.\n- `OPENAI_API_KEY`: OpenAI API key, will only be used for text embeddings.\n\n## Challenge and Approach\n\n### Problem\nMalaysia's news media is deeply fragmented along ethnic, linguistic, and political lines. A single news story can be interpreted in completely different ways depending on whether the reader views it in Malay, Chinese, or English — and from which outlet.\n\n### Our Approach\nSpearline tackles this problem by using AI to detect and visualize ideological bias in news articles across multiple Malaysian media sources. We built an aggregator platform that:\n- Collects news articles from different language-based sources\n- Uses an LLM (via OpenRouter) to summarize articles and classify bias (e.g., Pro-Government, Pro-Opposition, Pro-Malay, etc.)\n- Displays these biases in a clean, percentage-based breakdown per article\n- Offers users different perspectives side by side, helping them see beyond their media bubble\n\n**The goal**: Make media bias transparent, and empower Malaysians to think critically about what they read.\n\n## Features\n- **AI-Powered Bias Detection**: Uses advanced LLM technology to classify ideological leanings\n- **Visual Bias Breakdown**: Clean percentage-based visualization of detected biases\n- **Side-by-Side Comparison**: Compare different perspectives on the same story\n- **Real-time Analysis**: Live processing of news articles as they're published\n\n## Usage Instructions\nVisit: [https://spearline.vercel.app]\n\n## AI Usage\n\nIn accordance with hackathon rules, we have utilized Cursor editor for help with most modules of this project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frinpatch%2Fspearline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frinpatch%2Fspearline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frinpatch%2Fspearline/lists"}