Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@gestell/sdk
Advanced tools
A fully featured SDK with extensive code completion for interacting with the Gestell Platform. Compatible with both web and server side environments.
First, get an API Key from https://platform.gestell.ai. Then install @gestell/sdk
npm install @gestell/sdk
Or...
bun add @gestell/sdk
Second, load the API Key into your terminal session, or, pass it into the SDK:
# Load it into your terminal session
export GESTELL_API_KEY = "..."
// Or, load it into the SDK library directly
import Gestell from '@gestell/sdk'
export const GESTELL_API_KEY = process.env.GESTELL_API_KEY || '...'
export const gestell = new Gestell({ key: GESTELL_API_KEY })
Gestell will also read and load these environment variables from a .env
file.
Finally, start using the Gestell Platform SDK. The SDK can be used both on the client and server side. A public facing app should use it server side only due to the API Key being passed into the SDK and requests:
// start.ts
import Gestell from '@gestell/sdk'
export const gestell = new Gestell()
export async function start() {
const collections = await gestell.collection.list()
console.log(collections)
}
start()
# Run your workflow
bun run start.ts
You can review guides on common workflows and use cases for the Gestell Platform by going to https://gestell.ai/docs. Here are the most common use cases:
All workflows in the SDK use the bun runtime.
Opening an issue to address your concern is recommended. However, if you plan to submit a pull request (PR), please adhere to the following:
Align with the Repo Structure: Organize canonical functionality within the appropriate folders. Provide clear documentation and usage annotations in the base class structures.
Pass All Unit Tests: Ensure all bun
unit tests pass and maintain near full code coverage.
Provide a Detailed PR Description: Clearly outline the changes made and the specific issues they resolve in your pull request.
The workflow is as follows:
# Compile a new dist
bun run build
# Run unit tests
export GESTELL_API_URL="..." # If running on staging or locally
export GESTELL_API_KEY="..."
bun run test
# Verify and test the package externally with bun link
bun link
mkdir ../test
cd ../test
bun init
bun link @gestell/sdk
# ... Write test workflows
bun run index.ts
FAQs
The Official Gestell Node.js SDK
We found that @gestell/sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.