# JavaScript API

> Compare the JavaScript APIs of TX Sheet Control: the Spreadsheet editor in the browser and ServerSheetControl in Node.js, with their classes and functions.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Sheet Control > API Reference > JavaScript API
- **636 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/llms-full.txt

---

JavaScript code works with TX Sheet Control through one of two APIs: the browser editor of the npm package `@txtextcontrol/tx-sheet-control`, or the Node.js server of `@txtextcontrol/tx-sheet-control-server`, which processes workbooks without a browser. Choose the API of the application you are writing. Each reference lists the classes, functions, constants and enumerations its package exports, with their signatures and an example.

The type names in a signature describe the values a member accepts. They do not mean that you install separate helper packages. The [TypeScript API](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/llms-full.txt) documents the same packages and additionally lists their interfaces and type aliases.

### The Two APIs

|  | Browser Editor | Node.js Server |
|---|---|---|
| Package | `@txtextcontrol/tx-sheet-control` | `@txtextcontrol/tx-sheet-control-server` |
| Start with | [Spreadsheet](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/spreadsheet/llms-full.txt), the editor in a host element | [ServerSheetControl](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/serversheetcontrol/llms-full.txt), a control without a DOM |
| The document | [Workbook](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/workbook/llms-full.txt) and [Worksheet](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/worksheet/llms-full.txt) | [Workbook](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/workbook/llms-full.txt) and [Worksheet](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/worksheet/llms-full.txt) |
| Exports | 35 classes, 12 functions, 9 constants and 1 enumeration | 32 classes, 1 function, 1 constant and 1 enumeration |
| Guide | [JavaScript](https://docs.textcontrol.com/tx-sheet-control/getting-started/spreadsheet-editor/javascript/llms-full.txt) in Getting Started | [Node.js](https://docs.textcontrol.com/tx-sheet-control/getting-started/document-processing/nodejs/llms-full.txt) in Getting Started |

Both packages export the same [StreamType](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/streamtype/llms-full.txt) values for loading and saving, and both reach worksheets, ranges, tables and charts through the `Workbook` of their control. Workbook handles are obtained from their owner; the related object-model types listed in a reference are not an instruction to import extra packages.

### Find the Right Page

| If you want to | Read |
|---|---|
| Create the editor in a page and work with its workbook | [Browser Editor](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/llms-full.txt) |
| Load, change and save workbooks in a Node.js service or console application | [Node.js Server](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/llms-full.txt) |
| Look up the shape of an options object or a type alias | [TypeScript API](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/llms-full.txt) |

### Pages in This Section

- [Browser Editor](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/llms-full.txt): the exports of `@txtextcontrol/tx-sheet-control` for JavaScript.
- [Node.js Server](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/llms-full.txt): the exports of `@txtextcontrol/tx-sheet-control-server` for JavaScript.

---

## In This Section

- [JavaScript Browser Editor API](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/llms-full.txt): Browse the JavaScript exports of the browser editor package: the Spreadsheet editor, its workbook object model, pivot tables, barcode functions and constants.
- [JavaScript Node.js Server API](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/llms-full.txt): Browse the JavaScript Node.js API for TX Sheet Control with server workbooks, cell and floating barcodes, source bindings and native encoding helpers.

---

## Nearby

- **Previous:** [TXSheetControl.Style Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/txsheetcontrol/style-property/llms-full.txt)
- **Next:** [JavaScript Browser Editor API](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/llms-full.txt)
