Skip to content

Node.js integration starter

Run Sharp Signals, Signup Protection, Email Verification, IP Intelligence and Domain Intelligence from one local Node.js application. Start with prepared responses without an account, then enable real API requests from your server. The interface and scenario guides are in English; the archive also includes short launch instructions in German, Spanish and Russian.

Download version 0.1.0-rc.3 and its SHA-256 checksum. The source and scenario guides use the MIT licence included in the archive. The bundled Onest font retains its separate OFL licence. This is a release candidate, verified on Linux x64 with Node.js 22.12.0 and 26.13.1. macOS and Windows have not been tested.

Use Node.js 22.12 or newer. Extract the archive and start the application:

Terminal window
tar -xzf emvero-node-0.1.0-rc.3.tar.gz
cd emvero-node
npm start

Open http://localhost:3443. There are no npm dependencies to install. Without a .env file, the example runs in mock mode: prepared responses stay local, remote browser scripts do not load and no credits are spent. Your input does not change the synthetic evidence in a prepared response.

Choose a product and a prepared outcome, then select Run prepared check. Select New operation to change the product or input. You can inspect the full response, HTTP attempts and financial state below the result. Run npm test for local tests that use prepared responses and local fake APIs.

Scenario Input and API route What to read
Sharp Signals A browser visit; POST /v1/signup-signals, without email signals.status, observations, incomplete checks and risk
Signup Protection Email and a browser visit; POST /v1/signup-checks Nested email and signals results, then the signup recommendation
Email Verification An email address; POST /v1/verifications with Full or Domain depth Status, recommended action, reason codes and uncertainty
IP Intelligence One public IP address; POST /v1/ip-checks Country, network, list observations and complete or partial coverage
Domain Intelligence A domain; GET /v1/domain/{domain} with Standard or Extended Mail infrastructure, available registration evidence and freshness

The archive’s scenarios/ directory explains each request and its limits. For the API contract, use the reference.

Copy .env.example to .env inside the extracted directory. Set:

EMVERO_MODE=live
EMVERO_API_KEY=your_secret_server_api_key

Create the server API key in your Emvero account. Keep it in the server environment or .env, outside browser code, chat, logs and Git. Restart the example after changing configuration.

Email, IP and domain checks need no page key or browser connection. Enter data you are authorised to check. The IP scenario accepts one public address, excluding private, loopback and special-use ranges; it does not infer a public visitor IP from a localhost connection.

In live mode, the button reads Run live check. Each new operation can spend credits. The server reads the current credit catalog before admission and refuses a changed price, a disabled operation or a maximum above your configured limit. The catalog read cannot lock the API’s price atomically.

The defaults allow ten new operations per process, one request at a time and at most 15 credits per operation. You can reduce EMVERO_MAX_OPERATIONS and EMVERO_MAX_CREDITS in .env. An uncertain outcome uses an operation slot; restarting the process loses the saved attempts and resets that local counter. Keep the same process running during a controlled test.

Sharp Signals and Signup Protection also need a ready Sharp Signals connection, a public page key, the connection’s client code and HTTPS trusted by your browser. The public page key starts with fp_key_; the secret server API key starts with emv_. They have different roles.

Create a page key in the Sharp Signals account panel with the exact allowed origin https://localhost:3443, including its port. Keep the account’s chosen decision mode unless you intend to change its registration policy.

Use a development certificate trusted on your machine. For example, with mkcert:

Terminal window
mkcert -install
mkcert -cert-file localhost.pem -key-file localhost-key.pem localhost 127.0.0.1

mkcert -install adds a development CA to your trust store. Keep its private key private. If your organisation manages certificates, use its approved local certificate instead. Keep certificate verification enabled.

Add these values to .env, alongside the secret server key:

EMVERO_PORT=3443
EMVERO_ORIGIN=https://localhost:3443
EMVERO_TLS_CERT=localhost.pem
EMVERO_TLS_KEY=localhost-key.pem
EMVERO_PAGE_KEY=your_public_page_key
EMVERO_CLIENT_ID=your_public_client_code

Restart the example and open https://localhost:3443. Select Sharp Signals or Signup Protection, allow browser collection and Visitor ID storage, then select Prepare visit token before entering the form. The example loads the pinned token wrapper, service-managed probe and Visitor ID helper described in Browser collection.

The helper uses a cookie, localStorage and IndexedDB. Capture runs after consent, refreshes after the first input and repeats every twelve minutes while active. Submission uses the latest successful token and stops collection; it does not wait for another capture. You can revoke consent after submission to stop collection and clear the stored Visitor ID. Reload to unload the scripts. Blocked storage can leave a token without Visitor ID evidence.

An evaluated signals response still has limits: read the observations and checks that did not run. An empty finding list does not establish identity or prove that every check ran. The action is a signup-policy recommendation; allow_with_email_confirmation literally means email confirmation. General visit rules belong to your application.

Email unknown is inconclusive. A domain-level check does not establish mailbox existence. IP complete describes observation coverage, and network labels alone do not establish abuse. A domain partial result remains useful evidence with gaps.

The maximum reserve and final charge are separate. The interface preserves financial response headers; a missing charge is unknown rather than zero. Signup Protection can return two financial operation IDs, signals first and email second. Read financial state reads both records and displays their states and charges separately. Financial GET requests do not retrieve an IP result or repeat the original check. See Credits.

The server saves the request body and idempotency key before sending. Duplicate submissions share one running attempt. Recover this attempt keeps that request and key; New operation explicitly starts another.

Email and combined pending results use their saved GET route without another signals evaluation. At most two extra HTTP attempts use the original request, subject to the deadline and Retry-After. Stop waiting stops the local wait; it does not cancel work already admitted by Emvero.

The example retains attempts for up to thirty minutes, or conservatively for twenty-four hours after admission for domains. Expiry and process restart lose the saved inputs and recovery key. Check your account before repeating an uncertain operation whose key has been lost. The API’s domain replay window runs for twenty-four hours after completion; see Idempotency.

The local listener binds to 127.0.0.1. It includes session-bound attempts, Origin and CSRF checks and an allowlist of public files. Public hosting, production authentication and deployment behind a proxy require your own application design.

Start with src/operations.mjs for route and input mapping, src/api-client.mjs for HTTP and financial reads, src/attempt-store.mjs for attempt lifetime and admission, and public/capture.mjs for consent and token collection. Each archive includes a file manifest and the API and browser revisions used by that version.

Real API checks covered evaluated signals and combined results, negative email at both depths without contacting a mail server, a complete IP result and partial domain profiles at both depths. Recipient-level SMTP success, complete domain profiles and the full live failure matrix were not exercised. Local fake-API tests cover pending recovery and request errors separately.

Version 0.1.0-rc.3 stops subsequent script loads when browser collection consent is revoked during loading. Its local tests cover that correction; the real API checks above were performed with 0.1.0-rc.2.