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

n8n-nodes-opensrp

v0.1.8

Published

n8n community node for OpenSRP; FHIR R4 field task assignment, catchment management, frontliner tracking, and community health workflow automation.

Readme

n8n-nodes-opensrp

npm npm downloads License: MIT

n8n community node for OpenSRP, a FHIR-native, offline-first field operations platform built for frontline workers in low-connectivity environments. Assign field tasks, manage catchment assets, track community health workers, and automate WASH, epidemic control, agritech, and humanitarian workflows.

n8n is a fair-code licensed workflow automation platform.


Installation

Via n8n UI: Settings → Community Nodes → search n8n-nodes-opensrp → Install

Via npm:

npm install n8n-nodes-opensrp

Credentials

| Field | Description | |----------------|----------------------------------------------------------| | Base URL | Your OpenSRP FHIR server URL (e.g. https://opensrp.example.org/fhir) | | Token Endpoint | Keycloak token URL (e.g. https://keycloak.example.org/auth/realms/opensrp/protocol/openid-connect/token) | | Client ID | OAuth2 client ID from Keycloak | | Client Secret | OAuth2 client secret from Keycloak |

Bearer Token mode is also supported for local development instances.


Resources & Operations

| Resource | FHIR Equivalent | Operations | |---------------|------------------------------|-----------------------------------| | Catchment | Location | Register Asset, Get Status | | Frontliner | Practitioner / PractitionerRole | Get Lineup, Track Performance | | FieldTask | Task | Assign Task, Monitor Status | | Resident | Patient / Group | Enroll, Get History, Search Cohort| | FieldEncounter| Encounter / Observation | Extract Observations |


Example: Assign a Field Task

{
  "resourceType": "Task",
  "status": "requested",
  "intent": "order",
  "priority": "urgent",
  "description": "Inspect Water Pump Zone B for contamination",
  "for": { "reference": "Location/CATCHMENT_ID" },
  "owner": { "reference": "Practitioner/FRONTLINER_ID" },
  "restriction": {
    "period": {
      "end": "2026-06-30T00:00:00+00:00"
    }
  }
}

Returns the created FHIR Task resource including the assigned OpenSRP UUID.


Example: Register a Catchment Asset

{
  "resourceType": "Location",
  "status": "active",
  "name": "Borehole Pump, Village Musanze North",
  "description": "Community water point serving 340 households",
  "type": [{ "text": "Water Point" }],
  "position": {
    "longitude": 29.5833,
    "latitude": -1.4997
  }
}

Real-World Use Cases

WASH (SDG 6.1): Register boreholes as catchment assets. Assign urgent repair tasks to water engineers the moment a contamination observation is logged offline.

Epidemic Control (SDG 3.3): Search resident cohorts by village and vaccination status. Mass-deploy chemoprophylaxis tasks to all CHWs in active transmission zones.

Agritech Extension (SDG 2.4): Group smallholder farmers by crop cycle. Schedule seasonal advisory visits on extension workers' offline task lists.

Humanitarian Intake (SDG 10.2): Enroll displaced persons into longitudinal case records. Track aid distribution history across the full duration of a camp stay.


Compatibility

  • OpenSRP: FHIR R4 compatible instances (Keycloak-secured)
  • n8n: 1.0+
  • Node.js: 22+

API Reference

POST /fhir/Location
GET  /fhir/Location/{id}
GET  /fhir/Practitioner
GET  /fhir/Practitioner/{id}
POST /fhir/Task
GET  /fhir/Task/{id}
GET  /fhir/Task?status=completed&_lastUpdated=gt{timestamp}
GET  /fhir/Patient/{id}
GET  /fhir/Patient?_tag={locationId}
POST /fhir/Patient
GET  /fhir/Encounter?subject={id}&_count=50

Resources


Contributing

  1. Fork the repository
  2. Create a feature branch: git checkout -b feat/your-feature
  3. Commit: git commit -m 'feat(opensrp): your change'
  4. Push and open a Pull Request

Support


License

MIT © 2026 Monfort Brian N. | 宁俊


Acknowledgments

Built to connect community field operations to national health and humanitarian infrastructure. Part of an open-source interoperability stack for outbreak response, WASH asset management, and last-mile service delivery across low-resource settings.