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

@urantia/api

v0.2.1

Published

Typed client for the Urantia Papers API (api.urantia.dev)

Readme

@urantia/api

Typed TypeScript client for the Urantia Papers API.

Zero dependencies — uses the native fetch API.

Installation

npm install @urantia/api

Quick Start

import { UrantiaAPI } from '@urantia/api'

const api = new UrantiaAPI()

// List all papers
const { data: papers } = await api.papers.list()

// Get a specific paragraph
const { data: paragraph } = await api.paragraphs.get('2:0.1')

// Search
const { data: results } = await api.search.fullText('divine love')

// Semantic search
const { data: results } = await api.search.semantic('the nature of God')

Authenticated Endpoints

Pass a token to access user-specific endpoints:

const api = new UrantiaAPI({ token: accessToken })

// Get user profile
const { data: user } = await api.me.get()

// Bookmarks
await api.me.bookmarks.create({ ref: '2:0.1', category: 'Favorites' })
const { data: bookmarks } = await api.me.bookmarks.list()

// Notes
await api.me.notes.create({ ref: '2:0.1', text: 'Insightful passage' })

// Reading progress
await api.me.readingProgress.mark(['2:0.1', '2:0.2', '2:0.3'])
const { data: progress } = await api.me.readingProgress.get()

// Preferences
await api.me.preferences.update({ theme: 'dark', fontSize: 16 })

All Endpoints

| Endpoint | Method | Description | |----------|--------|-------------| | api.toc.get() | GET | Full table of contents | | api.papers.list() | GET | All 197 papers | | api.papers.get(id) | GET | Paper with paragraphs | | api.paragraphs.get(ref) | GET | Paragraph by reference | | api.paragraphs.random() | GET | Random paragraph | | api.paragraphs.context(ref) | GET | Paragraph with surrounding context | | api.search.fullText(params) | POST | Full-text search | | api.search.semantic(params) | POST | Semantic vector search | | api.entities.list(options) | GET | List entities | | api.entities.get(id) | GET | Entity details | | api.entities.paragraphs(id) | GET | Paragraphs mentioning entity | | api.audio.get(ref) | GET | Audio URLs for paragraph | | api.cite.get(ref, style) | GET | Generate citation | | api.embeddings.get(refs) | POST | Get vector embeddings | | api.me.get() | GET | User profile (auth) | | api.me.update(data) | PUT | Update profile (auth) | | api.me.bookmarks.* | — | Bookmark CRUD (auth) | | api.me.notes.* | — | Note CRUD (auth) | | api.me.readingProgress.* | — | Reading progress (auth) | | api.me.preferences.* | — | User preferences (auth) |

Paragraph References

The API accepts three reference formats interchangeably:

  • Standard: 2:0.1 (paper:section.paragraph)
  • Global: 1:2.0.1 (part:paper.section.paragraph)
  • Short: 2.0.1 (paper.section.paragraph)

Options

const api = new UrantiaAPI({
  baseUrl: 'https://api.urantia.dev', // default
  token: 'your-access-token',         // for authenticated endpoints
})

License

MIT