# Scrap Mechanic Lua API

SM Docs is an unofficial, searchable interface for the Lua API reference published at [scrapmechanic.com/api](https://scrapmechanic.com/api/index.html).

This site only aims to make the published reference easier to browse, search, and link to. It does not maintain a separate API specification or fill gaps in the source. Descriptions, signatures, availability labels, and omissions come from the published Scrap Mechanic API files. The published source may contain incomplete entries.

## Source and freshness

- **Original reference:** [scrapmechanic.com/api](https://scrapmechanic.com/api/index.html)
- **JSON source archive:** [json.zip](https://scrapmechanic.com/api/json.zip)
- **Lua annotation archive:** [lua.zip](https://scrapmechanic.com/api/lua.zip)
- **Site build date:** 2026-08-04 UTC

## Lua

Scrap Mechanic uses LuaJIT which is covered by the [Lua 5.1 reference manual](https://www.lua.org/manual/5.1/). This site covers only the APIs exposed by Scrap Mechanic.

## Reporting a discrepancy

Compare questionable content with the [original reference](https://scrapmechanic.com/api/index.html). If both contain the same text or omission, the issue is in the published source. If this site links, formats, or interprets the source incorrectly, it is an interface issue and can be reported on [GitHub](https://github.com/niknal357/sm-docs-scraper/issues).
