Overview
The @blocklet/server-js library is the official JavaScript client for interacting with the Blocklet Server GraphQL API. It provides a convenient and powerful interface for both Node.js and browser-based applications to communicate with a Blocklet Server instance, simplifying tasks like managing blocklets, users, and services.
Whether you're building a web application that integrates with Blocklet Server or automating administrative tasks, this library abstracts away the complexity of raw GraphQL requests, offering a streamlined, developer-friendly experience.
Key Features#
Universal Compatibility
Designed as an isomorphic library, it works seamlessly in both Node.js server-side environments and modern web browsers, allowing you to share code across your stack.
Full API Coverage
Provides strongly-typed methods for all available GraphQL queries and mutations, ensuring you have access to the full power of the Blocklet Server API.
Simplified Authentication
Handles authentication transparently. Easily configure the client with auth tokens or access keys for secure communication. Learn more in our [Authentication Guide](./authentication.md).
Developer Friendly
The API is designed to be intuitive and easy to use, enabling you to focus on your application's logic instead of boilerplate for API communication.
Next Steps#
Ready to integrate your application with Blocklet Server? Here's where to go next: