{"id":15989374,"url":"https://github.com/brycerussell/astro-fivem-nui","last_synced_at":"2025-04-04T22:25:02.196Z","repository":{"id":167293568,"uuid":"642652443","full_name":"BryceRussell/astro-fivem-nui","owner":"BryceRussell","description":"A template for creating a NUI resource for FiveM using Astro","archived":false,"fork":false,"pushed_at":"2023-05-30T02:32:46.000Z","size":92,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-10T07:13:55.613Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/BryceRussell.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}},"created_at":"2023-05-19T03:45:12.000Z","updated_at":"2023-07-12T17:16:05.000Z","dependencies_parsed_at":"2023-07-12T02:15:56.889Z","dependency_job_id":null,"html_url":"https://github.com/BryceRussell/astro-fivem-nui","commit_stats":null,"previous_names":["brycerussell/astro-fivem-nui"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BryceRussell%2Fastro-fivem-nui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BryceRussell%2Fastro-fivem-nui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BryceRussell%2Fastro-fivem-nui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BryceRussell%2Fastro-fivem-nui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BryceRussell","download_url":"https://codeload.github.com/BryceRussell/astro-fivem-nui/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247257264,"owners_count":20909438,"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":[],"created_at":"2024-10-08T04:42:11.007Z","updated_at":"2025-04-04T22:25:02.169Z","avatar_url":"https://github.com/BryceRussell.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cspan\u003e\n  \u003cimg src=\"https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2F1.bp.blogspot.com%2F-VEePVB7eAyE%2FX2TrnPDr6aI%2FAAAAAAAAA_E%2FA8BlFuvwQIMB61UkF1STc2kdC8Zrj78nQCPcBGAYYCw%2Fs512%2Ffivem-logo.png\u0026f=1\u0026nofb=1\u0026ipt=ac3a853084b6093f1719d992c28b90c9ecbd2562cf810e16eea932f1ed3302b9\u0026ipo=images\" width=\"80\" height=\"80\"\u003e\n  \u003cimg src=\"https://astro.build/assets/press/astro-logo-dark.svg\"\u003e\n\u003cspan\u003e\n\n# Astro FiveM NUI Template\n\nThis is a template for creating a [FiveM](https://fivem.net/) [NUI resource](https://docs.fivem.net/docs/scripting-manual/nui-development/) using Astro\n\n## Features\n\n- Easily build small(\u003c100kb) NUIs\n- Tailwind preinstalled for styling\n- Image optimization and icons\n- Custom NUI utility to make message handling, callbacks, etc easier\n\n## How to Use\n\n### [Using the Dev Enviroment](/dev)\n                             \n### Setup\n\n1) [Clone](https://docs.github.com/en/repositories/creating-and-managing-repositories/cloning-a-repository) the project into a [local FiveM dev server](https://docs.fivem.net/docs/server-manual/setting-up-a-server/) as a resource\n\n2) Use the terminal to naviagte to the `dev` folder (`cd dev`)\n\n3) Once inside the `dev` folder, use [pnpm](https://pnpm.io/installation#using-npm) to install all dependencies: `pnpm i`\n\n4) Start building your NUI inside the `dev/src/pages/index.astro` file\n\n**Testing in a Browser**:\n\n1) Use the command `pnpm dev` to start a dev server at https://localhost:3000\n\n**Testing In-game**:\n\n1) Use the command `pnpm  build` to build your NUI\n\n2) Use the command `restart [resource-name]` inside your FiveM server test the new changes\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrycerussell%2Fastro-fivem-nui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrycerussell%2Fastro-fivem-nui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrycerussell%2Fastro-fivem-nui/lists"}