{"id":28578272,"url":"https://github.com/digitalocean/sample-functions-typescript-helloworld","last_synced_at":"2025-10-26T02:08:43.056Z","repository":{"id":169148900,"uuid":"459142354","full_name":"digitalocean/sample-functions-typescript-helloworld","owner":"digitalocean","description":null,"archived":false,"fork":false,"pushed_at":"2023-05-24T19:34:31.000Z","size":4,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-06-11T01:09:26.064Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/digitalocean.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,"zenodo":null}},"created_at":"2022-02-14T11:54:45.000Z","updated_at":"2024-07-15T21:43:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"183f00ba-c0ce-444c-b6b9-c1a64545df62","html_url":"https://github.com/digitalocean/sample-functions-typescript-helloworld","commit_stats":null,"previous_names":["digitalocean/sample-functions-typescript-helloworld"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/digitalocean/sample-functions-typescript-helloworld","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalocean%2Fsample-functions-typescript-helloworld","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalocean%2Fsample-functions-typescript-helloworld/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalocean%2Fsample-functions-typescript-helloworld/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalocean%2Fsample-functions-typescript-helloworld/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/digitalocean","download_url":"https://codeload.github.com/digitalocean/sample-functions-typescript-helloworld/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalocean%2Fsample-functions-typescript-helloworld/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281047743,"owners_count":26435124,"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-10-26T02:00:06.575Z","response_time":61,"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":"2025-06-11T01:09:23.049Z","updated_at":"2025-10-26T02:08:43.050Z","avatar_url":"https://github.com/digitalocean.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sample Function: TypeScript \"Hello World\"\n\n## Introduction\n\nThis repository contains a sample \"Hello World\" function written in TypeScript. You can deploy it on DigitalOcean's App Platform as a Serverless Function component or as a standalone Function. Documentation is available at https://docs.digitalocean.com/products/functions.\n\n### Requirements\n\n* You need a DigitalOcean account. If you don't already have one, you can sign up at [https://cloud.digitalocean.com/registrations/new](https://cloud.digitalocean.com/registrations/new).\n* To deploy from the command line, you will need the [DigitalOcean `doctl` CLI](https://github.com/digitalocean/doctl/releases).\n\n## Deploying the Function\n\n```bash\n# clone this repo\ngit clone git@github.com:digitalocean/sample-functions-typescript-helloworld.git\n```\n\n```\n# deploy the project, using a remote build so that compiled executable matched runtime environment\n\u003e doctl serverless deploy sample-functions-typescript-helloworld --remote-build\nDeploying 'sample-functions-typescript-helloworld'\n  to namespace 'fn-...'\n  on host 'https://faas-...'\nSubmitted action 'hello' for remote building and deployment in runtime typescript:default (id: ...)\n\nDeployed functions ('doctl sls fn get \u003cfuncName\u003e --url' for URL):\n  - sample/hello\n```\n\n## Using the Function\n\n### `doctl` CLI\n```bash\ndoctl serverless functions invoke sample/hello\n```\n```json\n{\n  \"body\": \"Hello stranger!\"\n}\n```\n\n### `doctl` CLI with a request Body\n```bash\ndoctl serverless functions invoke sample/hello -p name:Sammy\n```\n```json\n{\n  \"body\": \"Hello Sammy!\"\n}\n```\n\n### `curl`\n```bash\ncurl $(doctl sls fn get sample/hello --url)\n```\n```\nHello stranger!\n```\n\n💡 The output above is not in json format because it's performing an HTTP get directly and the body of the function does not return a json object, but a plain string.\n\n### Learn More\n\nYou can learn more about Functions and App Platform integration in [the official App Platform Documentation](https://www.digitalocean.com/docs/app-platform/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitalocean%2Fsample-functions-typescript-helloworld","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigitalocean%2Fsample-functions-typescript-helloworld","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitalocean%2Fsample-functions-typescript-helloworld/lists"}