{"id":18084917,"url":"https://github.com/coderofsalvation/sheetlabs-google-restproxy","last_synced_at":"2025-04-12T20:10:09.787Z","repository":{"id":20251948,"uuid":"23524673","full_name":"coderofsalvation/sheetlabs-google-restproxy","owner":"coderofsalvation","description":"gscript + nodejs rest-proxy which turn a google spreadsheet in sheetlabs.com into a full REST api","archived":false,"fork":false,"pushed_at":"2020-05-28T19:26:07.000Z","size":454,"stargazers_count":4,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-12T20:10:04.281Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coderofsalvation.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"custom":"https://gumroad.com/l/hGYGh"}},"created_at":"2014-08-31T22:42:27.000Z","updated_at":"2020-05-28T19:25:33.000Z","dependencies_parsed_at":"2022-09-19T16:50:34.375Z","dependency_job_id":null,"html_url":"https://github.com/coderofsalvation/sheetlabs-google-restproxy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderofsalvation%2Fsheetlabs-google-restproxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderofsalvation%2Fsheetlabs-google-restproxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderofsalvation%2Fsheetlabs-google-restproxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderofsalvation%2Fsheetlabs-google-restproxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coderofsalvation","download_url":"https://codeload.github.com/coderofsalvation/sheetlabs-google-restproxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248625493,"owners_count":21135513,"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-31T15:08:37.697Z","updated_at":"2025-04-12T20:10:09.751Z","avatar_url":"https://github.com/coderofsalvation.png","language":"JavaScript","funding_links":["https://gumroad.com/l/hGYGh"],"categories":[],"sub_categories":[],"readme":"sheetlabs-google-restproxy\n==========================\n\ngscript + nodejs rest-proxy which turn a google spreadsheet in sheetlabs.com into a full REST api\n\n# Why?\n\nSheetlabs is a publish-only platform when it comes to spreadsheets.\nIt works really nice, and focuses on generating GET-api's.\nIf you want a full fledged REST service (POST/PUT/DELETE), one needs to get funky..and I think I just did.\n\n# How?\n\nBy putting this nodejs application (a REST-proxy) in front of your sheetlabs api, you can \nreroute PUT/POST/DELETE-calls to a gscript which is connected to your spreadsheet.\nFrom there you can decide what to do with those requests.\n\u003cbr\u003e\n\u003cbr\u003e\n\u003cimg alt=\"\" src=\".res/how.png\"/\u003e\n\n# Installation\n\nfirst create a spreadsheet with tabs 'Sheet1' and 'Incoming' like so:\n\n\u003cimg alt=\"\" src=\".res/ghowto1.png\"/\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\u003cimg alt=\"\" src=\".res/ghowto2.png\"/\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n* click 'Tools' \u003e 'Script Editor' and copy/paste the contents of 'script.gs' into the Editor\n* follow the instructions which are written in top of the script\n* click 'Publish' \u003e 'Deploy as webapp' and copy/paste the app-url \n\u003cbr\u003e\u003cbr\u003e\nNow turn this spreadsheet into an api at sheetlabs.com, this eventually will give you an api-url.\n\u003cbr\u003e\n\u003cbr\u003e\n\nthen clone this repo\n\n    $ cd sheetlabs-google-restproxy\n    $ vi app.js \n    (copy/paste the google appurl into the 'resturl' variable)\n    (copy/paste the sheetapi.com api-url into the 'sheetlaburl' variable  )\n    $ node app.js \n\nNow do some requests \n\n\u003cimg alt=\"\" src=\".res/requests.png\"/\u003e\n\nAnd you should end up seeing something like this:\n\n\u003cimg alt=\"\" src=\".res/gresult.png\"/\u003e\n\n# Notes \n\n* Google gscript/spreadsheet api is slooowwww..not recommended for highvolume traffic\n\nthe google appscript is currently configured to route POST-request into the 'Sheet1'-tab, and the PUT/DELETE into 'Incoming. This is for example purposes only, you can modify it to your likings.\n\nUltimate solution would be if sheetlabs would allow PUT/DELETE/POST-hooks like so:\n\n\u003cimg src=\".res/hooks.png\"/\u003e\n\nBy doing so, one would not need this kind of proxysolution, and every call would immediately benefit from \nthe sheetlab usermanagement/auth-features.\nWho knows this will happen at some point.\n\n# Todo\n\n* ensure proper forwarding of GET-filters\n* forward the authentication tokens somehow. Sheetlabs has perfect usermanagement with roles e.g., so it\nwould not be smart to re-invent that wheel.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderofsalvation%2Fsheetlabs-google-restproxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoderofsalvation%2Fsheetlabs-google-restproxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderofsalvation%2Fsheetlabs-google-restproxy/lists"}