{"id":22484428,"url":"https://github.com/platform-kit/server","last_synced_at":"2025-08-02T17:32:45.550Z","repository":{"id":49762914,"uuid":"372763602","full_name":"platform-kit/server","owner":"platform-kit","description":"Self-Hosted Serverless Infrastructure","archived":false,"fork":false,"pushed_at":"2022-07-26T08:02:45.000Z","size":660,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-03-02T23:47:23.113Z","etag":null,"topics":["api","express","lambda","node","serverless","static-site-genrator","typescript"],"latest_commit_sha":null,"homepage":"https://www.platformkit.com","language":"HTML","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/platform-kit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-01T08:53:16.000Z","updated_at":"2022-07-26T08:51:53.000Z","dependencies_parsed_at":"2022-09-22T05:33:14.474Z","dependency_job_id":null,"html_url":"https://github.com/platform-kit/server","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/platform-kit%2Fserver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/platform-kit%2Fserver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/platform-kit%2Fserver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/platform-kit%2Fserver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/platform-kit","download_url":"https://codeload.github.com/platform-kit/server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228499946,"owners_count":17929978,"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":["api","express","lambda","node","serverless","static-site-genrator","typescript"],"created_at":"2024-12-06T17:10:59.217Z","updated_at":"2024-12-06T17:11:39.146Z","avatar_url":"https://github.com/platform-kit.png","language":"HTML","readme":"\u003ch1 align=\"center\"\u003ePlatformKit Server\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\nSelf-Hosted Serverless Infrastructure\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003eDeploy serverless functions \u0026 static site generators via Express on any cloud platform.\u003c/p\u003e\n\n**Built with:** \u003cbr\u003e\n\n\u003cp float=\"left\"\u003e\n\u003cimg src=\"https://img.shields.io/badge/Node.js-ebf5fb?style=for-the-badge\u0026logo=nodedotjs\"/\u003e\n\u003cimg src=\"https://img.shields.io/badge/Express.js-ebf5fb?style=for-the-badge\u0026logo=express\u0026logoColor=000\" /\u003e\n \u003cimg src=\"https://img.shields.io/badge/Lambda-ebf5fb?style=for-the-badge\u0026logo=awslambda\u0026logoColor=000\" /\u003e \n\u003c/p\u003e\n\n**Deploy with:** \u003cbr\u003e \n\u003cp float=\"left\"\u003e\n\u003cimg src=\"https://img.shields.io/badge/Heroku-430098?style=for-the-badge\u0026logo=heroku\u0026logoColor=white\"/\u003e \u003cimg src=\"https://img.shields.io/badge/Digital_Ocean-0080FF?style=for-the-badge\u0026logo=DigitalOcean\u0026logoColor=white\" /\u003e \u003cimg src=\"https://img.shields.io/badge/Render-46E3B7?style=for-the-badge\u0026logo=Render\u0026logoColor=white\"/\u003e \u003cimg src=\"https://img.shields.io/badge/Lambda-orange?style=for-the-badge\u0026logo=awslambda\u0026logoColor=white\" /\u003e \u003cimg src=\"https://img.shields.io/badge/Serverless-FD5750?style=for-the-badge\u0026logo=serverless\u0026logoColor=white\" /\u003e\n\u003c/p\u003e\n\n**License:** \u003cbr\u003e \u003cimg src=\"https://img.shields.io/badge/License-000000?style=for-the-badge\"/\u003e\u003cimg src=\"https://img.shields.io/badge/MIT-222?style=for-the-badge\u0026logoColor=white\"/\u003e\n\n## Features\n\n- Deploy **static site generator** with custom build commands.\n- Deploy **serverless functions** on any major cloud provider.\n- Deploy a **PostgreSQL database** with zero config.\n\n## Benefits\n- Prevents vendor lock-in (easily move to/from hosting platforms).\n- Deploy your front-end, back-end, and database in one step.\n- Predictable billing + configurable auto-scaling.\n- Scale via serverless functions when necessary.\n\n## Local Development\n\nClone the project\n\n```bash\n  git clone https://github.com/platform-kit/server pk-server\n```\n\nGo to the project directory\n\n```bash\n  cd pk-server\n```\n\nInstall dependencies\n\n```bash\n  npm install \u0026\u0026 npm run pull \u0026\u0026 npm run build-functions \u0026\u0026 npm run build\n```\n\nStart the server\n\n```bash\n  npm run dev\n```\n\nA local instance is now running at `https://localhost:3000`\n\n## Configuration\n\nBefore use, you will need to add the following environment variables to your .env file\n\nThe `GITHUB_REPOSITORY` variable is the repo containing your static site generator.\n\nThe `BUILD_COMMAND` is the command that is used to install/run your site generator.\n\nThe `PUBLIC_DIRECTORY` variable specifies which directory to serve.\n\nThe `GITHUB_TOKEN` is only necessary if your repo is private.\n\nThe `PORT` is 3000 by default, change it if 3000 is taken.\n\n```\n# GitHub\nGITHUB_REPOSITORY=platform-kit/platformkit-ui\nGITHUB_TOKEN=STRING\n\n# Static Site Generator\nBUILD_COMMAND=npm i; npm run build;\nPUBLIC_DIRECTORY=dist\n```\n\n\n## Deployment\n\nTo deploy to the cloud, simply click one of the buttons below.\n\n\u003ca href=\"https://heroku.com/deploy?template=https://github.com/platform-kit/server\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/badge/Deploy%20to%20Heroku→-430098?style=for-the-badge\u0026logo=heroku\u0026logoColor=white\"/\u003e\u003c/a\u003e \u003ca href=\"https://cloud.digitalocean.com/apps/new?repo=https://github.com/platform-kit/server/tree/main\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/badge/Deploy%20to%20Digital_Ocean→-0080FF?style=for-the-badge\u0026logo=DigitalOcean\u0026logoColor=white\" /\u003e \u003c/a\u003e \u003ca href=\"https://render.com/deploy?repo=https://github.com/platform-kit/server\" target=\"_blank\"\u003e \u003cimg src=\"https://img.shields.io/badge/Deploy%20to%20Render→-46E3B7?style=for-the-badge\u0026logo=Render\u0026logoColor=fff\"/\u003e \u003c/a\u003e ","funding_links":[],"categories":["HTML"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplatform-kit%2Fserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplatform-kit%2Fserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplatform-kit%2Fserver/lists"}