New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

pcsclite-server

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pcsclite-server

Store smartcard data in its memory and provide the data via web interface

latest
Source
npmnpm
Version
1.0.7
Version published
Maintainers
1
Created
Source

PCSC Lite Server

codecov

This server can be deployed on a device connected with a smartcard reader. It will provide a web server serving with the latest card information it read.

Implementation

sequenceDiagram
participant r as Card Reader
participant s as pcsclite-server
participant ce as Your Chome Extension
participant w as Your Web App

activate r
r ->> r: Read a card
r -->> s: Buffer
activate s
deactivate r
ce -->> w: Embed code to interact with localhost
s ->> s: Process and save in-memory
w ->> s: GET /cards/latest
activate w
s -->> w: { uid, citizenId, ... }
deactivate w
deactivate s

Usage

import { initializePcsc, createServer } from 'pcsclite-server';

const server = createServer();

// Modify Fastify server instance as needed
// Then initialize pcsclite using the server instance
initializePcsc(server);

server.listen({ port: 3000, host: '0.0.0.0' });

Security

It should be used with a Chrome Extension which provide a service worker embeded a piece of code to interact with the local pcsclite-server. You should implement a security layer between the pcsclite-server and your Chrome Extension so to prevent malicious actor in your network.

Keywords

api

FAQs

Package last updated on 20 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts