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.

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
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.
| Package | What it does | Why we did not write our own |
|---|---|---|
| fastify | The web server | Parsing raw web traffic is a security wall. Not a weekend project. |
| react, react-dom | The web app | The interface is big. Writing our own React would be a cry for help. |
| echarts | Charts | Chart axes are where good intentions go to die. |
| pg | Postgres, plus Redshift, CockroachDB and Greenplum | Database protocols have decades of weird edge cases. Let the experts keep them. |
| mssql, mysql2, oracledb, hdb | SQL Server, MySQL and MariaDB, Oracle, SAP HANA | Same. A home-made driver would be the weakest link in every single query. |
| node-sql-parser | Reads SQL properly, for our SQL checks | Every query an AI writes goes through it. A home-made parser is exactly what an attacker would hope for. |
| nodemailer | Sends email | Every mail server is different in small, cursed ways. |
Then we counted the whole family tree, because one line in a package file can mean seventy packages on disk. Guess which one.
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 needed | What people usually install | What we did |
|---|---|---|
| Talk to AI models | Every provider’s SDK, or an AI framework | Two 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 sandbox | The sandbox company’s SDK | Their plain web API, plus a tiny helper of ours built only on what Node.js ships with |
| Change the database | A migration framework, an ORM | Plain SQL files and a 110-line runner. Queries are hand-written with bound parameters. |
| Excel downloads | A spreadsheet library | A 170-line Excel writer that runs in the browser |
| Read Word, Excel, PowerPoint, PDF | A library per format | A small zip reader and a good-enough PDF text reader |
| Track errors | A paid error service | Two tables, plus a scrubber that strips secrets before anything is saved |
| 48 plugins for everyday apps | Run another product’s plugin engine | Ported 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.
- Agent: “I’ll just install…”The fastest way out of any problem
- The rule: nopeNot without a written record
- Agent writes the caseWhat, why, license, what else it tried
- A human decidesOften it turns out to be 100 lines
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
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
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.
Make the record cheap.
One page: what, why, the license, what else you tried. If it takes an hour, people will sneak around it.
Count the whole tree.
One line in a package file can mean seventy packages on disk. Look before you nod.
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.
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.
