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

@univ-lehavre/atlas-redcap-service

v0.5.0

Published

HTTP microservice exposing a REST API for REDCap, built with Hono

Readme

@univ-lehavre/atlas-redcap-service

HTTP microservice exposing a REST API for REDCap, built with Hono.

Installation

pnpm add @univ-lehavre/atlas-redcap-service

Configuration

Create a .env file:

PORT=3000
REDCAP_API_URL=https://redcap.example.com/api/
REDCAP_API_TOKEN=YOUR_32_CHAR_HEXADECIMAL_TOKEN

Running

# Development
pnpm dev

# Production
pnpm build && pnpm start

Docker

# Start with mock REDCap server
pnpm docker

# Build images
pnpm docker:build

# Stop containers
pnpm docker:down

Testing

With a real REDCap server

  1. Configure .env with your REDCap credentials (see Configuration)

  2. Create .env.local for the test script:

baseUrl=http://localhost:3000
  1. Run:
# Terminal 1: start the service
pnpm dev

# Terminal 2: run the test
pnpm test:redcap

With Docker (mock server)

pnpm test:redcap:docker

What the test checks

  • Service connectivity
  • REDCap server accessibility and latency
  • API token validity
  • Available instruments and fields
  • Sample records

API Endpoints

| Method | Endpoint | Description | | ------ | --------------------------------- | --------------------------------------- | | GET | /health | Simple health check | | GET | /health/detailed | Detailed health with instruments/fields | | GET | /api/v1/records | Export records | | PUT | /api/v1/records | Import (upsert) records | | GET | /api/v1/records/:id/pdf | Download PDF | | GET | /api/v1/records/:id/survey-link | Get survey link | | GET | /api/v1/users/by-email | Find user by email |

Example

# Export records
curl "http://localhost:3000/api/v1/records?fields=record_id,name"

# Import (upsert) records
curl -X PUT "http://localhost:3000/api/v1/records" \
  -H "Content-Type: application/json" \
  -d '{"records": [{"record_id": "123", "name": "John"}]}'

Documentation

See the full documentation for detailed API reference.

License

MIT