tat is a tiny API testing tool for people who want fast, file-based HTTP tests without a heavy framework.
Write tests in JSON or YAML. Run them with one command. Assert on status codes and response fields, capture values from one request, and reuse them in the next. It is a good fit for smoke tests, API workflows, local verification, and simple CI checks.
Many API testing tools are good, but they often push you toward a GUI, a large test runtime, or a more complex scripting model than you actually need.
tat takes a narrower approach:
- plain
.tat.jsonand.tat.ymlfiles - simple assertions
- response capture and request chaining
- JSON and JUnit output for CI
- a VS Code extension for Test Explorer and CodeLens support
If you want "Postman-style API checks, but in plain files and easy to version-control", this project is aimed at that space.
env:
baseUrl: https://api.example.com
suites:
- name: Users
tags: [smoke]
tests:
- name: Get user
method: GET
url: "{{baseUrl}}/users/1"
assert:
- "$status == 200"
- "name is not null"Run it:
npx @nanotiny/tiny-api-test run users.tat.ymltat-cli/publishes@nanotiny/tiny-api-testvscode-extension/adds Test Explorer, CodeLens, and validation support in VS Codewebsite/contains the project websitedocs/contains internal design notes and implementation plans
CLI:
npm install -g @nanotiny/tiny-api-testVS Code extension:
code --install-extension nanotiny.tat-test-runner- API smoke tests checked into a repo
- simple integration flows that need request chaining
- teams that prefer JSON/YAML over test code for common cases
- CI jobs that need console, JSON, or JUnit output
tat-cli/— core CLI package, schema, examples, and testsvscode-extension/— VS Code integration for running and validatingtatfileswebsite/— static project sitedocs/— planning documents and design notes
npm --prefix tat-cli run build
npm --prefix tat-cli run lint
npm --prefix tat-cli test
npm --prefix vscode-extension run build
npm --prefix vscode-extension run lint- CLI usage, schema details, and more examples: tat-cli/README.md
- VS Code extension details: vscode-extension/README.md
This project is already usable, but still early. The CLI is the most mature part of the repository today. The public surface and positioning will continue to improve as the project gets more real-world usage.
MIT