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

@legendsoflearning/lol-sdk-core

v0.0.4

Published

Core client library for Legends of Learning API

Readme

@legendsoflearning/lol-sdk-core

Core TypeScript SDK for Legends of Learning GraphQL APIs.

Installation

npm install @legendsoflearning/lol-sdk-core @apollo/client graphql

Available APIs

| API | Import Path | Description | |-----|-------------|-------------| | Teachers | @legendsoflearning/lol-sdk-core/teachers | Teacher portal - assignments, students, groups, games | | Public | @legendsoflearning/lol-sdk-core/public | Public game access, search, questions | | Play | @legendsoflearning/lol-sdk-core/play | Student gameplay - assignments, activities, progress | | Parents | @legendsoflearning/lol-sdk-core/parents | Parent portal - children, subscriptions, progress | | Admins | @legendsoflearning/lol-sdk-core/admins | Admin portal - districts, schools, users | | Developers | @legendsoflearning/lol-sdk-core/developers | Developer portal - games, versions, uploads | | Agents | @legendsoflearning/lol-sdk-core/agents | Internal agent management | | Translation Hub | @legendsoflearning/lol-sdk-core/translation-hub | Translation management for games |

Usage

Import Types and Documents

// Import typed documents for queries
import {
  GetAssignmentPlayDocument,
  CompleteActivityDocument,
  type GetAssignmentPlayQuery
} from '@legendsoflearning/lol-sdk-core/play'

import {
  GetCurrentUserDocument,
  ListChildrenDocument,
  type ListChildrenQuery
} from '@legendsoflearning/lol-sdk-core/parents'

import {
  GetDistrictsDocument,
  type GetDistrictsQuery
} from '@legendsoflearning/lol-sdk-core/admins'

With Apollo Client

import { useQuery, useMutation } from '@apollo/client'
import {
  GetAssignmentPlayDocument,
  CompleteActivityDocument
} from '@legendsoflearning/lol-sdk-core/play'

function AssignmentPlayer({ assignmentId }: { assignmentId: string }) {
  const { data, loading } = useQuery(GetAssignmentPlayDocument, {
    variables: { assignmentId, awakening: false }
  })

  const [completeActivity] = useMutation(CompleteActivityDocument)

  // data is fully typed!
  const play = data?.assignmentPlay

  // ...
}

Agents API

import {
  // Agent queries/mutations
  GetAgentsDocument,
  GetAgentDocument,
  CreateAgentDocument,
  UpdateAgentDocument,
  // Tool queries/mutations
  GetAgentsToolsDocument,
  GetAgentsToolDocument,
  AssignToolToAgentDocument,
  // Schedule queries/mutations
  GetAgentsSchedulesDocument,
  CreateAgentsScheduleDocument,
  // Conversation queries/mutations
  GetAgentsConversationsDocument,
  GetAgentsConversationDocument,
  SendAgentsMessageDocument,
  // Run queries/mutations
  GetAgentsRunsDocument,
  GetAgentsRunDocument,
  CancelAgentsRunDocument,
  // Usage queries
  GetAgentsUsageStatsDocument,
  GetAgentsUsageDailyDocument,
  // Admin queries/mutations
  GetAgentsCurrentAdminDocument,
  // Types
  type Agent,
  type AgentRole,
  type AgentStatus
} from '@legendsoflearning/lol-sdk-core/agents'

API Coverage

Teachers API

  • User management, groups, students
  • Assignments and assignment sets
  • Games and learning objectives
  • Questions and assessments
  • Review mode

Public API

  • Public game access (GetPublicGame)
  • Game listings (GetGames)
  • Search collections (SearchCollections)
  • Questions (GetQuestions)
  • Answer checking (CheckAnswer)

Play API

  • Assignment play (GetAssignmentPlay)
  • Activity management (CompleteActivity, AnswerQuestion)
  • Video progress (ReportVideoLessonProgress)
  • Mini-game progress (ReportMiniGameProgress, SaveMiniGameState)
  • Real-time subscriptions (AssignmentPaused, AssignmentStopped, etc.)

Parents API

  • Current user (GetCurrentUser, GetMyAccountDetails)
  • Children management (ListChildren, CreateStudent, ConnectToStudent)
  • Student details (GetStudentDetails, GetAccountPageStudentDetails)
  • Progress tracking (GetStandardProgression, GetFocusAreaParentStatuses)
  • Subscriptions (GetSubscriptionPlans, SubscribePlayer)
  • Fluency facts (GetFluencyFacts, GetFluencyFactProgressStatuses)

Admins API

  • Districts (GetDistricts)
  • States (GetStates)
  • Schools (GetSchools)
  • Users (GetUsers)
  • District regions (GetDistrictRegions)

Developers API

  • Current developer (GetCurrentDeveloper)
  • Games management (GetDeveloperGames, GetDeveloperGame, UpdateGame)
  • Game versions (CreateGameVersion, SubmitGameVersion)
  • File uploads (RequestSignedUploadUrl, CompleteFileUpload)
  • User management (CreateDeveloperUser, UpdateDeveloperPassword)

Development

Building

pnpm build

Updating Schemas

./scripts/sync-schemas.sh

Adding New Documents

See scripts/README.md for detailed instructions on adding new APIs or updating documents.

Changelog

See CHANGELOG.md for release history.