Resources

Resources

A curated list of useful links, reference guides, tools, and integrations to help you get the most out of ts-guard.


SDKs


Scanner Reference

  • Input Scanners
    • Prompt Injection
    • Toxicity
    • Language & Anonymization
    • Code / Topic / Competitor Blocking
  • Output Scanners
    • Bias, Prompt Injection (Reflected), Malicious URLs
    • Code Leakage, Language Mismatch, Banned Topics

Each scanner has:

  • Code examples
  • Threshold options
  • Tagging support
  • YAML compatibility

Integration Guides

  • FastAPI or Flask
  • LangChain Tool integration
  • React frontends with validation API wrappers
  • Middleware examples for Django/Express

Configuration Utilities

  • Sample .ts-guard.yaml:
    ts-guard:
      api_key: ${TS_GUARD_API_KEY}
      scanners:
        - name: prompt_injection
        - name: toxicity
      strict_mode: true
* Environment setup:

  ```bash
  export TS_GUARD_API_KEY="your-api-key"

Deployment & Hosting

  • Host as a microservice behind your API
  • Works with AWS Lambda, Vercel Functions, Docker, and Heroku
  • Scan locally or cloud-triggered via REST

Best Practices

  • Use YAML config in production (not hardcoded)
  • Pair input + output scanners for stronger protection
  • Adjust thresholds based on use case (e.g. education vs. enterprise)
  • Use tags (e.g. "base", "sensitive", "strict") for rule groups

Community & Support


Roadmap

  • ✅ Output scanner support
  • ✅ YAML-based configuration
  • 🔜 TypeScript SDK
  • 🔜 VSCode plugin
  • 🔜 Web-based scanner configurator