{"id":19819883,"url":"https://github.com/jeddyhhh/ziptie","last_synced_at":"2026-04-09T08:03:26.291Z","repository":{"id":153536272,"uuid":"628445889","full_name":"jeddyhhh/ziptie","owner":"jeddyhhh","description":"A web interface for llama.cpp cli written in js, jQuery and php.","archived":false,"fork":false,"pushed_at":"2023-06-02T03:36:02.000Z","size":2161,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-26T19:36:58.409Z","etag":null,"topics":["cpp","ggml","jquery","js","llama","llamacpp","llm","php","wsl","ziptie"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jeddyhhh.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":"2023-04-16T00:58:53.000Z","updated_at":"2024-11-11T09:08:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"d2c789f9-f751-4035-b1de-6b15356fb1da","html_url":"https://github.com/jeddyhhh/ziptie","commit_stats":{"total_commits":166,"total_committers":1,"mean_commits":166.0,"dds":0.0,"last_synced_commit":"6ceecddcc1a39216c11575bd7c6c07f939d0ea43"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jeddyhhh/ziptie","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeddyhhh%2Fziptie","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeddyhhh%2Fziptie/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeddyhhh%2Fziptie/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeddyhhh%2Fziptie/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeddyhhh","download_url":"https://codeload.github.com/jeddyhhh/ziptie/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeddyhhh%2Fziptie/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31259003,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-31T18:32:52.363Z","status":"ssl_error","status_checked_at":"2026-03-31T18:32:51.507Z","response_time":111,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cpp","ggml","jquery","js","llama","llamacpp","llm","php","wsl","ziptie"],"created_at":"2024-11-12T10:20:26.502Z","updated_at":"2026-04-09T08:03:26.253Z","avatar_url":"https://github.com/jeddyhhh.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ziptie\nA web interface for llama.cpp cli written in js, jQuery and php.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/jeddyhhh/ziptie/blob/main/includes/images/screenshot.JPG\" width='49%' /\u003e\n  \u0026nbsp;\n  \u003cimg src=\"https://github.com/jeddyhhh/ziptie/blob/main/includes/images/ziptie.jpg\" width='49%' /\u003e \n  \u003cbr\u003e\n  ziptiebot - a i5 2400 with 8gb of RAM running 7b models, also what ziptie was developed on.\n\u003c/p\u003e\n\nI wrote this interface because the version of llama.cpp that oobabooga webui (at the time, not sure if this has changed) uses doesn't compile correctly for older processors without AVX2 support, the current mainline llama.cpp (which is command line only) does compile and run correctly on older processors but I didn't want to use cli to interact with the program.\n\nThis web-ui is only for one shot prompts and does not use the interactive mode, it will take 1 prompt and generate text until it runs out of tokens.\n\nSupports ggml models, I have not tried gptq models.\n\n\u003cb\u003eInstall instructions/commands (clean install of Ubuntu server or WSL)\u003c/b\u003e:\u003cbr\u003e\n\u003cb\u003eNote for WSL users:\u003c/b\u003e It's possible to access WSL linux files from `\\\\wsl.localhost` in Windows Explorer, you may not want to install the vsftpd package.\u003cbr\u003e\n\n`sudo apt update`\u003cbr\u003e\n`sudo apt install apache2 php libapache2-mod-php git build-essential vsftpd`\u003cbr\u003e\n\n`sudo ufw allow \"Apache Full\"`\u003cbr\u003e\n`sudo nano /etc/vsftpd.conf` - uncomment `write_enable=YES` and save.\u003cbr\u003e\n\n`cd /var/www/html`\u003cbr\u003e\n`sudo git clone https://github.com/jeddyhhh/ziptie`\u003cbr\u003e\n`cd ziptie`\u003cbr\u003e\n`sudo service vsftpd restart`\u003cbr\u003e\n`sudo chown -R [\"yourusername\"]:www-data /var/www/html/ziptie`\u003cbr\u003e\n`sudo chmod -R 775 /var/www/html/ziptie`\u003cbr\u003e\n`./installLlama.sh`\u003cbr\u003e\n\nTransfer model files via ftp to `/var/www/html/ziptie/llama.cpp/models/[\"model-name\"]/[\"model-name\"].bin`\u003cbr\u003e\nExample: `/var/www/html/ziptie/llama.cpp/models/vicuna-7b/ggml-model-q4_0.bin`\u003cbr\u003e\n\u003cb\u003eWSL Users: \u003c/b\u003eYou can go to `\\\\wsl.localhost\\[\"distro-name\"]\\var\\www\\html\\ziptie\\llama.cpp\\models` then drag and drop model folders to here.\u003cbr\u003e\n`[\"distro-name\"]` is usually `Ubuntu`.\u003cbr\u003e\n\n`sudo service apache2 restart`\u003cbr\u003e\n\ngo to http://localhost/ziptie (or http://\"server-ip-address\"/ziptie) to use ziptie.\u003cbr\u003e\nYou can change site settings in adminSettings.txt, there is options to lock certain setting fields and set a default setting file to be loaded on startup.\u003cbr\u003e\n\n\u003cb\u003eQuick Start:\u003c/b\u003e\u003cbr\u003e\n1. On very first load, hit the \"Reload/Rescan All Settings/Models and Prompts\" button (click it a few times for max reliability), this will scan the models and prompts you have transfered and put them into a list for the website to read.\u003cbr\u003e\n2. Edit any parameters in settings and hit \"Save\". (Selecting \"Save as Default\" will change the default settings file to be loaded on startup)\u003cbr\u003e\n3. You can now hit \"Submit Prompt\", it will now start generating text.\u003cbr\u003e\n\nYou can use the \"Alt. Output file name\" option to save the llama output into a seperate file, this could be anything (.html, .php, js)\n\n\u003cb\u003eAfter restart of WSL (not for Ubuntu server):\u003c/b\u003e\u003cbr\u003e\nWSL doesn't auto start services, so you need to run these commands after a restart of WSL and/or Windows:\u003cbr\u003e\n`wsl sudo service apache2 start`\u003cbr\u003e\n`wsl sudo service vsftpd start`\u003cbr\u003e\nWSL is now running in the background with the web server/ftp server, you can now go to http://localhost/ziptie\u003cbr\u003e\n.bat files for these scripts are in `includes/wsl-scripts` of this repository\u003cbr\u003e\n\n\u003cb\u003eTo update ziptie:\u003c/b\u003e\u003cbr\u003e\nrun `./updateZiptie.sh`\n\n\u003cb\u003eTo update llama.cpp:\u003c/b\u003e\u003cbr\u003e\nrun `./updateLlama.sh`\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeddyhhh%2Fziptie","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeddyhhh%2Fziptie","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeddyhhh%2Fziptie/lists"}