For Gamers

The recommended way to interact with the Castr GÜRŲ API is by using one of our official SDKs. Today, Castr GÜRŲ offers fine-tuned JavaScript, Ruby, PHP, Python, and Go libraries to make your life easier and give you the best experience when consuming the API.

Official libraries

PHP

A popular general-purpose scripting language that is especially suited to web development.

Read more

Ruby

A dynamic, open source programming language with a focus on simplicity and productivity.

Read more

Node.js

Node.js® is an open-source, cross-platform JavaScript runtime environment.

Read more

Python

Python is a programming language that lets you work quickly and integrate systems more effectively.

Read more

Go

An open-source programming language supported by Google with built-in concurrency.

Read more

Frameworks Collections

Utilize Frameworks Content Loaders for managing information about your Farcaster frames.

Setup for ALL available Content Loaders

// src/content.config.ts
import { defineCollection } from 'astro:content'
import {
  eventsLoader,
  messagesLoader,
  profilesLoader,
  sessionsLoader,
} from '@castrguru/astro'

// Setup events
const events = defineCollection({
  loader: eventsLoader({ since: 0 }), // default = new events
  schema: /* TODO */,
})

// Setup messages
const messages = defineCollection({
  loader: messagesLoader({ fid: '<enter-your-farcaster-id>', since: 0 }), // default = new messages
  schema: /* TODO */,
})

// Setup profiles
const profiles = defineCollection({
  loader: profilesLoader(),
  schema: /* TODO */,
})

// Setup sessions
const sessions = defineCollection({
  loader: sessionsLoader({ status: 'active' }),
  schema: /* TODO */,
})

// Export all collections
export const collections = {
  events,
  messages,
  profiles,
  sessions,
}

Please don't commit your Castr GÜRŲ password to GitHub!

React Hooks

Setup for ALL available React Hooks

// TODO

Vue.js Plug-ins

Setup for ALL available Vue.js plug-ins

// TODO

Was this page helpful?