{"id":16095839,"url":"https://github.com/zeusdeux/get-now-json","last_synced_at":"2025-10-17T21:35:42.828Z","repository":{"id":149116618,"uuid":"162930170","full_name":"zeusdeux/get-now-json","owner":"zeusdeux","description":"An endpoint that returns a now.json file based on passed query params.","archived":false,"fork":false,"pushed_at":"2018-12-27T23:27:08.000Z","size":71,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T14:56:41.417Z","etag":null,"topics":["lambda","now","serverless","typescript","zeit","zeit-now"],"latest_commit_sha":null,"homepage":"https://now-json.zdx.cat","language":"TypeScript","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/zeusdeux.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}},"created_at":"2018-12-23T23:08:36.000Z","updated_at":"2018-12-27T23:27:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"78f26778-aefa-4c84-b696-3ec178cb7dba","html_url":"https://github.com/zeusdeux/get-now-json","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"7c308df36042fbaa40862a202a45156f8746baf3"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeusdeux%2Fget-now-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeusdeux%2Fget-now-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeusdeux%2Fget-now-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeusdeux%2Fget-now-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zeusdeux","download_url":"https://codeload.github.com/zeusdeux/get-now-json/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247393573,"owners_count":20931813,"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":["lambda","now","serverless","typescript","zeit","zeit-now"],"created_at":"2024-10-09T17:09:10.370Z","updated_at":"2025-10-17T21:35:37.781Z","avatar_url":"https://github.com/zeusdeux.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# get-now-json\n\nAn endpoint that returns a now.json file based on passed query params.\n\n## Motivation\n\nI wanted to setup some tooling for myself that makes it easy for me to scaffold out projects deployable to [zeit](https://zeit.co).\nThis lambda powers a set in that tooling.\n\n## Usage\n\nAny [supported now.json config property](https://zeit.co/docs/v2/deployments/configuration/) can be passed as a query param with a value.\n\nThe `version` property is always set to `2` by default and can be overriden by a `version` query parameter.\n\n### Important note\n\nThis project does **NO** validation of the json it outputs. That is delegated to the `now` CLI and occurs when it tries to consume the generated json config in the context of _your_ project.\n\n### Examples\n\n```curl\ncurl \"https://now-json.zdx.cat\" # returns { \"version\": 2, \"public\": false }\ncurl \"https://now-json.zdx.cat?name=my-project\" # returns { \"version\": 2, \"public\": false, \"name\": \"my-project\"}\n\n# returns the builds object wrapped in an array as expected by `now` cli\ncurl 'https://now-json.zdx.cat?name=my-project\u0026builds=\\{\"src\": \"a.js\", \"use\": \"@now/node\"\\}'\n\n# these two return the same object with a builds array\ncurl 'https://now-json.zdx.cat?name=my-project\u0026builds=\\{\"src\": \"a.js\", \"use\": \"@now/node\"\\}\u0026builds=\\{\"src\": \"index.html\", \"use\": \"@now/static\"\\}'\ncurl 'https://now-json.zdx.cat?name=my-project\u0026builds=\\[\\{\"src\": \"a.js\", \"use\": \"@now/node\"\\},\\{\"src\": \"index.html\", \"use\": \"@now/static\"\\}\\]'\n```\n\nor if you want to try it in the browser, [click me!](https://now-json.zdx.cat/?name=my-project\u0026builds={%22src%22:%20%22a.js%22,%20%22use%22:%20%22@now/node%22}\u0026builds={%22src%22:%20%22index.html%22,%20%22use%22:%20%22@now/static%22})\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeusdeux%2Fget-now-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzeusdeux%2Fget-now-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeusdeux%2Fget-now-json/lists"}