{"id":24534870,"url":"https://github.com/oxince/fivem-json-db","last_synced_at":"2026-03-08T07:32:20.479Z","repository":{"id":186646035,"uuid":"675495074","full_name":"oxince/fivem-json-db","owner":"oxince","description":"A flexible Lua database module designed for use in the FiveM platform.","archived":false,"fork":false,"pushed_at":"2023-08-07T04:10:22.000Z","size":4,"stargazers_count":9,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-24T03:53:13.132Z","etag":null,"topics":["fivem","json","local-database"],"latest_commit_sha":null,"homepage":"","language":"Lua","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/oxince.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-08-07T04:03:43.000Z","updated_at":"2025-01-04T19:12:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"b74fc233-b252-405b-9adf-fd5e7e4e1473","html_url":"https://github.com/oxince/fivem-json-db","commit_stats":null,"previous_names":["oxince/fivem-json-db"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oxince/fivem-json-db","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxince%2Ffivem-json-db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxince%2Ffivem-json-db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxince%2Ffivem-json-db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxince%2Ffivem-json-db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oxince","download_url":"https://codeload.github.com/oxince/fivem-json-db/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxince%2Ffivem-json-db/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30248899,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-08T05:41:50.788Z","status":"ssl_error","status_checked_at":"2026-03-08T05:41:39.075Z","response_time":56,"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":["fivem","json","local-database"],"created_at":"2025-01-22T11:19:25.902Z","updated_at":"2026-03-08T07:32:20.474Z","avatar_url":"https://github.com/oxince.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lua Database Module for FiveM\n\nA flexible Lua database module designed for use in the FiveM platform. This module provides functionalities to manage collections of data in a database-like manner, including saving, loading, updating, deleting, searching, and more.\n\n## Features\n\n- Create, manage, and manipulate data collections.\n- Efficiently save and load collection data using JSON encoding/decoding.\n- Optional timed auto-save functionality.\n- Debugging support with customizable logging.\n\n## Documentation\n\nFor detailed usage instructions and function documentation, refer to the [API documentation](API_DOCUMENTATION.md).\n\n## Usage\n\n1. **Installation**: Add the `database.lua` file and include it in your FiveM resource by adding `server_script \"@fivem-json-db/server/database.lua\"` to your resource manifest.\n   \n2. **Usage Example**:\n\n```lua\nlocal db = Database.new(\"resource_name\", \"path/to/database\", true, true, 60000, true)\n\n-- Initialize with collections\ndb:init({\"players\", \"items\", \"quests\"})\n\n-- Insert data into a collection\ndb:insert(\"players\", \"player123\", { name = \"John\", level = 10 })\n\n-- Update data in a collection\ndb:update(\"players\", \"player123\", { level = 11 })\n\n-- Get data from a collection\nlocal playerData = db:get(\"players\", \"player123\")\n\n-- Search for data in a collection\nlocal playersWithLevel10 = db:searchAll(\"players\", \"level\", 10)\n\n-- ... and more (see documentation for all available functions)\n```\n\n## Contributions\n\nContributions are welcome! If you find any issues or have improvements to suggest, feel free to submit a pull request or open an issue.\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n\n---\n\n*Disclaimer: This module is intended for educational purposes and might need further customization to meet production-level requirements.*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foxince%2Ffivem-json-db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foxince%2Ffivem-json-db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foxince%2Ffivem-json-db/lists"}