{"id":16649927,"url":"https://github.com/datamine/glupper","last_synced_at":"2025-12-26T11:54:20.497Z","repository":{"id":281792116,"uuid":"946274431","full_name":"Datamine/Glupper","owner":"Datamine","description":"glupper.com source code","archived":false,"fork":false,"pushed_at":"2025-03-11T06:15:32.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-11T07:25:05.360Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/Datamine.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":"2025-03-10T22:15:28.000Z","updated_at":"2025-03-11T06:15:35.000Z","dependencies_parsed_at":"2025-03-11T07:25:11.411Z","dependency_job_id":"adf64580-eb4e-4bd5-b443-d90a8ee8df6e","html_url":"https://github.com/Datamine/Glupper","commit_stats":null,"previous_names":["datamine/glupper"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Datamine%2FGlupper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Datamine%2FGlupper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Datamine%2FGlupper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Datamine%2FGlupper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Datamine","download_url":"https://codeload.github.com/Datamine/Glupper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243224584,"owners_count":20256730,"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":"2024-10-12T09:14:18.575Z","updated_at":"2025-12-26T11:54:20.456Z","avatar_url":"https://github.com/Datamine.png","language":"Python","readme":"# Glupper\n\nHigh-performance Twitter-like backend built with Python, FastAPI, and PostgreSQL.\n\n## Features\n\n- **High-performance architecture**\n  - FastAPI for asynchronous API endpoints\n  - PostgreSQL with optimized queries and indexes\n  - Redis for caching frequently accessed data\n  - Cursor-based pagination for optimal performance\n\n- **Core functionality**\n  - User authentication with JWT\n  - Posts, comments, likes, and reposts\n  - Follow/unfollow users\n  - Home timeline feed\n  - Explore/trending feed algorithm\n  - Trending topics\n\n- **Technical highlights**\n  - Asynchronous database access with `asyncpg`\n  - Efficient caching strategy with `redis`\n  - Well-structured modular architecture\n  - Type hints throughout for better reliability\n\n## Getting Started\n\n### Prerequisites\n\n- Python 3.12+\n- PostgreSQL\n- Redis (optional but recommended for performance)\n- `uv` package manager (faster alternative to pip)\n\n### Installation\n\n1. Clone this repository:\n   ```\n   git clone https://github.com/yourusername/glupper.git\n   cd glupper\n   ```\n\n2. Install dependencies with `uv`:\n   ```\n   uv sync\n   ```\n\n3. Set up environment variables (or create a `.env` file):\n   ```\n   export DATABASE_URL=postgresql://postgres:postgres@localhost/glupper\n   export REDIS_URL=redis://localhost:6379/0\n   export SECRET_KEY=your_secret_key_here\n   ```\n\n4. Run the application:\n   ```\n   python run.py\n   ```\n\n5. Access the API documentation at http://localhost:8000/docs\n\n## Project Structure\n\n```\nglupper/\n├── app/\n│   ├── api/           # API endpoints\n│   ├── core/          # Core functionality (auth, db, cache)\n│   ├── models/        # Data models\n│   ├── schemas/       # API schemas (request/response)\n│   ├── services/      # Business logic\n│   └── main.py        # FastAPI application\n```\n\n## API Endpoints\n\nThe API is divided into several sections:\n\n- `/auth` - Authentication endpoints (register, login)\n- `/users` - User management (profile, followers, following)\n- `/posts` - Post operations (create, comment, like, repost)\n- `/feed` - Feed algorithms (home timeline, explore, trending)\n\n## Performance Optimizations\n\n- Efficient database queries with proper indexing\n- Redis caching for timeline, post data, and user profiles\n- Cursor-based pagination for scalable timeline fetching\n- Optimized timeline algorithm for feed generation\n- Connection pooling for database and cache connections\n\n## Future Enhancements\n\n- Full-text search for posts and users\n- Media upload and processing\n- Notifications system\n- Direct messaging\n- Analytics and metrics\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatamine%2Fglupper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatamine%2Fglupper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatamine%2Fglupper/lists"}