Blog6 min read

We have more decision records than dependencies

11 outside packages. 78 written decisions. Zero AI SDKs. How we built a whole AI platform on a tiny dependency list, and why AI coding agents finally make that a sane idea.

A small pile of 11 boxes labelled dependencies next to a tall tower of 78 sheets labelled decision records, with a sticky note saying “Yes, we counted.”

Our platform depends on 11 outside packages. We have written 78 decision records. As far as we can tell, we are the only startup with more paperwork than dependencies.

We did that on purpose. Every npm install invites a stranger into the same process that reads your clients’ data. Most of them are lovely people. Some of them get hacked. And back in 2016, one developer unpublished eleven lines of code called left-pad and a large chunk of the internet could not build anything for an afternoon.

So we keep the guest list short. Those 11 packages carry the whole of Yohita Private AI: agents, a code sandbox, 18 kinds of database, 48 plugins, live dashboards, meeting notes and single sign-on. It talks to Anthropic, OpenAI and Gemini without installing a single one of their SDKs.

Doing this used to be a terrible idea, because writing everything yourself is slow. Then AI coding agents arrived and quietly changed the maths. More on that below, plus the bits that hurt.

outside packages, server and web app together
11
once you count everything they drag in
155
AI SDKs, AI frameworks or ORMs
0
decision records. Yes, more than packages.
78
Counted from the production install on 3 December 2026. Our desktop meeting app is separate and has its own short list.

The whole list. Yes, all of it.

Here is every third-party package the platform asks for by name, and why we did not write it ourselves. Everything else is our code, or comes free with Node.js and the browser.

PackageWhat it doesWhy we did not write our own
fastifyThe web serverParsing raw web traffic is a security wall. Not a weekend project.
react, react-domThe web appThe interface is big. Writing our own React would be a cry for help.
echartsChartsChart axes are where good intentions go to die.
pgPostgres, plus Redshift, CockroachDB and GreenplumDatabase protocols have decades of weird edge cases. Let the experts keep them.
mssql, mysql2, oracledb, hdbSQL Server, MySQL and MariaDB, Oracle, SAP HANASame. A home-made driver would be the weakest link in every single query.
node-sql-parserReads SQL properly, for our SQL checksEvery query an AI writes goes through it. A home-made parser is exactly what an attacker would hope for.
nodemailerSends emailEvery mail server is different in small, cursed ways.
Snowflake, BigQuery and ClickHouse need no driver at all. We call their web APIs with the fetch that comes with Node.js.

Then we counted the whole family tree, because one line in a package file can mean seventy packages on disk. Guess which one.

  • mssqlSQL Server driver74
  • fastifyWeb server48
  • pgPostgres driver15
  • mysql2MySQL and MariaDB driver11
  • hdbSAP HANA driver4
  • react-dom, echarts, node-sql-parserThree each3
  • react, nodemailer, oracledbBring nobody along1
Packages installed for each dependency, counting itself. One SQL Server driver brings 74. Thanks, enterprise.

What we wrote instead. It is less heroic than it sounds.

Most of what people install is a convenience wrapper around something boring: a web request, a SQL file, a zip archive. Boring things are easy to write. Here is what we skipped.

What we neededWhat people usually installWhat we did
Talk to AI modelsEvery provider’s SDK, or an AI frameworkTwo small adapters, about 360 lines, streaming and tool calls included. One speaks Anthropic, one speaks the OpenAI style that Gemini and plenty of others copy.
Run code in a sandboxThe sandbox company’s SDKTheir plain web API, plus a tiny helper of ours built only on what Node.js ships with
Change the databaseA migration framework, an ORMPlain SQL files and a 110-line runner. Queries are hand-written with bound parameters.
Excel downloadsA spreadsheet libraryA 170-line Excel writer that runs in the browser
Read Word, Excel, PowerPoint, PDFA library per formatA small zip reader and a good-enough PDF text reader
Track errorsA paid error serviceTwo tables, plus a scrubber that strips secrets before anything is saved
48 plugins for everyday appsRun another product’s plugin enginePorted to our own small plugin format, every copied file and its license written down

Calling an AI provider is a documented web request. Doing it ourselves means we see every byte we send. Moving a client from one provider to another, or sending all calls through a gateway, is a new address. Not a rewrite. Not a “breaking changes in version 5” afternoon.

