{"repo":"fal-ai/fal-js","free":true,"listed":false,"github":"https://github.com/fal-ai/fal-js","clone":"git clone https://github.com/fal-ai/fal-js.git","description":"The JavaScript client and utilities to fal-serverless with built-in TypeScript definitions","language":"TypeScript","stars":183,"topics":["ai","client","ml","serverless","typescript","express","nextjs","react-native"],"license":"MIT","category":"mobile-apps","readme_excerpt":"The fal.ai JS client About the Project The fal JavaScript/TypeScript Client is a robust and user-friendly library designed for seamless integration of fal endpoints in Web, Node.js, and React Native applications. Developed in TypeScript, it provides developers with type safety right from the start. Getting Started The @fal-ai/client library serves as a client for fal apps hosted on fal. For guidance on consuming and creating apps, refer to the quickstart guide. Client Library This client library is crafted as a lightweight layer atop platform standards like fetch . This ensures a hassle-free integration into your existing codebase. Moreover, it addresses platform disparities, guaranteeing flawless operation across various JavaScript runtimes. Note: Ensure you've reviewed the getting started guide to acquire your credentials, browser existing APIs, or create your custom functions. 1. Install the client library 2. Start by configuring your credentials: 3. Retrieve your function id and execute it: The result's type is contingent upon your Python function's output. Types in Python are mapped to their corresponding types in JavaScript. See the available model APIs for more details. The fal client proxy Although the fal client is designed to work in any JS environment, including directly in your browser, it is not recommended to store your credentials in your client source code. The common practice is to use your own server to serve as a proxy to fal APIs. Luckily fal supports that","default_branch":null,"files":null,"tree":[],"storefront":"/r/fal-ai","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/fal-ai/fal-js/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}