Resources
Resources
A curated list of useful links, reference guides, tools, and integrations to help you get the most out of ts-guard
.
SDKs
Python SDK
→ PyPI: ts-guard
→ GitHub Repository
→ Installation GuideTypeScript SDK (Coming soon)
→ Integration with Vite, Node.js, Next.js, etc.
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
- Join our Discord — feedback, support, community tips
- Open Issues on GitHub
- Email us: support@testsavant.ai
Roadmap
- ✅ Output scanner support
- ✅ YAML-based configuration
- 🔜 TypeScript SDK
- 🔜 VSCode plugin
- 🔜 Web-based scanner configurator