{"id":13687696,"url":"https://github.com/srid/spas","last_synced_at":"2025-03-22T23:32:38.324Z","repository":{"id":32413213,"uuid":"35990133","full_name":"srid/spas","owner":"srid","description":"Single-page application server using PostgREST and more","archived":false,"fork":false,"pushed_at":"2015-06-21T02:13:04.000Z","size":228,"stargazers_count":32,"open_issues_count":4,"forks_count":2,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-01T19:39:15.594Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Haskell","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/srid.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-21T04:03:29.000Z","updated_at":"2023-08-22T14:19:34.000Z","dependencies_parsed_at":"2022-08-23T03:30:55.993Z","dependency_job_id":null,"html_url":"https://github.com/srid/spas","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srid%2Fspas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srid%2Fspas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srid%2Fspas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srid%2Fspas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/srid","download_url":"https://codeload.github.com/srid/spas/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244250940,"owners_count":20423248,"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-08-02T15:00:58.929Z","updated_at":"2025-03-22T23:32:38.080Z","avatar_url":"https://github.com/srid.png","language":"Haskell","funding_links":[],"categories":["Haskell"],"sub_categories":[],"readme":"# spas\n\n`spas` is a server sitting in between your SPA (single-page application) and PostgreSQL database. It provides an auto-generated REST API for the PostgreSQL data using PostgREST.\n\n![](https://upload.wikimedia.org/wikipedia/commons/thumb/0/09/SPAS-12_stock_folded.jpg/450px-SPAS-12_stock_folded.jpg)\n\n## Basic idea\n\n* Create a thin server wrapping [PostgREST](https://github.com/begriffs/postgrest) with these additional features:\n* Static file serving\n* Authentication (using basic auth for now)\n\n## Getting started\n\n```\n$ export SPAS_USERNAME=myname\n$ export SPAS_PASSWORD=mypassword\n$ export DATABASE_URL=postgres://...  # also provided by Heroku\n$ export PORT=4000\n$ cd /path/to/static/files \u0026\u0026 spas\n...\n```\n\nSee https://github.com/srid/chronicle for an Elm application that uses spas.\n\n## Background\n\nMailing discussion: https://groups.google.com/forum/#!topic/elm-discuss/6kyabQgUMJk\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrid%2Fspas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsrid%2Fspas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrid%2Fspas/lists"}