npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@cdmx/wappler_sc_opensearch

v0.1.1

Published

Opensearch log service

Downloads

6

Readme

🚀 Wappler Server Connect — OpenSearch Logs

Send and fetch logs from an OpenSearch cluster using Wappler Server Connect actions.

This module provides two Server Connect actions: a logger (to store events) and a query (to search them).


🔑 Required environment variables

  • OPS_USERNAME — OpenSearch username
  • OPS_PASSWORD — OpenSearch password
  • OPS_URL — OpenSearch URL (include protocol, e.g. https://opensearch.example.com)

Tip: For production, store these in your deployment environment or Wappler's secure variables.


🧰 Wappler Server Connect actions

  1. 📥 Action: Opensearch Logger

Purpose: index a log/event into OpenSearch.

Fields:

  • Name — Action display name
  • Timestamp — Event timestamp (e.g. NOW_UTC)
  • Log Level — e.g. info, warn, error
  • Log ID — ID to group related events
  • Action User ID — User id from your auth provider
  • Action User Email — User email
  • Event Type — Event or action name
  • Message — The main log message
  • Domain — Domain name (e.g. site.example.com)
  • Service — Service name (e.g. payments)
  • Is Note — Optional boolean to mark the entry as a note
  • Message Context — Optional JSON object with extra details

OpenSearch options (logger):

  • Index — Target index (e.g. nodejs-logs-*)
  • Refresh — Enable to make the document searchable immediately (may impact performance)
  • SSL/TLS Insecure — Optional boolean; skip TLS verification (use only for testing)
  • Output — Optional; include action response in the output
  1. 🔎 Action: Opensearch Query

Purpose: run searches against your OpenSearch indices.

Fields:

  • Name — Action display name
  • Search Value — Search string or query fragment
  • Search Field — Field to search in
  • Output Fields — Which fields to return
  • Sort Field — Field to sort by (default: descending behavior)
  • Sort Orderdesc or asc
  • Timestamp Field — Timestamp field name (e.g. @timestamp, ts)
  • From Date / To Date — Optional time range (e.g. NOW_UTC)
  • Is Note — Optional boolean

OpenSearch options (query):

  • Index — Index name (e.g. nodejs-logs-*)
  • SSL/TLS Insecure — Optional boolean; skip TLS verification
  • Output — Optional; include action response in the output

⚙️ Example payloads

Logger example (body fields):

{
  "timestamp": "NOW_UTC",
  "level": "error",
  "log_id": "order-123",
  "user_id": "42",
  "user_email": "[email protected]",
  "event": "payment_failed",
  "message": "Payment failed due to insufficient funds",
  "domain": "shop.example.com",
  "service": "payments",
  "is_note": false,
  "context": { "order_id": 123, "attempt": 1 }
}

Query example (simple search):

{
  "search_value": "payment_failed",
  "search_field": "event",
  "output_fields": ["@timestamp","level","message","context"],
  "sort_field": "@timestamp",
  "sort_order": "desc",
  "from_date": "NOW_UTC-7d",
  "to_date": "NOW_UTC"
}

⚠️ Notes & best practices

  • Use a dedicated index (or index pattern) per environment or service for easier retention and management.
  • Avoid enabling Refresh in high-volume logging flows — it increases memory and IO.
  • Only set SSL/TLS Insecure in development or when you control the network.

📄 License & credits

This repository provides helper actions for Wappler Server Connect to interact with OpenSearch.