{"id":44811690,"url":"https://github.com/vlorc/lua-vm","last_synced_at":"2026-02-16T16:56:18.373Z","repository":{"id":134607431,"uuid":"148269429","full_name":"vlorc/lua-vm","owner":"vlorc","description":"Golang lua virtual machine","archived":false,"fork":false,"pushed_at":"2021-04-11T03:57:43.000Z","size":65,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-19T05:44:27.188Z","etag":null,"topics":["go","golang-library","lua","vm"],"latest_commit_sha":null,"homepage":"","language":"Go","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/vlorc.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":"2018-09-11T06:14:57.000Z","updated_at":"2022-10-09T02:46:28.000Z","dependencies_parsed_at":"2023-04-24T19:30:39.358Z","dependency_job_id":null,"html_url":"https://github.com/vlorc/lua-vm","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/vlorc/lua-vm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vlorc%2Flua-vm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vlorc%2Flua-vm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vlorc%2Flua-vm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vlorc%2Flua-vm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vlorc","download_url":"https://codeload.github.com/vlorc/lua-vm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vlorc%2Flua-vm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29513374,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T09:05:14.864Z","status":"ssl_error","status_checked_at":"2026-02-16T08:55:59.364Z","response_time":115,"last_error":"SSL_read: 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":["go","golang-library","lua","vm"],"created_at":"2026-02-16T16:56:17.721Z","updated_at":"2026-02-16T16:56:18.361Z","avatar_url":"https://github.com/vlorc.png","language":"Go","readme":"# [Golang lua-vm](https://github.com/vlorc/lua-vm)\n[简体中文](https://github.com/vlorc/lua-vm/blob/master/README_CN.md)\nGolang lua minimum project\n\n[![License](https://img.shields.io/:license-apache-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n[![codebeat badge](https://codebeat.co/badges/c41b426c-4121-4dc8-99c2-f1b60574be64)](https://codebeat.co/projects/github-com-vlorc-lua-vm-master)\n[![Go Report Card](https://goreportcard.com/badge/github.com/vlorc/gioc)](https://goreportcard.com/report/github.com/vlorc/lua-vm)\n[![GoDoc](https://godoc.org/github.com/vlorc/lua-vm?status.svg)](https://godoc.org/github.com/vlorc/lua-vm)\n[![Build Status](https://travis-ci.org/vlorc/lua-vm.svg?branch=master)](https://travis-ci.org/vlorc/lua-vm?branch=master)\n[![Coverage Status](https://coveralls.io/repos/github/vlorc/lua-vm/badge.svg?branch=master)](https://coveralls.io/github/vlorc/lua-vm?branch=master)\n\n# Library\n+ bit\n+ buffer\n+ crypto\n+ fs\n+ hash\n+ io\n+ net\n+ regexp\n+ store\n\n# Features\n+ http/sock5 proxy\n+ lua pool\n+ file system\n\n## Installing\n\tgo get -u github.com/vlorc/lua-vm\n\n## Quick Start\n\n* Create Pool\n```golang\npool.NewLuaPool()\n```\n\n* Preload Script\n```golang\npool.NewLuaPool().Preload(\n\t\tpool.Source(strings.NewReader(\"print('hello')\")),\n\t\tpool.Value(\"tobuffer\", base.ToBuffer),\n)\n```\n\n## Examples\n\n* Use tcp\n\n```golang\nimport (\n    \"github.com/vlorc/lua-vm/pool\"\n    \"github.com/vlorc/lua-vm/net/tcp\"\n    \"github.com/vlorc/lua-vm/net/base\"\n)\n\nfunc main() {\n\tp := pool.NewLuaPool().Preload(\n\t\tpool.Module(\"net.tcp\", tcp.NewTCPFactory(driver.DirectDriver{})),\n\t\tpool.Module(\"buffer\", base.BufferFactory{}),\n\t)\n\tif err := p.DoFile(\"demo/tcp.lua\"); nil != err {\n\t\tprintln(\"error: \", err.Error())\n\t}\n}\n```\n\n\n## Lua Demo\n+ [tcp](https://github.com/vlorc/lua-vm/blob/master/demo/tcp.lua)\n+ [udp](https://github.com/vlorc/lua-vm/blob/master/demo/udp.lua)\n+ [dns](https://github.com/vlorc/lua-vm/blob/master/demo/dns.lua)\n+ [http](https://github.com/vlorc/lua-vm/blob/master/demo/http.lua)\n+ [time](https://github.com/vlorc/lua-vm/blob/master/demo/time.lua)\n+ [crypto](https://github.com/vlorc/lua-vm/blob/master/demo/crypto.lua)\n+ [regexp](https://github.com/vlorc/lua-vm/blob/master/demo/regexp.lua)\n+ [bit](https://github.com/vlorc/lua-vm/blob/master/demo/bit.lua)\n+ [file](https://github.com/vlorc/lua-vm/blob/master/demo/file.lua)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvlorc%2Flua-vm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvlorc%2Flua-vm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvlorc%2Flua-vm/lists"}