{"id":28405631,"url":"https://github.com/hypermodeinc/hyper-commerce","last_synced_at":"2025-08-17T03:41:40.199Z","repository":{"id":250601268,"uuid":"834248635","full_name":"hypermodeinc/hyper-commerce","owner":"hypermodeinc","description":null,"archived":true,"fork":false,"pushed_at":"2025-06-01T18:07:12.000Z","size":3054,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-29T06:39:39.151Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://hypermode-commerce.com","language":"TypeScript","has_issues":false,"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/hypermodeinc.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":"2024-07-26T18:52:54.000Z","updated_at":"2025-06-02T02:44:51.000Z","dependencies_parsed_at":"2024-08-25T19:37:43.189Z","dependency_job_id":"af563df4-c1f1-40b3-8abf-fe994302ec4c","html_url":"https://github.com/hypermodeinc/hyper-commerce","commit_stats":null,"previous_names":["hypermodeai/hyper-commerce","hypermodeinc/hyper-commerce"],"tags_count":4,"template":true,"template_full_name":"hypermodeinc/base-template","purl":"pkg:github/hypermodeinc/hyper-commerce","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypermodeinc%2Fhyper-commerce","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypermodeinc%2Fhyper-commerce/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypermodeinc%2Fhyper-commerce/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypermodeinc%2Fhyper-commerce/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hypermodeinc","download_url":"https://codeload.github.com/hypermodeinc/hyper-commerce/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypermodeinc%2Fhyper-commerce/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270803531,"owners_count":24648688,"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-08-17T02:00:09.016Z","response_time":129,"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-01T21:37:28.919Z","updated_at":"2025-08-17T03:41:40.152Z","avatar_url":"https://github.com/hypermodeinc.png","language":"TypeScript","readme":"# Hyper-Commerce\n\nComposable-commerce storefront demo to show off the performance of Hypermode's vector search.\n\nExample site: \n\n[hypermode-commerce.com](https://hypermode-commerce.com)\n\nExplainer Video:\n\n[![Hypermode Demo](https://img.youtube.com/vi/Me4YjNzR-cg/0.jpg)](https://www.youtube.com/watch?v=Me4YjNzR-cg)\n\nWhen a user pauses in the search bar, Hypermode generates an embedding of the user's input and executes a vector search (HNSW or sequential) of a 10,000 item catalog in less than 200ms.\n\n## Lightning Fast Semantic Search\n\nThis template illustrates the power of Hypermode collections to create real-time production-grade semantic search.\n\nThis is accomplished by hosting small embedding models, and building vector indexes in memory, allowing for low latency results.\n\nTo try it out, add sample data to your collection using the `upsertProducts` api, which embeds \u0026 inserts texts into your index, and query the index using `searchProducts`.\n\n## How to use the template\n\n- To deploy this code, click \"use this template\" in this repo.\n- Go to [hypermode.com/sign-up](https://hypermode.com/sign-up).\n- Create new project\n- Import this repo\n\nHypermode will automatically spin up the embedding model found in `backend/hypermode.json` file as well as generate a working GraphQL API for all functions exported from your `backend/functions/index.ts` file.\n\n### Sample data\n\nAn example is provided, named `backend/extras/hyper_toys.csv`, and the corresponding python script to run it is named `backend/extras/ecommerce_populate.py`. Navigate to the subfolder to run them.\nTo install dependencies, run `pip install -r requirements.txt` from within that directory.\n\nYou'll need to edit the `ecommerce_populate.py` file with your Hypermode project URL and auth token found in your Hypermode console dashboard. \n\n\n[![hyper-cons](https://github.com/user-attachments/assets/18478278-93bf-479b-955c-c23c7a7cdecb)](hypermode.com)\n\nLoad the data using `python3 ecommerce_populate.py`, and it will show you the batched inserts and time taken.\nPlease note: since this is inserting 10k rows sequentially, it will take ~18 minutes to embed \u0026 insert data. If you want to just try this out with a smaller dataset, feel free to shrink the csv to whatever you need.\n\n### Calling the APIs\n\nOpen up postman and create a new GraphQL request, and add the endpoint with the authorization as a bearer token. On schema introspection you will see all the functions from the template light up as APIs. Just mess around with it and see what happens!\n\n## References\n\nHypermode is a framework for building AI powered API.\nIn an Hypermode project, exported functions from `functions/assembly/index.ts` are immediately available as a scalable GraphQL API, allowing direct integration of your AI logic into your existing applications.\n\nEach function can use AI models inferences, data connections (HTTP, GraphQL, DB, ...), collections ( a flexible vector search abstraction) and custom logic.\n\nFor more information on functions, models, connections, collections and project configuration, consult [our documentation](https://docs.hypermode.com).\n\nFor writing functions in AssemblyScript, you can refer to the [examples](https://github.com/hypermodeinc/functions-as/tree/main/examples) in [hypermodeinc/functions-as](https://github.com/hypermodeinc/functions-as).\n\n## Frontend Template\n\n### Running Locally\n\nTo run this project locally, start by setting up your environment variables. Copy the definitions from [`.env.example`](https://github.com/hypermodeinc/hyper-commerce/blob/main/frontend/.env.example) into a new file named `.env.local` at the root of your project, and provide the values from your Hypermode dashboard.\n\nOnce your environment variables are configured, install the necessary dependencies with:\n\n```\npnpm install\n```\n\nThen, start the development server using:\n\n```\npnpm dev\n```\n\nYour app should be up and running at [localhost:3000](http://localhost:3000/)\n\n### Deploy with Vercel\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fhypermodeinc%2Fhyper-commerce%2Ftree%2Fmain%2Ffrontend)\n\n_NOTES_: Make sure your environment variables are added to your Vercel project.\n\n- HYPERMODE_API_TOKEN\n- HYPERMODE_API_ENDPOINT\n\n![hyp-com-env](https://github.com/user-attachments/assets/38264879-b462-44bf-b658-cc6f14000266)\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhypermodeinc%2Fhyper-commerce","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhypermodeinc%2Fhyper-commerce","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhypermodeinc%2Fhyper-commerce/lists"}