Running it

PeekInside Cloud

Record requests from your staging and production servers, encrypted on the server before they're sent and decrypted in your browser.

For servers, PeekInside sends what it records to PeekInside Cloud. It's encrypted on your server before it's sent, and decrypted in your browser.

Set it up#

  1. Create an account and your organization. No card is needed to start.

  2. Create a project. PeekInside shows its API key once: copy it.

  3. Set the key in your server's environment:

    PEEKINSIDE_API_KEY=pik1.p…
  4. Check it: npx peekinside test, run where the key is set, sends a test error to the project. The setup page shows it as soon as it arrives.

  5. Deploy. No code changes: PeekInside.attach(app) sees the key, switches to cloud mode and turns the local dashboard off.

Use one project per app, and label each environment with PEEKINSIDE_ENV (such as staging): the label is shown with every request. Each deploy is recognized by its commit on most hosts, or set PEEKINSIDE_RELEASE (see releases).

Encryption#

  • On your server. Each project has a key pair, created in your browser. The API key contains the project's public key, and the SDK encrypts every request with it (ECDH P-256, HKDF-SHA-256, AES-256-GCM) before it leaves your server. The API key can send requests, but it can't read them.
  • What stays readable. PeekInside Cloud stores URLs, headers, bodies, queries, logs and exceptions only as ciphertext. In the clear it keeps what charts, filters and plan limits need: when a request happened, its method, status, duration and sizes, the environment name, the release (the deploy label, such as a commit hash), and its counters (queries, slow queries, N+1 statements, outgoing calls, log lines, exceptions); for an exception, when it happened, the environment, the release, and whether it was handled or fatal; for a job run, the job's name, queue and schedule, when it ran, its duration, status and attempt; for a log line, its time, level and source; the processes' samples (memory, CPU, event-loop delay); for a heap profile, when it was read and the bytes it found; and for a window of event-loop blocks, when, how many and how long; the functions in both (names, files, packages) are sealed. Your browser decrypts the rest.
  • AI tools. An MCP key lets a member's AI tools read a project: npx peekinside mcp decrypts its records on their computer, with the project key wrapped for a secret PeekInside never sees.
  • Standard protection (the default). Signing in (with an email code or Google) unlocks a new browser, so PeekInside keeps your account key sealed under a key its servers hold, stored apart from your data.
  • Advanced protection. Turn it on from the Security page, and only your own browsers, passkeys and recovery key hold your account key: end-to-end encryption.

Delivery#

  • Off the request path. Requests are queued and sent in batches every second, of at most 100 records and 4 MB. If PeekInside Cloud can't be reached, batches are retried with backoff; the queue is bounded, so memory stays flat.
  • Crashes are encrypted and sent right away. If PeekInside Cloud can't be reached, the encrypted batch is saved and sent when the app starts again.
  • Short-lived processes (scripts, serverless functions) should call await peekInside.flush() before exiting.

Plans and data#

PeekInside Cloud is priced per organization, with every project included: Hobby ($10 a month, one person, 1M requests, 14 days of history), Pro ($29, your whole team, 5M requests, 30 days, alerts, and the leak and block finder), Team ($59, 15M requests, 60 days, and MCP keys for your AI tools) and Business ($99, 30M requests, 90 days). Paying yearly gets two months free. Every new organization gets 7 days of Hobby free, without a card. When the free days or a plan end without a new plan, PeekInside Cloud pauses: your servers record nothing (the SDK logs it once) and check every two minutes, so they start sending again on their own within about two minutes of choosing a plan (servers on peekinside 1.4.0 or older need a restart). Without a plan, what your apps recorded is deleted 30 days after the pause, saved records included: the people who see the billing get an email when the countdown starts, 5 days before and the day before, and the billing page shows the date. Your account, organizations, members, projects and settings stay, and with a plan your servers record again. A request counts once, with its queries, calls, logs and errors; once a month's requests are used, errors and the requests behind them are still recorded, and a top-up pays for the rest: 1M requests at a time, for less on bigger plans (10 on Hobby, 8 on Pro, 5 on Team, 3 on Business). See pricing. A saved record is kept past the history, for good while the organization has a plan.

