> For the complete documentation index, see [llms.txt](https://skyslit.gitbook.io/magicjs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://skyslit.gitbook.io/magicjs/api-references.md).

# API References

- [Frontend](https://skyslit.gitbook.io/magicjs/api-references/frontend.md): API reference in MagicJS serves as a detailed guide to the various functions, components, hooks, and other features that MagicJS offers for building user interfaces.
- [\<LinkDisplay>](https://skyslit.gitbook.io/magicjs/api-references/frontend/less-than-linkdisplay-greater-than.md): LinkDisplay is employed for seamless navigation between pages.
- [createSrc() ](https://skyslit.gitbook.io/magicjs/api-references/frontend/createsrc.md): createSrc function is used for reading the uploaded file.
- [createUploader() ](https://skyslit.gitbook.io/magicjs/api-references/frontend/createuploader.md): createUploader is a function that simplifies file uploads for users.
- [importUI() ](https://skyslit.gitbook.io/magicjs/api-references/frontend/importui.md): The importUI function simplifies UI component imports using aliases from a JSON configuration, promoting a modular and organized project structure for improved code manageability.
- [loadConfig() ](https://skyslit.gitbook.io/magicjs/api-references/frontend/loadconfig.md): loadConfig centralizes JSON config retrieval, streamlining backend access with robust error handling for graceful responses in cases of missing values, ensuring enhanced reliability.
- [protected()](https://skyslit.gitbook.io/magicjs/api-references/frontend/protected.md): The Protected component enhances security by restricting access to authorized users, safeguarding sensitive content visibility for authenticated users.
- [useParams() ](https://skyslit.gitbook.io/magicjs/api-references/frontend/useparams.md): The useParams function in React lets you effortlessly get and use parameters from the current URL, acting like a magic key to unlock dynamic aspects of your application's URLs.
- [useAxios()   ](https://skyslit.gitbook.io/magicjs/api-references/frontend/useaxios.md)
- [useLogin() ](https://skyslit.gitbook.io/magicjs/api-references/frontend/uselogin.md): useLogin function serves for authentication, retrieving details like whether the current user is authenticated, their information, and also includes the functionality for logging out.
- [useSocket() ](https://skyslit.gitbook.io/magicjs/api-references/frontend/usesocket.md): useSocket function is like a walkie-talkie for websites, letting servers and clients chat back and forth in real-time.
- [useContent()](https://skyslit.gitbook.io/magicjs/api-references/frontend/usecontent.md): We can effectively handle data management through the utilization of useContent().
- [usePromise()](https://skyslit.gitbook.io/magicjs/api-references/frontend/usepromise.md): The usePromise() hook simplifies handling asynchronous operations by managing the state of a Promise-based function.
- [useNotification()](https://skyslit.gitbook.io/magicjs/api-references/frontend/usenotification.md)
- [Backend](https://skyslit.gitbook.io/magicjs/api-references/backend.md)
- [createBackendFunction() ](https://skyslit.gitbook.io/magicjs/api-references/backend/createbackendfunction.md)
- [data()](https://skyslit.gitbook.io/magicjs/api-references/backend/data.md)
- [io() ](https://skyslit.gitbook.io/magicjs/api-references/backend/io.md)
- [ServerInstance()](https://skyslit.gitbook.io/magicjs/api-references/backend/serverinstance.md)
- [utils](https://skyslit.gitbook.io/magicjs/api-references/backend/utils.md): The 'utils' module contains many handy functions, each serving a specific purpose to make the system work better.
- [hash()](https://skyslit.gitbook.io/magicjs/api-references/backend/utils/hash.md)
- [verifyHash()](https://skyslit.gitbook.io/magicjs/api-references/backend/utils/verifyhash.md)
- [initiateEmailVerification()](https://skyslit.gitbook.io/magicjs/api-references/backend/utils/initiateemailverification.md)
- [saveFileToUserUploads()](https://skyslit.gitbook.io/magicjs/api-references/backend/utils/savefiletouseruploads.md)
- [readFileFromUserUploads()](https://skyslit.gitbook.io/magicjs/api-references/backend/utils/readfilefromuseruploads.md)
- [removeFileFromUserUploads()](https://skyslit.gitbook.io/magicjs/api-references/backend/utils/removefilefromuseruploads.md)
- [assignRoleToUser()](https://skyslit.gitbook.io/magicjs/api-references/backend/utils/assignroletouser.md)
- [unassignRoleFromUser()](https://skyslit.gitbook.io/magicjs/api-references/backend/utils/unassignrolefromuser.md)
- [findAllRolesByUser()](https://skyslit.gitbook.io/magicjs/api-references/backend/utils/findallrolesbyuser.md)
- [isUserInAnyRoles()](https://skyslit.gitbook.io/magicjs/api-references/backend/utils/isuserinanyroles.md)
- [assignRoleToUser()](https://skyslit.gitbook.io/magicjs/api-references/backend/utils/assignroletouser-1.md)
