{"id":29536788,"url":"https://github.com/barryw/luakit","last_synced_at":"2026-01-24T04:11:17.734Z","repository":{"id":303606431,"uuid":"1016049975","full_name":"barryw/LuaKit","owner":"barryw","description":"Seamless Swift ↔ Lua Bridging for iOS \u0026 macOS","archived":false,"fork":false,"pushed_at":"2025-07-15T23:55:20.000Z","size":675,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-16T05:30:15.645Z","etag":null,"topics":["lua","swift"],"latest_commit_sha":null,"homepage":"","language":"C","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/barryw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-07-08T12:16:31.000Z","updated_at":"2025-07-15T23:55:23.000Z","dependencies_parsed_at":"2025-07-08T13:57:50.595Z","dependency_job_id":null,"html_url":"https://github.com/barryw/LuaKit","commit_stats":null,"previous_names":["barryw/luakit"],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/barryw/LuaKit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barryw%2FLuaKit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barryw%2FLuaKit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barryw%2FLuaKit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barryw%2FLuaKit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/barryw","download_url":"https://codeload.github.com/barryw/LuaKit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barryw%2FLuaKit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265562381,"owners_count":23788519,"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":["lua","swift"],"created_at":"2025-07-17T03:09:35.357Z","updated_at":"2026-01-24T04:11:17.728Z","avatar_url":"https://github.com/barryw.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n![LuaKit Logo](Images/luakit-logo.svg?r=202601240313)\n\n[![Swift](https://img.shields.io/badge/Swift-6.2-orange.svg)](https://swift.org)\n[![Platforms](https://img.shields.io/badge/Platforms-iOS%2013%2B%20|%20macOS%2010.15%2B%20|%20tvOS%2013%2B%20|%20watchOS%206%2B-blue.svg)](https://swift.org)\n[![License](https://img.shields.io/badge/License-MIT-brightgreen.svg)](LICENSE)\n[![Latest Release](https://img.shields.io/github/v/release/barryw/LuaKit)](https://github.com/barryw/LuaKit/releases/latest)\n[![CI/CD](https://github.com/barryw/LuaKit/actions/workflows/ci-cd.yml/badge.svg)](https://github.com/barryw/LuaKit/actions)\n[![codecov](https://codecov.io/gh/barryw/LuaKit/branch/main/graph/badge.svg)](https://codecov.io/gh/barryw/LuaKit)\n\n**Seamless Swift-Lua Integration**\n\n[Documentation](Documentation/) • [API Reference](Documentation/API/) • [Examples](Examples/) • [Getting Started](Documentation/Guides/GettingStarted.md)\n\n\u003c/div\u003e\n\n## Overview\n\nLuaKit is a Swift framework that provides seamless two-way bridging between Swift and Lua. Write your app logic in Swift and make it scriptable with Lua - no complex bindings required!\n\n### ✨ Key Features\n\n- 🔗 **Automatic Swift-Lua bridging** with the `@LuaBridgeable` macro\n- 📦 **Lua 5.5.0 embedded** - no external dependencies\n- 🚀 **Type-safe** conversions between Swift and Lua\n- 🎯 **Simple API** - get started in minutes\n- 🔄 **Two-way communication** - call Lua from Swift and vice versa\n- 📱 **Multi-platform** - iOS, macOS, tvOS, and watchOS\n\n## Installation\n\nAdd LuaKit to your `Package.swift`:\n\n```swift\ndependencies: [\n    .package(url: \"https://github.com/barryw/LuaKit\", from: \"1.7.2\")\n]\n```\n\n## Quick Start\n\n```swift\nimport LuaKit\n\n// 1. Create a Lua state\nlet lua = try LuaState()\n\n// 2. Execute Lua code\ntry lua.execute(\"print('Hello from Lua!')\")\n\n// 3. Bridge a Swift class\n@LuaBridgeable\nclass Player: LuaBridgeable {\n    var name: String = \"Hero\"\n    var health: Int = 100\n    \n    func attack() {\n        print(\"\\(name) attacks!\")\n    }\n}\n\n// 4. Use from Lua\nlua.register(Player.self, as: \"Player\")\ntry lua.execute(\"\"\"\n    local p = Player()\n    p.name = \"Adventurer\"\n    p:attack()\n\"\"\")\n```\n\n## Documentation\n\n### 📚 Guides\n- [Getting Started](Documentation/Guides/GettingStarted.md) - Your first steps with LuaKit\n- [Bridging Classes](Documentation/Guides/BridgingClasses.md) - Using @LuaBridgeable\n- [Working with Functions](Documentation/Guides/Functions.md) - Function bridging\n- [Error Handling](Documentation/Guides/ErrorHandling.md) - Handling errors gracefully\n\n### 🔧 API Reference\n- [LuaState](Documentation/API/LuaState.md) - Main Lua runtime interface\n- [LuaBridgeable](Documentation/API/LuaBridgeable.md) - Protocol for bridgeable types\n- [Macros](Documentation/API/Macros/) - Available Swift macros\n- [Full API Reference](Documentation/API/)\n\n### 💡 Examples\n- [Quick Start](Examples/QuickStartExample.swift) - Simple introduction\n- [Game Scripting](Examples/GameScriptingExample.swift) - Game logic and AI\n- [Configuration](Examples/ConfigurationExample.swift) - App configuration\n- [Automation](Examples/AutomationExample.swift) - Task automation\n- [Data Processing](Examples/DataProcessingExample.swift) - ETL and reporting\n- [More Examples](Examples/)\n\n## Use Cases\n\nLuaKit is perfect for:\n\n- 🎮 **Game Development** - Scriptable game logic, modding support\n- ⚙️ **Configuration** - Dynamic app configuration without recompiling\n- 🤖 **Automation** - User-defined workflows and scripts\n- 📊 **Data Processing** - Custom data transformations\n- 🧩 **Plugins** - Add plugin support to your app\n- 🧪 **Prototyping** - Rapid development and testing\n\n## Requirements\n\n- Swift 6.2+\n- iOS 13.0+ / macOS 10.15+ / tvOS 13.0+ / watchOS 6.0+\n- Xcode 16.0+\n\n## Contributing\n\nWe welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) for details.\n\n## Credits\n\nLuaKit embeds Lua 5.5.0. Lua is a powerful, efficient, lightweight, embeddable scripting language. Learn more at [lua.org](https://www.lua.org).\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://www.lua.org/images/lua-logo.gif\" alt=\"Lua Logo\" width=\"128\"\u003e\n\nMade with Lua\n\u003c/div\u003e\n\n## License\n\nLuaKit is available under the MIT license. See the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarryw%2Fluakit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbarryw%2Fluakit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarryw%2Fluakit/lists"}