This folder contains the .NET 8 backend for DevFoundry, including the core abstractions, tool implementations, CLI, and API.
Core abstractions and interfaces:
ITool- Interface that all tools must implementToolDescriptor- Metadata about toolsToolInput/ToolResult- Input/output models
Built-in tool implementations:
- JSON Formatter
- JSON ⇄ YAML Converter
- Base64 Encoder/Decoder
- UUID Generator
- Hash Calculator (MD5, SHA-1, SHA-256, SHA-512)
Runtime services:
IToolRegistry- Tool discovery and retrievalToolRegistry- Implementation with DI support
Command-line interface using System.CommandLine:
list- List all available toolsdescribe <toolId>- Show tool detailsrun <toolId>- Execute a tool
ASP.NET Core minimal API:
GET /api/tools- List all toolsPOST /api/tools/{toolId}/run- Execute a tool
dotnet builddotnet testcd src/DevFoundry.Cli
dotnet run -- list
dotnet run -- describe json.formatter
echo '{"test":true}' | dotnet run -- run json.formattercd src/DevFoundry.Api
dotnet runThe API will be available at http://localhost:5000.
DevFoundry includes comprehensive demos showcasing all tools with visual output and pipeline workflows!
Command-Line Demo (Recommended first):
# Windows
cd demo
.\run-demo.ps1 -Fast
# Linux/macOS
cd demo
./run-demo.sh --fastWeb-Based Demo:
- Start the API:
cd src/DevFoundry.Api && dotnet run - Open
demo/web-demo.htmlin your browser
See demo/README.md for complete demo documentation.
- All 5 tools in action with sample data
- Before/after output comparisons
- Real-world pipeline workflow (JSON → Format → UUID → Hash → Base64)
- Beautiful colored terminal output or interactive web UI
- All outputs saved to
demo/output/directory