Agentic-API-Testing-Tool
Health Warn
- No license — Repository has no license file
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 6 GitHub stars
Code Fail
- rm -rf — Recursive force deletion command in apps/cli/package.json
- fs module — File system access in apps/cli/src/commands/init.ts
- new Function() — Dynamic code execution via Function constructor in apps/cli/src/commands/simulate-workflow.ts
- exec() — Shell command execution in apps/cli/src/commands/simulate-workflow.ts
- process.env — Environment variable access in apps/cli/src/commands/simulate-workflow.ts
- network request — Outbound network request in apps/cli/src/commands/simulate-workflow.ts
- network request — Outbound network request in apps/cli/src/commands/simulate.ts
Permissions Pass
- Permissions — No dangerous permissions requested
No AI report is available for this listing yet.
Lightweight context-aware agentic api scanner & tester directly in your terminal

Jetic
AI-Native API Behavior Testing
Jetic is a programmable developer platform that automatically understands, models, and tests an application's API behavior directly from its source code. Instead of requiring developers to manually write API tests or configure endpoints, Jetic statically analyzes the codebase, discovers the API structure and constraints, builds a live behavioral graph, and (eventually) uses that graph to automatically generate and execute test suites.
Features (v0.1.0 MVP)
- Source Code Discovery: Uses
ts-morphto deeply inspect TypeScript/Node.js/Express projects without running them. - Nested Router Resolution: Correctly resolves deep router prefixes (e.g. mapping
app.use('/api/orders', ordersRouter)torouter.get('/:id')). - Behavioral Modeling: Outputs a versioned
.jetic/model.jsonschema that maps discovered HTTP methods, paths, and exact source provenance (file and line number) for every endpoint. - CLI Utilities: A fast, thin command-line interface that brings API intelligence directly to your terminal.
Architecture & Monorepo Structure
Jetic is organized as a pnpm monorepo using TypeScript, divided into the following packages:
apps/cli: The mainjeticCommander executable.packages/core: Core configuration, error handling, and filesystem abstractions.packages/model: The strongly-typedBehavioralModelschema.packages/scanner: The static analysis engine (ExpressScanner, AST path resolution, normalizer).examples/express-shop: An intentionally complex Express application fixture for automated testing.
Getting Started
Installation & Build
# Clone the repository
# Make sure you have pnpm installed (npm install -g pnpm)
pnpm install
pnpm build
Running the Example
The fastest way to understand Jetic is to run it against the included express-shop example.
cd examples/express-shop
# Set Apikey for openrounter
SET OPENROUTER_API_KEY="API_KEY"
# Initialize the Jetic configuration
node ../../apps/cli/dist/index.js init
# Scan the project and build the Behavioral Model
node ../../apps/cli/dist/index.js scan
# Inspect the discovered endpoints
node ../../apps/cli/dist/index.js inspect
# Inspect a specific endpoint in detail to see source provenance
node ../../apps/cli/dist/index.js inspect endpoint GET /api/orders/:id
# Simulate all endpoints against the live server (ensure the server is running)
node ../../apps/cli/dist/index.js simulate endpoint --all
# Simulate a specific endpoint with verbose output
node ../../apps/cli/dist/index.js simulate endpoint GET /api/orders/:id --verbose
# Generate + execute (uses AI)
node ../../apps/cli/dist/index.js simulate workflow
# Custom goal
node ../../apps/cli/dist/index.js simulate workflow --goal "Admin creates exam, student enrolls, completes, gets results"
# Use specific environment
node ../../apps/cli/dist/index.js simulate workflow --env staging
# Only generate the workflow.json, don't execute
node ../../apps/cli/dist/index.js simulate workflow --generate-only
# Use an existing workflow.json (skip AI generation)
node ../../apps/cli/dist/index.js simulate workflow --workflow .jetic/workflow.json
# Clear memory before run
node ../../apps/cli/dist/index.js simulate workflow --clear-memory
How It Works
- AST Extraction: When you run
jetic scan, theExpressScanneruses the project'stsconfig.jsonto parse the Abstract Syntax Tree (AST) of your backend. - Path Resolution: It detects
app.usemiddleware and standaloneRouterdefinitions, seamlessly connecting prefix strings to actual route handlers. - Normalization: The raw routing data is flattened and verified.
- Behavioral Model: The data is exported into a versioned JSON format (
.jetic/model.json) that can be consumed by other tools (like the upcoming test generator).
Next Steps / Roadmap
jetic test: Use the populated Behavioral Model to synthesize smart requests, automatically evaluating boundary values, authorization errors, and missing parameters.- Constraint Discovery: Extract logic conditions (
quantity > 0, role assertions) directly from if-statements in the handler code. - Workflow Inference: Automatically determine the relationship between operations (e.g. recognizing that
POST /ordersdepends on the JWT fromPOST /login).
License
ISC
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found