Scan your whole stack
From OX Research Newsroom
Are you using sheet-feeder?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v1.0.0
sheet-feeder was last scanned on 23 Nov 2026 at version 1.0.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 1.0.0 LATEST | 23 Nov 2026 | No rules fired |
| 0.0.0-stage | 23 Nov 2026 | Not shown |
Findings for v1.0.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 1.0.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Send rows of data to a Google Sheet from Node.js.
import { sheetFeeder } from "sheet-feeder";
const sheet = sheetFeeder(process.env.SHEET_URL, { secret: process.env.SHEET_SECRET });
await sheet.append({ name: "Asha", email: "asha@example.com", plan: "pro" });
fetch built into Node.js 18+. Your Node.js app Google
┌──────────────────┐ POST JSON ┌──────────────────────────┐
│ sheet-feeder │ ────────────► │ Apps Script web app │
│ sheet.append(…) │ │ (Code.gs, in your sheet) │
│ │ ◄──────────── │ checks the secret │
└──────────────────┘ {"ok":true} │ writes the rows │
└────────────┬─────────────┘
▼
📄 Your Google Sheet
You deploy apps-script/Code.gs inside your sheet as a web app. Google gives it a URL.
The npm package sends your rows to that URL, and the script checks the secret and writes them.
npm install sheet-feeder
npx sheet-feeder init
This prints the steps below with a freshly generated secret filled in.
npx sheet-feeder init --script-only | pbcopy copies it for you.SECRET and paste in the secret from step 2./exec.Copy .env.example to .env and fill it in:
SHEET_URL=https://script.google.com/macros/s/…/exec
SHEET_SECRET=your-secret
Never commit .env.
npx sheet-feeder test
✔ Web app is reachable (sheet-feeder script v1.0.0)
✔ Wrote 1 test row to the "Sheet1" tab
All good! Your sheet is ready to receive data.
// A list of cells, left to right
await sheet.append(["Asha", 25, "Delhi"]);
// An object: keys are matched to the header row (row 1)
await sheet.append({ name: "Ben", age: 30 });
// Several rows in one request (faster)
await sheet.append([
{ name: "Cy", age: 22 },
{ name: "Dev", age: 27, city: "Pune" }, // "city" becomes a new column
]);
When you send objects to an empty tab, the keys become the header row. Use object rows in tabs that have a header row, or that are empty.
const orders = sheetFeeder(url, { secret, sheet: "Orders" }); // created if it doesn't exist
For several tabs, create one feeder per tab.
const log = sheetFeeder(url, {
secret,
batchSize: 50, // send when 50 rows are waiting...
flushInterval: 5000, // ...or every 5 seconds, whichever comes first
});
log.append({ event: "signup", user: "asha" }); // no need to await
// Before your program exits, send anything still waiting:
await log.close();
import { sheetFeeder, SheetFeederError } from "sheet-feeder";
try {
await sheet.append(["Asha"]);
} catch (error) {
if (error instanceof SheetFeederError && error.code === "unauthorized") {
console.error("Check SHEET_SECRET");
}
}
Temporary problems (timeouts, network errors, Google server errors, a busy sheet) are retried automatically, waiting 1s, 2s, then 4s.
sheetFeeder(url, options)Creates a feeder for one web app URL.
| Option | Default | Description |
|---|---|---|
secret |
required | Must match the SECRET script property |
sheet |
first tab | Tab to write to. Created if missing |
batchSize |
1 |
Send when this many rows are waiting. 1 sends every append straight away |
flushInterval |
0 |
Also send waiting rows every N ms. 0 turns it off |
timeout |
15000 |
Give up on a request after N ms |
retries |
3 |
Retries for temporary errors |
retryDelay |
1000 |
Wait before the first retry, in ms. Doubles each time |
allowFormulas |
false |
Let text starting with = run as a formula |
onError |
logs to console | (error) => void, called whenever a batch fails |
| Method | Description |
|---|---|
append(rows) |
Add one row or a list of rows. Resolves with { added, sheet } once written |
flush() |
Send all waiting rows now |
close() |
Send waiting rows and stop accepting new ones |
ping() |
Check the script is reachable. Resolves with { ok, name, version } |
| You send | The cell gets |
|---|---|
text, numbers, true/false |
the same value |
null / undefined |
an empty cell |
| an object or list | its JSON text, e.g. {"a":1} |
"=SUM(A1:A3)" |
the text =SUM(A1:A3) (a formula only with allowFormulas: true) |
a Date |
its ISO text, e.g. 2026-11-23T10:00:00.000Z |
Every error is a SheetFeederError with code, message, retryable and (when known) status.
| Code | Meaning | Retried? |
|---|---|---|
unauthorized |
Wrong secret | No |
secret_not_configured |
No SECRET script property yet |
No |
invalid_rows |
Rows have the wrong shape | No |
invalid_sheet_name |
Tab name isn't 1–100 characters of text | No |
bad_response |
The URL didn't reply with sheet-feeder JSON | No |
http_error |
HTTP error such as 404 (usually a wrong URL) | No |
closed |
append() after close() |
No |
busy |
Sheet locked by other requests for over 10s | Yes |
timeout |
No reply in time | Yes |
network_error |
Couldn't connect | Yes |
rate_limited |
HTTP 429 from Google | Yes |
server_error |
HTTP 5xx from Google | Yes |
npx sheet-feeder init # setup steps + a new secret
npx sheet-feeder init --script-only # just the Apps Script code
npx sheet-feeder test [url] [secret] # check the connection, write a test row
npx sheet-feeder test --sheet Orders # ...to a specific tab
test reads SHEET_URL and SHEET_SECRET from the environment if you don't pass them.
| Problem | Fix |
|---|---|
bad_response |
Make sure the URL ends in /exec and Who has access is Anyone. |
| Changes to the script don't take effect | Deploy a new version: Deploy → Manage deployments → ✏️ Edit → New version → Deploy. |
unauthorized |
SHEET_SECRET must exactly match the SECRET script property, with no extra spaces. |
secret_not_configured |
Add the SECRET script property (Project Settings → Script Properties). |
| An authorization error page | Open the script, run doPost once with ▶ Run, and allow access. |
| Rows land in the wrong columns | Object rows are matched to row 1. Check the header names match your keys exactly. |
| Formulas show as text | That's the safe default. Pass allowFormulas: true if the data is trusted. |
| Slow | Each request takes 1–3 seconds. Send many rows per append(), or use batching. |
SECRET script property.git clone https://github.com/RudrakshBairagi/GoogleSheet_datafeeder.git
cd GoogleSheet_datafeeder
npm test
There's nothing to install. The tests run the client against a fake web app server
(test/helpers/mock-server.js), and run Code.gs against fake Google services
(test/helpers/apps-script-sandbox.js), so no Google account is needed.
apps-script/Code.gs the script that runs inside Google Sheets
src/index.js the npm package: sheetFeeder(), batching, retries
src/errors.js SheetFeederError and friendly messages
src/index.d.ts TypeScript types
bin/cli.js the sheet-feeder command (init, test)
examples/ runnable examples
test/ automated tests
MIT
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.