{"id":29481806,"url":"https://github.com/joeywhelan/serverless-js","last_synced_at":"2025-07-15T01:02:19.387Z","repository":{"id":297981134,"uuid":"998484333","full_name":"joeywhelan/serverless-js","owner":"joeywhelan","description":"Demo of Elastic Cloud Serverless REST API and Elastic JavaScript client usage.","archived":false,"fork":false,"pushed_at":"2025-06-08T18:22:37.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-08T18:37:03.690Z","etag":null,"topics":["axios","elasticsearch","javascript","nodejs","rest-api","serverless"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/joeywhelan.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,"zenodo":null}},"created_at":"2025-06-08T17:51:33.000Z","updated_at":"2025-06-08T18:22:40.000Z","dependencies_parsed_at":"2025-06-08T18:37:07.783Z","dependency_job_id":"68bb83e0-6d75-412e-a6e0-dc4a426c032a","html_url":"https://github.com/joeywhelan/serverless-js","commit_stats":null,"previous_names":["joeywhelan/serverless-js"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/joeywhelan/serverless-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeywhelan%2Fserverless-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeywhelan%2Fserverless-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeywhelan%2Fserverless-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeywhelan%2Fserverless-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joeywhelan","download_url":"https://codeload.github.com/joeywhelan/serverless-js/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeywhelan%2Fserverless-js/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265382044,"owners_count":23756283,"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":["axios","elasticsearch","javascript","nodejs","rest-api","serverless"],"created_at":"2025-07-15T01:01:25.347Z","updated_at":"2025-07-15T01:02:19.349Z","avatar_url":"https://github.com/joeywhelan.png","language":"JavaScript","readme":"# Elastic Serverless Demo\n## Contents\n1.  [Summary](#summary)\n2.  [Architecture](#architecture)\n3.  [Features](#features)\n4.  [Prerequisites](#prerequisites)\n5.  [Installation](#installation)\n6.  [Usage](#usage)\n\n## Summary \u003ca name=\"summary\"\u003e\u003c/a\u003e\nThis creates a deployment of Elasticsearch Serverless via API with use of the Elastic Javascript client library for a semantic search scenario.\n\n## Architecture \u003ca name=\"architecture\"\u003e\u003c/a\u003e\n![architecture](assets/Highlevel-arch.jpg)  \n\n## Features \u003ca name=\"features\"\u003e\u003c/a\u003e\n- Builds an Elastic Serverless project via REST API\n- Creates a client via the Javascript library\n- Performs the following steps with the Javascript client:\n    - Creates an Inference Endpoint to an Azure Openai embedding model\n    - Creates an index mapping corresponding to a dataset in this repo\n    - Bulk loads the included JSON lines dataset (1000 documents).  This Kaggle [dataset](https://www.kaggle.com/datasets/rmisra/news-category-dataset) was used.\n    - Performs a sample semantic search against this dataset\n- Deletes the Elastic Serverless project\n\n\n## Prerequisites \u003ca name=\"prerequisites\"\u003e\u003c/a\u003e\n- Elastic Cloud account and API key\n- Azure Openai resource and API key\n- node\n- npm\n\n## Installation \u003ca name=\"installation\"\u003e\u003c/a\u003e\n- Execute the command below\n```bash\ngit clone git@github.com:joeywhelan/serverless-js.git \u0026\u0026 cd serverless-js \u0026\u0026 npm install\n```\n- Rename the .env-template file to .env.  \n- Edit that .env file with your Elastic and Azure credentials.\n\n## Usage \u003ca name=\"usage\"\u003e\u003c/a\u003e\n```bash\nnpm start\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoeywhelan%2Fserverless-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoeywhelan%2Fserverless-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoeywhelan%2Fserverless-js/lists"}