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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@aremjolsnes/grep-sdk

v0.9.10

Published

Offisiell SDK for Grep (KL06) – databasen for Kunnskapsløftet.

Readme

@udir/grep-sdk 📚

Developer SDK for Grep data from the Norwegian Directorate for Education and Training (Udir).

Build Status

grep-sdk removes the guesswork when integrating with the Norwegian Directorate for Education and Training's Grep database (LK20 and LK06). The library provides ready-made data models, automatic code documentation (IntelliSense), and type-safe communication with the API.

Why use this? 🚀

Previously, you had to look up the Grep Wiki to understand the field names in the JSON response. Now you get the answer right in your editor.

  • Full Type Safety: We know the difference between Kompetansemaal and Kjerneelement so you avoid runtime errors.
  • Rich Documentation: Definitions from the Grep ontology appear as help text when you hover over fields in the code.
  • Universal Support: Handles both the Knowledge Promotion (LK20) and the Knowledge Promotion Reform (LK06) with automatic fallback.

📦 Installation

Node.js / TypeScript

npm install @udir/grep-sdk

Python

pip install udir-grep

.NET / C#

Add the project reference or install the package:

dotnet add package Udir.GrepSdk

(See dotnet_sdk/README.md for details)

Java

repositories { maven { url = uri("https://maven.pkg.github.com/Utdanningsdirektoratet/grep-sdk") } }

dependencies { implementation 'no.udir.grep:java_sdk:0.9.5' } (See java_sdk/README.md for details)


💻 Usage

TypeScript (Node.js)

The client automatically checks if the code belongs to LK20 or LK06.

import { GrepClient } from '@udir/grep-sdk';

const client = new GrepClient();

async function fetchPlan() {
  // Fetches Mathematics (LK20)
  const plan = await client.getLaereplan("MAT01-05");
  
  console.log(`Title: ${plan.tittel.nob}`);
  console.log(`Type: ${plan['grep-type']}`); // .../laereplan_lk20

  // Fallback: Fetches old RLE plan (LK06)
  const oldPlan = await client.getLaereplan("RLE1-02");
}

Python

The SDK uses Pydantic for validation and type safety.

from udir_grep import GrepClient

client = GrepClient()

# Fetches Mathematics (LK20)
plan = client.get_laereplan("MAT01-05")

# Note: Field names with hyphens become underscores in Python
print(f"Title: {plan.tittel['nob']}")
print(f"Type: {plan.grep_type}")

.NET / C#

using Udir.GrepSdk;

var client = new GrepClient();
var plan = await client.GetLaereplanAsync("MAT01-05");

Java

GrepClient client = new GrepClient();
Object plan = client.getLaereplan("MAT01-05").get();

Coverage

The SDK provides coverage of all 44 object types in Grep, including:

  • Curricula (Læreplaner), Competence Aim Sets (Kompetansemålsett), and Competence Aims (Kompetansemål)
  • Core Elements (Kjerneelementer) and Interdisciplinary Topics (Tverrfaglige temaer)
  • Assessment Arrangements (Vurderingsordninger) and Exam Forms (Eksamensformer)
  • Education Programmes (Utdanningsprogram) and Programme Areas (Programområder)
  • Subject Codes (Fagkoder)

License

MIT © Utdanningsdirektoratet