{"id":18519949,"url":"https://github.com/jbilcke-hf/template-node-llama-express","last_synced_at":"2025-04-22T23:03:59.889Z","repository":{"id":176431356,"uuid":"656229824","full_name":"jbilcke-hf/template-node-llama-express","owner":"jbilcke-hf","description":"A minimalist Docker project to get started with Node, llama-node and Express. Ready to be used in a Hugging Face Space.","archived":false,"fork":false,"pushed_at":"2023-06-21T09:45:37.000Z","size":23,"stargazers_count":9,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T19:41:58.467Z","etag":null,"topics":["ai","docker","huggingface-spaces","llama-node","llamacpp","llm","nodejs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jbilcke-hf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2023-06-20T14:10:11.000Z","updated_at":"2024-12-18T18:45:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"d844fa0c-5146-4f3f-b333-77e3e8d37f96","html_url":"https://github.com/jbilcke-hf/template-node-llama-express","commit_stats":null,"previous_names":["jbilcke-hf/template-node-llama-express"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbilcke-hf%2Ftemplate-node-llama-express","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbilcke-hf%2Ftemplate-node-llama-express/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbilcke-hf%2Ftemplate-node-llama-express/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbilcke-hf%2Ftemplate-node-llama-express/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jbilcke-hf","download_url":"https://codeload.github.com/jbilcke-hf/template-node-llama-express/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250337943,"owners_count":21414104,"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":["ai","docker","huggingface-spaces","llama-node","llamacpp","llm","nodejs"],"created_at":"2024-11-06T17:17:56.878Z","updated_at":"2025-04-22T23:03:59.883Z","avatar_url":"https://github.com/jbilcke-hf.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\ntitle: Template Node Llama Express\nemoji: 🏗️\ncolorFrom: gray\ncolorTo: blue\nsdk: docker\npinned: false\napp_port: 7860\n---\n\nA minimalist Docker Space to help people getting started with Node, Express, node-llama and TypeScript\n\n## Installation\n\n### Prerequisites\n\n- Install NVM: https://github.com/nvm-sh/nvm\n- Install Docker https://www.docker.com\n\n### Downloading the model\n\n### Building and run without Docker\n\nYou need to downloaded yourself `airoboros-13b-gpt4.ggmlv3.q4_0.bin` in the `./models/` folder.\nIf you plan to change the model, then edit the `modelPath` in `/src/index.mts`` acconrdingly.\n\n```bash\nnvm use\nnpm i\nnpm run start\n```\n\nThen open the generator by passing a prompt in the query parameters:\n\n[http://localhost:7860?prompt=a webpage recipe for making chocolate chip cookies](http://localhost:7860/?prompt=a%20webpage%20recipe%20for%20making%20chocolate%20chip%20cookies)\n\n### Building and running with Docker\n\nNote: the model will be downloaded by Docker,\nsee the last lines in the Dockerfile.\n\n```bash\nnpm run docker\n```\n\nThis script is a shortcut executing the following commands:\n\n```bash\ndocker build -t template-node-llama-express .\ndocker run -it -p 7860:7860 template-node-llama-express\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbilcke-hf%2Ftemplate-node-llama-express","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjbilcke-hf%2Ftemplate-node-llama-express","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbilcke-hf%2Ftemplate-node-llama-express/lists"}