Functions v1 Modules
Functions v1 modules are pre‑installed JavaScript libraries you can use inside a Function. They add common capabilities so you build faster without managing external dependencies.
Available modules:
| Library Name | Description |
|---|---|
| XHR | Send HTTP/HTTPS requests and load response data in a Function. Useful for third‑party auth or triggering webhooks. |
| KV Store | Persistent key‑value store shared at the Subscribe Key level. |
| Advanced Math | Global (lat‑long) coordinate and geometry helpers. |
| Crypto | Encrypt and decrypt data in a Function. |
| Utils | Utility helpers for common tasks. |
| Codec/auth | Encode HTTP Basic Auth credentials. |
| Codec/base64 | Encode and decode Base64 strings. |
| Codec/query_string | Encode and decode URI query parameters. |
| PubNub | Access many client SDK features from a Function. |
| Vault | Read‑only secrets storage. |
Functions runtime
The Functions v1 runtime is a curated JavaScript environment optimized for reliability and speed.
- Native Node modules
- async/await
- Access to
processand some other globals - Installing third‑party modules via npm