---
updatedAt: 2025-07-15T08:40:23.000Z
agentTools:
  projectIndex: https://docs.appery.io/llms.txt
---

# Libraries

Using Server Code libraries.

A **Server Code** library allows you to create a re-usable component (library). A library can be added to one or more scripts.\
There are a number of out-of-the-box libraries. These libraries are marked with a small system label:

<Image title="Screenshot_51.png" alt={1104} align="center" border={true} src="https://files.readme.io/9985692-Screenshot_51.png">
  Server Code Libraries
</Image>

# New *library*

You can create any number of libraries. You can write your own library or upload an existing library (JavaScript file). To create a new library, click **Create library** button:

<Image title="Create Library.jpg" alt={1108} align="center" width="100%" border={true} src="https://files.readme.io/4ee62fb-Create_Library.jpg">
  Creating new Server Code Library
</Image>

# *Library* code editor

The library editor works the same way as the script editor. You also get the same [keyboard shortcuts](https://docs.appery.io/docs/servercode-script).

## Testing

The library page provides a test function to check the library for any syntax errors. Click the **Test** button below the editor to run a syntax check.

# *Dependencies*

A library can depend on other libraries. Go to the **Dependencies** page to set any dependencies.

# Permissions

The following access permissions can be granted:

* *View*;
* *Edit*;
* *Delete*.

# Settings

In the **Settings** tab, you can delete a library. You can also clone (copy) a library.