Okay, but who actually cares?

  • Your client’s IT teamSecurity reviews ask for every third-party part. Ours fits on one screen. Less to mirror for an offline install, less to patch when the internet is on fire.
  • Our engineersNearly every line a request touches is one we wrote and can read. Bugs end in our code. Nothing changes under us between Tuesday and Wednesday.
  • Founders and investorsFewer doors for a supply-chain attack, less upgrade churn, and no SDK deciding which AI models the product may use. Clients pick their models, not our vendors.

npm install is the most trusting sentence in software.

The plot twist: AI coding agents

The classic excuse for installing a package is time. Nobody wants to spend a week writing an Excel exporter. Then AI coding agents showed up. 250 of our 258 commits were written together with one. A small, tested piece of our own now costs an afternoon, and most of that afternoon is reading what it wrote.

The catch: AI agents love installing things. Ask one to format a date and it reaches for a package before you finish the sentence. So the rule lives in the one file every agent reads before it touches our code: no new runtime package without a written decision record.

  1. Agent: “I’ll just install…”The fastest way out of any problem
  2. The rule: nopeNot without a written record
  3. Agent writes the caseWhat, why, license, what else it tried
  4. A human decidesOften it turns out to be 100 lines
How our AI agents meet the rule. The record goes into the repo with the change.

Making the agent explain itself is the whole trick. Halfway through writing “why we need this package”, it often works out that it needs about a hundred lines of plain code instead. Same as people, really.

When we do say yes

The rule is not “never”. It is “explain yourself”. We say yes when our own version would be the weakest link: security parsers, database protocols, anything with signatures. Here is a real yes, from our meeting notes app.

Decision record 0069

Automatic updates for the meeting helper
The problem
Pilot clients stayed on old builds with bugs we had already fixed. Nobody reinstalls an app because we asked nicely.
The package
The updater from the desktop framework we already use. Permissive open-source license.
Why not ours
Writing our own means redoing signature checks and install steps for every operating system. That is exactly the code we should never write ourselves.
The limits
Signed updates only, never during a meeting, and IT can switch it off.

Approved: one package, where ours would be worse

Shortened from the real record. Packages added since the project’s first days each got one of these, license included.

What it costs us. We are not saints.

This is not free, and pretending otherwise would be the most startup thing ever. The bill so far:

  • Some features wait. Our API import reads OpenAPI files in JSON but not YAML, because YAML needs a parser nobody has justified yet. One narrow network check has a known gap that another package would close. It is written down, waiting its turn.
  • Our readers are good, not perfect. The PDF reader takes the text from a document. Hand it a scanned page with no text in it and you get nothing back.
  • We own the upkeep. When an AI provider changes its API, we change our adapter. No SDK release to wait for, and none to blame.
  • We write the tests too. Everything we build instead of installing comes with tests, and our SQL checks come with a whole collection of attack strings. That is real work.

Steal this for your own team

  1. Put the rule where your agents read it.

    A rule on a wiki page is a wish. A rule in the instructions every AI coding agent loads gets checked on every change.

  2. Make the record cheap.

    One page: what, why, the license, what else you tried. If it takes an hour, people will sneak around it.

  3. Count the whole tree.

    One line in a package file can mean seventy packages on disk. Look before you nod.

  4. Use the web API, skip the SDK.

    Most cloud services are a documented API with an SDK sitting on top. The API is usually all you need.

  5. Never roll your own crypto or security parser.

    Home-made is great for convenience code. For anything guarding a door, use the most battle-tested code there is, and write down why.

Fair questions

Isn’t this just “not invented here” with extra steps?

That would be rewriting things other people do better. We do the opposite for anything hard and security-critical, like SQL parsing, database protocols and update signatures. We only write our own where the package is a thin wrapper around something simple.

Doesn’t it slow you down?

Less than you would think. With AI coding agents, a small piece of our own often takes less time than choosing, configuring and later upgrading a package. The real cost is features we postpone, and we list those openly.

Is your code safer than a popular package?

Not by magic. It is safer in one specific way: it does only what we need, and we have read all of it. It has tests, and anything security-critical stays with well-known packages.

No AI framework at all?

None. Agents, tools, streaming and model calls are our own code over plain web requests. That is also why one workspace can use Anthropic, OpenAI, Gemini, Azure or a compatible model it hosts itself, with the same agents.

← All posts