TypeScript API wrapper for the PalDefender REST API, version 0.1.6. Provides a type-safe, high-level interface to manage Palworld game servers via PalDefender. Features include 'Smart Input' that accepts multiple formats for item/pal/egg granting (shorthand strings, arrays, detailed objects, tuples) with automatic deduplication. Covers player info, server info, item gifting, pal gifting, egg gifting, technology learning/forgetting, and progression granting. Has no known release cadence yet but ships TypeScript definitions. Differentiates by its flexible parameter handling compared to lower-level REST clients.
npm install paldefender-rest-clientNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes a PalDefenderClient with token, host, and port; demonstrates listing players and granting items/pals with flexible parameter input.
Use the internal Palworld GUID (PlayerUID) instead of Mac user ID.
Manually filter the returned array using player's online status if needed.
Ignore version badges; use actual npm package version (0.1.6).
Run 'npm install paldefender-rest-client' and ensure the package is in node_modules.
Ensure you created a client instance correctly and call either client.players() or client.getPlayers().
Use 'import { PalId } from 'paldefender-rest-client''.No dependency data recorded yet.