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

swedish-medications

v2.0.0

Published

Swedish medication lookup skill for OpenClaw agents - FASS database integration

Readme

🇸🇪 Swedish Medications

npm version License: MIT

A medication lookup tool for Swedish pharmaceuticals (FASS database). Built as an OpenClaw skill for AI agents, but works great standalone too.

Features

  • 🔍 Quick lookup of common Swedish medications
  • 💊 Brand → substance mapping (Alvedon → paracetamol)
  • 📋 Key info: dosage, side effects, warnings, OTC status
  • 🔗 FASS links for complete official information
  • 🤖 AI-agent ready - works with OpenClaw, LangChain, etc.

Installation

For AI Agents (OpenClaw)

npm install -g swedish-medications

Then add to your OpenClaw skills:

# ~/.openclaw/config.yaml
skills:
  - swedish-medications

As a CLI Tool

npm install -g swedish-medications
fass-lookup paracetamol

As a Library

npm install swedish-medications
const { lookupMedication, findMedication } = require('swedish-medications');

// Full formatted output
console.log(lookupMedication('Alvedon'));

// Just the data
const med = findMedication('ibuprofen');
console.log(med.dose);  // "Adult: 200-400mg every 4-6h, max 1200mg/day (OTC)"

Usage

Command Line

# By substance name
fass-lookup paracetamol

# By brand name  
fass-lookup Alvedon

# Multi-word queries
fass-lookup "alvedon 500mg"

Example Output

## Swedish Medication Lookup: paracetamol

### Paracetamol (Alvedon, Panodil, Pamol)

**Use:** Pain relief, fever reduction
**Dosage:** Adult: 500-1000mg every 4-6h, max 4g/day
**OTC:** Yes (receptfritt)
**ATC Code:** N02BE01
**Warnings:** Avoid with liver disease, limit alcohol

### Full Information on FASS
🔗 https://fass.se/search?query=paracetamol

---
*This is informational only. Always consult healthcare professionals for medical advice.*

For AI Agents

OpenClaw Skill

This package works as an OpenClaw skill. When installed, your AI agent can:

  1. Look up medications when users ask about them
  2. Translate between Swedish brand names and substances
  3. Provide dosage and safety information
  4. Link to official FASS documentation

Trigger phrases the agent recognizes:

  • "What is Alvedon?"
  • "Tell me about paracetamol"
  • "Can I take Ipren for headaches?"
  • "What's the dosage for sertralin?"

Using with Other Agents

The module exports clean functions you can wire into any agent framework:

const { lookupMedication, findMedication, COMMON_MEDICATIONS } = require('swedish-medications');

// For tool/function calling
const medicationTool = {
  name: "swedish_medication_lookup",
  description: "Look up Swedish medication information by name",
  parameters: {
    query: { type: "string", description: "Medication name (brand or substance)" }
  },
  execute: (params) => lookupMedication(params.query)
};

API Reference

lookupMedication(query: string): string

Returns formatted markdown with medication info and FASS link.

findMedication(query: string): object | null

Returns raw medication data object or null if not found.

{
  name: "paracetamol",
  brands: ["Alvedon", "Panodil", "Pamol"],
  use: "Pain relief, fever reduction",
  dose: "Adult: 500-1000mg every 4-6h, max 4g/day",
  otc: true,
  warnings: "Avoid with liver disease, limit alcohol",
  atc: "N02BE01"
}

getFassUrl(query: string): string

Returns the FASS.se search URL for a query.

COMMON_MEDICATIONS: object

The raw medications database object.

Supported Medications

The quick-lookup database includes common Swedish medications:

| Category | Examples | |----------|----------| | Pain/Fever | Paracetamol, Ibuprofen, Diclofenac | | Allergies | Loratadin, Cetirizin | | Stomach | Omeprazol | | Mental Health | Sertralin | | Diabetes | Metformin | | Cholesterol | Atorvastatin | | Antibiotics | Amoxicillin |

For medications not in the database, it generates a FASS search link.

Testing

npm test

Runs 26 tests covering database integrity, lookup functions, and edge cases.

Data Sources

⚠️ Disclaimer

This tool provides information only, not medical advice. Always:

  • Follow prescribed dosages
  • Consult healthcare professionals for medical decisions
  • Check official sources (FASS.se) for complete information

License

MIT © Birger Moëll


Made with 🇸🇪 for the Swedish healthcare community