Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ RUN bun install --frozen-lockfile || bun install

FROM base AS runtime
ENV NODE_ENV=production
# `ntsb-accidents` reads a 558 MB Microsoft Access database out of a zip,
# because the NTSB publishes no working API. mdbtools turns that into NDJSON.
# Nothing else in the image needs either, and both are a few hundred kilobytes.
RUN apt-get update \
&& apt-get install -y --no-install-recommends mdbtools unzip \
&& rm -rf /var/lib/apt/lists/*
# Bun's isolated linker keeps each workspace's node_modules beside it, so the
# whole deps stage comes across rather than only /app/node_modules.
COPY --from=deps /app /app
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The first deployment is [nichedb.dev](https://nichedb.dev). Run your own on anyt
| **item** | One row a source produced. Title, URL, when (with `time_known` and `precision`), tags, and the adapter's payload in `data`. |
| **feed** | A saved query over a collection. Has a page, RSS and JSON Feed renderings, an API endpoint, and followers who are told when it changes by push, email or signed webhook. |

Adapters are one file each in `packages/adapters/src`. Seventy-five ship today across twenty-seven collections:
Adapters are one file each in `packages/adapters/src`. Seventy-six ship today across twenty-seven collections:

| Collection | Adapters | Key needed |
| --- | --- | --- |
Expand Down Expand Up @@ -41,7 +41,7 @@ Adapters are one file each in `packages/adapters/src`. Seventy-five ship today a
| news | `newsfeed`, `gdelt`, `rssamplifier`, `brisk`, `news-channels` | no |
| domains | `ntld-totals`, `ntld-tlds`, `ntld-launches`, `ntld-changes` | no |
| podcasts | `podcasts` | no |
| aviation | `faa-nas-status`, `aviation-hazards`, `aviation-metar` | no |
| aviation | `faa-nas-status`, `aviation-hazards`, `aviation-metar`, `ntsb-accidents` | no (needs mdbtools + unzip, in the Dockerfile) |
| water | `nwps-river-gauges`, `coops-water-levels`, `drought-monitor` | no |
| consumer-finance | `cfpb-complaints`, `fdic-institutions`, `fdic-structure-changes` | no |

Expand Down
2 changes: 2 additions & 0 deletions packages/adapters/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ import { nhcCyclones } from './nhc.js';
import { nhtsaComplaints, nhtsaRatings, nhtsaRecalls } from './nhtsa.js';
import { npm } from './npm.js';
import { ntldChanges, ntldLaunches, ntldTlds, ntldTotals } from './ntlddata.js';
import { ntsbAccidents } from './ntsb.js';
import { nwpsRiverGauges } from './nwps.js';
import { nws } from './nws.js';
import { ocdsTenders } from './ocds.js';
Expand Down Expand Up @@ -108,6 +109,7 @@ export const ADAPTERS = [
faaAirportStatus,
aviationHazards,
aviationMetar,
ntsbAccidents,
nwpsRiverGauges,
coopsWaterLevels,
droughtMonitor,
Expand Down
Loading
Loading