> ## Documentation Index
> Fetch the complete documentation index at: https://build.onswig.com/llms.txt
> Use this file to discover all available pages before exploring further.

# TypeScript Packages

The TypeScript protocol SDK surface is split by runtime and abstraction level.

## Choose a package

| Package                | Use it when                                            |
| :--------------------- | :----------------------------------------------------- |
| `@swig-wallet/classic` | you are on Web3.js 1.x                                 |
| `@swig-wallet/kit`     | you are on Solana Kit / Web3.js 2.0                    |
| `@swig-wallet/lib`     | you need shared protocol logic and lower-level helpers |
| `@swig-wallet/coder`   | you need account or instruction encoding and decoding  |

## What these packages cover

* instruction building
* wallet account fetching
* PDA derivation
* authority and action helpers
* version-aware handling for v1 and v2 Swig accounts

## Classic vs Kit

`@swig-wallet/classic` and `@swig-wallet/kit` cover the same product area, but
they target different Solana client stacks.

* `classic` returns `TransactionInstruction[]` and works with `Connection`
* `kit` returns Kit instructions and works with `Rpc<GetAccountInfoApi>`

## API reference

The generated API docs live here:

[anagrambuild.github.io/swig-ts/modules.html](https://anagrambuild.github.io/swig-ts/modules.html)

## Related pages

* Use [Kit Package](/reference/typescript/kit) for the Solana Kit-specific path
* Use [Action Helpers](/reference/typescript/actions) for action and permission helpers
