{"id":31040012,"url":"https://github.com/sure-development/sure_headless-mailbox","last_synced_at":"2025-10-08T02:24:44.446Z","repository":{"id":311747834,"uuid":"1044837529","full_name":"Sure-Development/sure_headless-mailbox","owner":"Sure-Development","description":"Free Open Source, Headless Mailbox for everyone to customize your NUI","archived":true,"fork":false,"pushed_at":"2025-08-26T14:05:46.000Z","size":10,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-14T08:15:01.714Z","etag":null,"topics":["esx","fivem","lua","mailbox"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Sure-Development.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-08-26T09:29:33.000Z","updated_at":"2025-09-04T23:07:09.000Z","dependencies_parsed_at":"2025-08-26T11:52:32.791Z","dependency_job_id":"8425be67-5a49-4b50-b6b1-e1978171badf","html_url":"https://github.com/Sure-Development/sure_headless-mailbox","commit_stats":null,"previous_names":["sure-development/sure_headless-mailbox"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Sure-Development/sure_headless-mailbox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sure-Development%2Fsure_headless-mailbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sure-Development%2Fsure_headless-mailbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sure-Development%2Fsure_headless-mailbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sure-Development%2Fsure_headless-mailbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sure-Development","download_url":"https://codeload.github.com/Sure-Development/sure_headless-mailbox/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sure-Development%2Fsure_headless-mailbox/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278877102,"owners_count":26061382,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["esx","fivem","lua","mailbox"],"created_at":"2025-09-14T08:03:52.022Z","updated_at":"2025-10-08T02:24:44.430Z","avatar_url":"https://github.com/Sure-Development.png","language":"Lua","readme":"# sure_headless-mailbox\nFree Open Source, Headless Mailbox for everyone to customize your NUI\n\n**VERSION** `1.0.1`\n**DISCORD** [OUR DISCORD](https://discord.gg/5CF2Z2JZWs)\n\n## Core Features\n- Mailbox with title, sender, sent_date, content, and items to receive\n- Use JSON as storage\n- Optimized net packet\n\n## Example\n```lua\n--- Table key\n['mail_entry_1'] = {\n    title = 'This is a title',\n    sender = 'Sure Headless',\n    sent_date = '8/26/2025',\n    content = [[\n        Content\n        \u003cul\u003e\n            \u003cli\u003e1\u003c/li\u003e\n            \u003cli\u003e2\u003c/li\u003e\n            \u003cli\u003e3\u003c/li\u003e\n            \u003cli\u003e4\u003c/li\u003e\n        \u003c/ul\u003e\n    ]],\n    receives = {\n        { type = 'item', name = 'painkiller', count = 1 },\n        { type = 'account', name = 'money', count = 500 }\n    }\n}\n```\n\n## Usage\n### NUI\nReference type (typescript) from `./types/types.ts`\nAnd you also need to add for visibility of NUI.\n```typescript\nwindow.addEventListener('message', (event: MessageEvent\u003cMessageEventsFromNUI\u003e) =\u003e {\n    const type = event.data.type\n\n    if (type === 'update-mails') {\n        const mails = event.data.mails\n        ...\n    } else if (type === 'add-mail-index-to-history') {\n        const index = event.data.index\n        ...\n    } else if (type === 'update-history-indexes') {\n        const indexes = event.data.indexes\n        ...\n    }\n})\n```\n\n### Client Commands\n#### Debug All Data\n`sure_mb_debug`\n#### Claim Items\n`sure_mb_claim [index]`","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsure-development%2Fsure_headless-mailbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsure-development%2Fsure_headless-mailbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsure-development%2Fsure_headless-mailbox/lists"}