Developer Resources

Developer Documentation & Assets

Access PromptForge AI API schemas, AWS CDK infrastructure templates, and download security architectural whitepapers.

PromptForge Integration Guide

Integrate variables execution natively in your backend code.

// Install SDK: npm install @teksphire/promptforge-client
import { PromptForge } from "@teksphire/promptforge-client";

const client = new PromptForge({
  apiKey: process.env.PROMPTFORGE_API_KEY,
  region: "us-east-1"
});

// Run prompt inference using variables
const response = await client.inference.run({
  promptId: "data-extractor",
  variables: {
    formatStyle: "JSON",
    inputData: "Sales: $14,000, SignupCount: 154, Region: NA"
  }
});

console.log("Model response payload:", response.output);
HTTPS SDK

AWS CDK Infrastructure Stack (TypeScript)

Deploy an isolated Cognito User Pool authorized API Gateway with AWS Lambda.

import * as cdk from 'aws-cdk-lib';
import * as cognito from 'aws-cdk-lib/aws-cognito';
import * as apigateway from 'aws-cdk-lib/aws-apigateway';
import * as lambda from 'aws-cdk-lib/aws-lambda';

export class PromptForgeStack extends cdk.Stack {
  constructor(scope: cdk.App, id: string, props?: cdk.StackProps) {
    super(scope, id, props);

    // 1. Configure Cognito User Pool
    const userPool = new cognito.UserPool(this, 'PromptForgeUserPool', {
      userPoolName: 'promptforge-enterprise-users',
      selfSignUpEnabled: false,
      signInAliases: { email: true }
    });

    // 2. Setup Serverless Execution Lambda
    const runnerLambda = new lambda.Function(this, 'InferenceRunner', {
      runtime: lambda.Runtime.NODEJS_20_X,
      handler: 'runner.handler',
      code: lambda.Code.fromAsset('lambda-fns')
    });

    // 3. API Gateway with Cognito Authorizer
    const api = new apigateway.RestApi(this, 'PromptForgeApiGateway');
    const authorizer = new apigateway.CognitoUserPoolsAuthorizer(this, 'CognitoAuth', {
      cognitoUserPools: [userPool]
    });

    const runResource = api.root.addResource('v1').addResource('run');
    runResource.addMethod('POST', new apigateway.LambdaIntegration(runnerLambda), {
      authorizer: authorizer,
      authorizationType: apigateway.AuthorizationType.COGNITO
    });
  }
}

Whitepapers & Architectural Guides

Download blueprints securely simulated from our S3 storage bucket.

2.4 MB

TEKSPHIRE AWS Migration Blueprint.pdf

Our complete 50-page guide detailing monolithic code refactoring, containerization guidelines, and multi-region routing.

1.8 MB

Cognito User Pool Hardening Guide.pdf

Detailed checklist for setting up federated SSO identity links, custom token expirations, and KMS envelope encryption.

4.1 MB

Amazon Bedrock Prompt Engineering Best Practices.pdf

Proven prompts schemas, variables declaration templates, and latency optimizations metrics for Claude 3.5 and Gemini.