{"id":23141648,"url":"https://github.com/zekrotja/sharex-backend","last_synced_at":"2026-04-11T08:04:50.192Z","repository":{"id":160112808,"uuid":"634065887","full_name":"zekroTJA/sharex-backend","owner":"zekroTJA","description":"My private and very much over engineered, 100% serverless and (almost) completely free ShareX image sharing backend.","archived":false,"fork":false,"pushed_at":"2023-05-01T22:23:16.000Z","size":47,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-08T05:45:35.399Z","etag":null,"topics":["rust","serverless","sharex","vercel"],"latest_commit_sha":null,"homepage":"https://imgupload-blush.vercel.app","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zekroTJA.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-04-29T00:20:27.000Z","updated_at":"2023-11-15T01:34:55.000Z","dependencies_parsed_at":"2023-07-17T20:18:38.177Z","dependency_job_id":null,"html_url":"https://github.com/zekroTJA/sharex-backend","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zekroTJA/sharex-backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zekroTJA%2Fsharex-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zekroTJA%2Fsharex-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zekroTJA%2Fsharex-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zekroTJA%2Fsharex-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zekroTJA","download_url":"https://codeload.github.com/zekroTJA/sharex-backend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zekroTJA%2Fsharex-backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270817075,"owners_count":24650924,"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-08-17T02:00:09.016Z","response_time":129,"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":["rust","serverless","sharex","vercel"],"created_at":"2024-12-17T14:14:07.389Z","updated_at":"2026-04-11T08:04:50.137Z","avatar_url":"https://github.com/zekroTJA.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sharex-backend\n\nMy private and very much over engineered, 100% serverless and (almost) completely free [ShareX](https://getsharex.com) image sharing backend.\n\n## Structure\n\nThe backend consists of Vercel serverless functions written in Rust (see [handler](handler/) crate) to authenticate and upload, retrieve, list and manage images. The authentication is done via the [OpenID Connect](https://openid.net/connect) flow. In this case, Auth0 is used as authentication server and identity provider. Images are stored in a S3 bucket on Contabo and persistent information like user-to-image links are stored in a Postgres database, in this case hosted on Supabase. To reduce load on the `GET i.zekro.de/:image_id` endpoint, CloudFront is used as proxy cache in front of Vercel functions.\n\n```mermaid\nflowchart TD\n    ApiEntryPoint([api.i.zekro.de])\n    ImageEntryPoint([i.zekro.de])\n    Cache[CloudFront]\n    Functions[Vercel Functions]\n    DB[Supabase PG]\n    S3[Contabo S3]\n\n    ImageEntryPoint \u003c--\u003e  Cache\n    ApiEntryPoint   \u003c---\u003e Functions\n    Cache           \u003c--\u003e  Functions\n    Functions       \u003c--\u003e  DB\n    Functions       \u003c--\u003e  S3\n```\n\n## Motivation\n\nThis project is primarily created to learn more about serverless software architecture - especially with Rust, authentication via OAuth2 and OpenID Connect and proxy caching via AWS Cloudfront.\n\n## Todo\n\nBecause this project is currently WIP, some features are still missing but planned.\n\n### Authentication\n\n- [x] Login via OAuth2 + OpenID Connect\n- [x] Authentication in serverless fucntions\n- [ ] Creating API tokens for authentication\n- [ ] Using API tokens for authentication\n\n### Images\n\n- [x] Upload images\n- [x] Retrieve images\n- [x] List users images\n- [x] Delete images\n\n### Web UI\n\n- [ ] Web UI to list, view and manage images","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzekrotja%2Fsharex-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzekrotja%2Fsharex-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzekrotja%2Fsharex-backend/lists"}