Paying#

Choose a plan, or buy a top-up, on the Plan & billing page. You pay by card or PayPal through Paddle, our reseller: Paddle bills you, handles sales tax and VAT, and sends the receipts.

  • Upgrading (a bigger plan, or paying yearly) is charged right away, for what's left of the period you paid for.
  • Downgrading applies now and is settled on your next bill: nothing you paid is refunded mid-period.
  • Cancelling keeps your plan until the end of the period you paid for; you can keep it after all until then.
  • Payment method and invoices open Paddle's portal, where you change your card or download invoices. Your payments are listed on the billing page too, each with its invoice.
  • Emails. Everyone who can see billing hears from PeekInside when a plan starts, renews, changes, is set to end, ends, or when a payment doesn't go through, and when a top-up is added. Paddle sends the receipts and invoices.

Owners (and roles with billing management) pay and change the plan; roles that can see billing see the plan, usage and payments.

Teams and roles#

A company workspace has a team (on Pro and up); a personal workspace is for one person, and becomes a company workspace from its settings. Each member has a role, which decides what they can read and change. Four roles are built in:

Role What it can do
Owner Everything, including the plan and deleting the organization
Admin Everything but changing the plan and deleting the organization: members, roles, projects, API keys, settings
Developer Read, save and clear every kind of data, resolve exceptions, create and change projects, manage API keys and alerts
Viewer Read requests, exceptions, logs, jobs and the runtime

The Roles page is for members whose role manages roles (the owner, admins, and your own roles that may). Each role's card there says what it sees and changes, and who has it. An organization adds its own roles there: start from a built-in one, then choose a level of access for each area.

  • Project data. Requests (with their queries), logs and jobs: no access, view, or view and clear. Exceptions: no access, view, resolve, or resolve and clear. The runtime: no access or view.
  • Projects. Projects: view only, create and change, or create, change and delete. API keys: view only, or create and revoke. Alerts: view only, or create and change. Saved records: view only, or save and unsave.
  • Organization. Settings: view only, or change. Members: view only, or manage. Roles: no access, or manage. Billing: no access, view, or manage.

A role opens in a side panel, where it can also be given to members directly. The page compares every role side by side.

  • The server enforces roles. It hands a project's data only to members whose role reads it, and refuses every change a role doesn't allow. Pages a role can't read leave the sidebar, and a project opens on the first page its role can read.
  • No one hands out more than they have. A member makes, changes and gives only roles that do no more than their own. Only the owner makes admins, and only the owner deletes the organization.
  • Deleting a role works once nobody has it: give its members and open invitations another role first.

Email#

Members of an organization get these emails about its projects, as each one chooses in their notification settings, each email with a one-click Stop these emails:

  • The weekly digest, on Mondays: each project's requests, error rate, p95, exceptions, crashes, deploys and job runs over the last seven days, next to the week before. Exception messages, routes and users are encrypted on your servers, so the digest only has the counts; the issues open in your browser.
  • Error alerts, when an error PeekInside hasn't seen before happens (see alerts).
  • App down, when no process of an environment has reported for a while, and when it's back (see Runtime).
  • Job alerts, when a scheduled job misses its run, and when it runs again (see Jobs): in the app unless a member asks for email too.
  • Your own alerts, on anything PeekInside records, for those set to email (see Alerts).
  • Usage warnings, at 80% and 100% of the month's requests, to those who see billing.

Each goes only to members whose role reads what it's about: error alerts to roles that read exceptions, app down to roles that read the runtime, job alerts to roles that read jobs, and the digest to roles that read requests, exceptions or jobs.

Self-hosting? The digest is sent by GET /api/cron/digest, and missed runs and apps that went down are checked by GET /api/cron/monitors, both with Authorization: Bearer <CRON_SECRET> (the API also runs them on its own schedule).