{"id":20314615,"url":"https://github.com/dashpilot/vercel-serverless-backend","last_synced_at":"2025-08-01T21:02:50.005Z","repository":{"id":135256854,"uuid":"328850468","full_name":"dashpilot/vercel-serverless-backend","owner":"dashpilot","description":"Save data to S3 or Github straight from your front-end app using Vercel functions! Authentication via Google Firebase.","archived":false,"fork":false,"pushed_at":"2023-02-04T12:03:00.000Z","size":45,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-04T08:45:19.049Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/dashpilot.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":"2021-01-12T02:34:04.000Z","updated_at":"2023-02-04T12:03:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"05a623e2-16d1-4795-82fc-8c8cd1d68092","html_url":"https://github.com/dashpilot/vercel-serverless-backend","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dashpilot/vercel-serverless-backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashpilot%2Fvercel-serverless-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashpilot%2Fvercel-serverless-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashpilot%2Fvercel-serverless-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashpilot%2Fvercel-serverless-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dashpilot","download_url":"https://codeload.github.com/dashpilot/vercel-serverless-backend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashpilot%2Fvercel-serverless-backend/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268296951,"owners_count":24228119,"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-01T02:00:08.611Z","response_time":67,"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":[],"created_at":"2024-11-14T18:16:04.354Z","updated_at":"2025-08-01T21:02:49.975Z","avatar_url":"https://github.com/dashpilot.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vercel Serverless Backend for S3 or Github\n\nSave data to S3 or Github straight from your front-end app using Vercel functions!\n\nThis project provides a unified api to communicate with any S3-compatible storage (e.g. Amazon S3, Digitalocean Spaces, Linode Object Storage, etc) or a Github repo. It currently uses Firebase Auth for authentication but can easily be adapted to your preferred auth system\n\n# How To\n\n1.  Clone this repo and deploy to Vercel\n2.  Set the following environment variables in Vercel:\n\n### For use with S3-compatible storage:\nS3_ENDPOINT: the endpoint of your S3-compatible storage (e.g. eu-central-1.linodeobjects.com)\\\nS3_BUCKET: your bucket\\\nS3_KEY: your S3 key\\\nS3_SECRET: your S3 secret\n\n### For use with a Github repo\nGH_OWNER: Github username\\\nGH_REPO: Github repo\\\nGH_TOKEN: Github token\n\n3. Set the Firebase config in public/js/firebase.js to match your Firebase account\n4. Visit index.html to check out the demos\n\n# Api\n\n### Saving Data\nTo save data from your front-end app, just call:\n\n`setData(service, path, type, content)`\n\n`service`: either 's3' or 'github', depending on which backend storage you want to use\\\n`path`: path to the file you want to save, e.g. `data.json` or `myimage.jpg`\\\n`type`: type of data, e.g. `json` or `img`\\\n`content`: the data\n\n\n### Fetching data\nTo fetch data, just call:\n\n`getData(service, path)`\n\n`service`: either 's3' or 'github', depending on which backend storage you want to use\\\n`path`: path to the file you want to save, e.g. `data.json` or `myimage.jpg`\\\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdashpilot%2Fvercel-serverless-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdashpilot%2Fvercel-serverless-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdashpilot%2Fvercel-serverless-backend/lists"}