Language-specific libraries that make it easy to integrate RealmKit into your applications. Get started quickly with idiomatic APIs and comprehensive documentation.
Advantages of using official libraries over direct API calls
Full type definitions and validation for better development experience
Language-specific patterns and conventions you already know
Automatic retries, error handling, and rate limiting included
Official SDK for Node.js and browser environments
npm install @realmkit/sdk
import { RealmKit } from '@realmkit/sdk';
const client = new RealmKit({
apiKey: 'your-api-key-here',
baseURL: 'https://api.realmkit.com/v1'
});
// List realms
const realms = await client.realms.list({
limit: 10,
category: 'saas'
});
// Get specific realm
const realm = await client.realms.get('saas-starter');
// Download realm
const downloadUrl = await client.realms.download('saas-starter');
Python client library with async support
pip install realmkit
from realmkit import RealmKit
# Initialize client
client = RealmKit(api_key='your-api-key-here')
# List realms
realms = client.realms.list(limit=10, category='saas')
# Get specific realm
realm = client.realms.get('saas-starter')
# Async usage
import asyncio
from realmkit import AsyncRealmKit
async def main():
async_client = AsyncRealmKit(api_key='your-api-key-here')
realms = await async_client.realms.list()
await async_client.close()
asyncio.run(main())
High-performance Go client with context support
go get github.com/realmkit/go-sdk
package main
import (
"context"
"fmt"
"github.com/realmkit/go-sdk"
)
func main() {
client := realmkit.New("your-api-key-here")
// List realms
realms, err := client.Realms.List(context.Background(), &realmkit.ListOptions{
Limit: 10,
Category: "saas",
})
if err != nil {
panic(err)
}
fmt.Printf("Found %d realms\n", len(realms.Items))
}
Third-party SDKs maintained by the RealmKit community
Ruby gem for RealmKit API integration
gem install realmkit-ruby
Composer package for PHP applications
composer require realmkit/php-sdk
Fast and safe Rust client library
cargo add realmkit
.NET Standard library for C# and F#
dotnet add package RealmKit.SDK
Examples of common SDK usage patterns across languages
try {
const realm = await client.realms.get('non-existent');
} catch (error) {
if (error instanceof RealmKitError) {
console.log('API Error:', error.message);
console.log('Status:', error.status);
console.log('Code:', error.code);
}
}
try:
realm = client.realms.get('non-existent')
except RealmKitError as e:
print(f"API Error: {e.message}")
print(f"Status: {e.status_code}")
print(f"Error Code: {e.error_code}")
realm, err := client.Realms.Get(ctx, "non-existent")
if err != nil {
if apiErr, ok := err.(*realmkit.APIError); ok {
fmt.Printf("API Error: %s\n", apiErr.Message)
fmt.Printf("Status: %d\n", apiErr.StatusCode)
}
}
const client = new RealmKit({
apiKey: process.env.REALMKIT_API_KEY,
baseURL: 'https://api.realmkit.com/v1',
timeout: 30000,
retries: 3,
userAgent: 'MyApp/1.0'
});
client = RealmKit(
api_key=os.getenv('REALMKIT_API_KEY'),
base_url='https://api.realmkit.com/v1',
timeout=30.0,
max_retries=3,
user_agent='MyApp/1.0'
)
client := realmkit.New(
os.Getenv("REALMKIT_API_KEY"),
realmkit.WithBaseURL("https://api.realmkit.com/v1"),
realmkit.WithTimeout(30*time.Second),
realmkit.WithRetries(3),
)
Help improve the official SDKs or create new community libraries
Continue your RealmKit integration journey