Nikasa, home Request an invite
DocsWhat Nikasa is

What Nikasa is

Nikasa runs the old and the new build of your app in a private sandbox, sends both the same requests, and reports what the new build does differently.

On this page

Nikasa compares two builds of your app, an old one and a new one, and tells you what the new one does differently. You write no assertions and no expected answers, and you do not change your app's code.

nk, the Nikasa command, needs two images of your app and a compose file that starts them. It can draft that file for you.

Nikasa compares what the two builds actually do, on every pull request, whoever wrote it.

What it finds #

On Nikasa's own small sample shop, a new build changed three things, and no test was written for any of them:

  • A renamed field. total is gone from every answer that holds an order, and total_cents is new.
  • A new outside call. Each order placed now calls a fraud check service. No response shows that.
  • More queries. The request that lists orders now makes 5 calls to Postgres, where it made 1. No response shows that either, and a review of the diff could easily miss it.

Read the report it printed, or see what it found in real upgrades of publicly available apps, on the home page.

What happens in a compare #

A compare has six steps:

  1. Sandbox. Nikasa starts your compose file as its own Docker Compose project on a private network: your app, plus its real databases, queues and other services.
  2. Requests. A container called the driver sends your requests to the app, one at a time. Each request is one scenario in the report.
  3. Capture. Nikasa records the traffic on that network, along with each service's logs, the files it changed and how each container ended.
  4. Reading. It decodes each connection, and reads TLS using session keys the services log.
  5. Learning. The old build runs several times. Whatever differs between those identical runs, such as ids, timestamps and ordering, is learned as varying and is not reported as a change.
  6. Comparing. The new build runs, and anything it does differently is checked again with more runs of both builds before it counts as a change.

Some details of those steps:

A report uses a few words of its own. Words in a report says what each one means.

What it can see #

Area What Nikasa sees
Responses Status, headers and bodies.
Calls between services The SQL statements, cache calls, queue messages and HTTP calls the app made while serving each request, and how many, on every connection it can read.
What a run leaves behind Database rows, changed files, and how containers ended.
Logs and telemetry Log lines, metrics, spans and shipped logs.
Startup and background work Migrations, schema changes and timers.
Outside calls Which hosts the app reached beyond the sandbox, and what it sent them where it can read the call.

What it cannot see names the limits.

Every report also says which endpoints your requests reached and which they missed, so a quiet report tells you how much it covered. See Reading the report.

What it cannot see #

Nikasa cannot see these, and the report says so where it applies:

Limit What it means
What your requests never reach A change behind an endpoint no request calls does not show until one does.
TLS with no keys to read Nikasa reads TLS from programs that log session keys or that it can read keys from. Any other TLS connection stays encrypted, and the report names it.
A protocol it does not read A connection in one is compared by its exchanges with sizes shown. UDP in one, such as QUIC, is passed over. The report says so.
Which request caused a call, if requests overlap Nikasa names them and does not count their cost. The standard driver, which sends your Hurl files, sends one request at a time, so this comes up with a driver of your own.
Crash safety Nikasa turns off disk syncing in the Postgres, MySQL and MariaDB it starts, the same for both builds, so a change in how data survives a crash will not show.
A change that shows only sometimes It is handled differently from one that shows every time: see Changes that show only sometimes.

Is it for you? #

It fits when #

  • Your service runs in Linux containers, and a compose file can start it with its databases and queues.
  • You are upgrading a framework, a library or a database, and want to know what really changed. See Check an upgrade.
  • You want every pull request, whoever wrote it, checked on what it does, including the queries and calls your tests never look at. Nikasa reports the differences, and you decide which ones matter.

Any language that runs in a container can be compared, as Nikasa watches the network and not your code. Plain connections are read whatever the language. TLS is read for Java, Python, Node, .NET 9 and later and programs on a dynamically linked OpenSSL, and for Go and .NET 8 when Docker allows privileged containers.

Look elsewhere when #

  • Your service cannot run in containers on 64-bit Intel or AMD Linux.
  • You want load tests or response times. Requests go one at a time, and a time under a second never counts as a change.
  • You want to watch production. Nikasa runs against throwaway copies of your app and watches no live traffic. It can compare the image you run in production with a new build, with both in the sandbox.
  • You want to check how a page looks. Nikasa reads what services send each other, and never sees a screen.

Two more things to know #

No AI model is involved. Nikasa decodes traffic and compares it. Your own coding agent can read a report through read-only commands.

Nikasa is not a hosted service. It runs on your own machines and sends nothing to us. It is proprietary, closed-source software.

Where it runs #

nk is available only for 64-bit Intel or AMD Linux, with Docker and Compose v2. That can be your own machine, a Linux VM or a CI runner.

Your setup What to do
A Mac or a Windows PC Use a Linux machine or VM you can reach, or your CI, and build your images there. You can read the reports anywhere, as they are plain text, Markdown and JSON files.
Arm, including an Arm Linux VM on an Apple silicon Mac nk does not run.
CI Use a VM-based runner with its own Docker. Windows agents and pods in a Kubernetes cluster do not fit, so if your CI is pod-based, send the Nikasa job to a runner with Docker. How CI works lists what a runner needs.

Getting access #

Nikasa is in early access, by invite. Request an invite to get nk. Early access is free for teams who share feedback. We'll tell you about pricing before anything is ever charged.

Your invite names one GitHub repository, in the form owner/name. It holds Nikasa's releases, the GitHub Action and the Jenkins library. These pages write it as <nikasa-repo>, so put that name wherever you see it.

Your invite also says which GitHub token to use:

  • Reading the releases takes a token that can read that repository.
  • The sample in Get started takes one that can read Nikasa's images.

Before you run it #

  • nk itself contacts nobody of ours. It sends us no telemetry, and makes no update check and no licence check. Downloading it is separate.
  • It needs some host access, and adds settings and small tools to the containers it starts. Security and your data lists exactly what it runs and what leaves your machine.

Who makes it #

See About Nikasa on the home page. For questions, or if something in these pages is wrong, write to hello@nikasa.dev.

Next steps #

Written for nk 0.3.14. Something wrong or unclear? Write to hello@nikasa.dev.