2 online 26 members  + Join RP Base  +
FreeScript

ResourceDocs

by HastH8  ·  version 2026.10.09  ·  updated 21 days ago

No reviews yet

Downloads
0
Reviews
0
Size
195 KB
Code check
Clean
Licence
MIT
Released
Nov 2026

AI Source-backed documentation generation for FiveM and RedM resources.

ResourceDocs
ResourceDocs

Source-backed documentation generation for FiveM and RedM resources.

Upload a resource, inspect what can be verified, and export polished documentation
for installation, configuration, exports, events, commands, and dependencies.

Live application
·
Quick start
·
How it works
·
Security
·
Contributing

ResourceDocs turns readable FiveM and RedM resource files into structured developer documentation. It combines deterministic static analysis with optional Gemini-assisted writing: source code establishes the facts, while AI improves the explanation around those facts.

The generator is designed for real resource packages, including partially protected Asset Escrow releases. It documents what can be verified, reports what could not be inspected, and never attempts to execute, decrypt, or deobfuscate uploaded scripts.

IMPORTANT
ResourceDocs is AI-assisted, not AI-authoritative. Technical identifiers, source locations, parameter signatures, configuration defaults, dependencies, and other integration facts come from static analysis. Gemini is used to improve prose and is not allowed to redefine those facts.
Why ResourceDocs?
FiveM and RedM resources often ship with configuration tables, exports, events, commands, framework integrations, and installation requirements spread across many files. Writing and maintaining documentation by hand is slow, and asking a general-purpose model to inspect an archive directly can produce plausible but incorrect details.

ResourceDocs uses a safer pipeline:

  1. Validate and safely unpack the uploaded resource.
  2. Read only supported, accessible text files.
  3. Parse manifests and source code into a verified fact model.
  4. Infer callable signatures and configuration structure from code usage.
  5. Let Gemini improve descriptions within the verified boundaries.
  6. Render, edit, copy, download, or export the generated Markdown.

The result is documentation that stays close to the code developers actually ship.
FeaturesResource analysis
  • Upload ZIP archives, complete folders, or individual source files.
  • Parse fxmanifest.lua and legacy __resource.lua manifests.
  • Determine the resource name from the extracted resource folder instead of the uploaded archive name.
  • Detect FiveM (gta5), RedM (rdr3), and shared Cfx resource metadata.
  • Identify declared and source-detected dependencies.
  • Detect .sql database files and include complete, copyable SQL in installation docs when the file is safe to embed; oversized or unreadable scripts retain exact import paths.
  • Separate startable resources from Cfx runtime constraints such as /server, /gameBuild, /onesync, /policy, /native, and /assetpacks.
  • Detect common frameworks and integrations such as ESX, QBCore, Qbox, ox_lib, ox_inventory, ox_target, qb-target, VORP, and RedEM:RP.
Configuration documentation
  • Discover scalar and nested Lua configuration values.
  • Preserve the original Lua source, including comments, negative coordinates, vectors, and table formatting.
  • Keep structured tables such as Config.Locations and Config.Missions together instead of producing a separate section for every nested field.
  • Generate compact field reference tables alongside complete, copyable configuration examples.
  • Include source file and line references for traceability.
Exports, events, and commands
  • Discover Lua, JavaScript, and TypeScript exports.
  • Resolve named functions passed into declarations such as exports("name", functionReference).
  • Read parameters from the referenced implementation instead of the export registration line alone.
  • Infer parameter types from annotations, literals, arithmetic, string operations, table/object access, callbacks, default values, and known Cfx function semantics.
  • Discover and merge event registrations, handlers, and triggers.
  • Exclude Cfx lifecycle hooks and ESX/QBCore framework-bus events from the public event reference.
  • Discover registered commands and their callback signatures.
  • Infer Lua return values, including multiple return values, for more useful export examples.
  • Generate side-aware examples using the actual resource folder name.
Documentation workspace
  • Choose quick, standard, or complete documentation detail.
  • Enable or disable individual output sections.
  • Add official dependency download links before generation.
  • Browse analyzed and unreadable files in compact collapsible panels.
  • Preview Markdown with lazy-loaded Shiki syntax highlighting.
  • Edit generated documents with Monaco Editor.
  • Use preview, editor, or split-screen modes.
  • Copy or download individual documents.
  • Export the full documentation set as a ZIP archive.
  • Navigate between generated Markdown files without leaving the workspace.
Product experience
  • Responsive light and dark themes.
  • Accessible shadcn/Base UI controls.
  • Custom favicon, application icon, Open Graph image, metadata, sitemap, and robots routes.
  • Consent-aware Vercel Analytics.
  • Privacy, terms, and cookie information pages.
  • Branded 404 page for unmatched routes.
Generated output
Users can choose which sections to generate. A complete export looks like this:

resource-docs/
├── README.md
├── analysis-report.json
└── docs/
    ├── installation.md
    ├── configuration.md
    ├── exports.md
    ├── events.md
    ├── commands.md
    ├── dependencies.md
    └── troubleshooting.md

Generated links are relative and work both in the ResourceDocs preview and after exporting the files to a repository.
How it works
flowchart LR
    A[ZIP, folder, or files] --> B[Safe ingestion]
    B --> C[Static analysis]
    C --> D[Verified fact model]
    D --> E[Deterministic documentation]
    D --> F[Optional Gemini writing]
    E --> G[Markdown workspace]
    F --> G
    G --> H[Download or ZIP export]

1. Safe ingestion
The analyze endpoint normalizes every submitted path, rejects

…