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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@open-ordinal/api

v0.9.1

Published

> The Open Ordinal API is a JavaScript library / module that can be externally linked by any Ordinal to share its internal data and functionality with an external entity.

Downloads

3

Readme

Open Ordinal API

The Open Ordinal API is a JavaScript library / module that can be externally linked by any Ordinal to share its internal data and functionality with an external entity.

The fundamental concept is that an ordinal has the capacity to reveal a wealth of data and capabilities. This proves beneficial for various areas such as in Applications, Wallets, Marketplaces, Custom Proxies, CDNs, Publishers and more.

The Ordinal can expose General Info, Loading State, Events, Variants, Composistions, Assets, Traits and Functionality trough this library in structured and standardized way.

The complexity of communicating with more complex Ordinals lies in their existence within a web page. For them to be rendered on the screen, they are anticipated to be displayed in a web browser. Therefore, to access the Ordinal API for a backend service, the Ordinal needs to be rendered off-screen using components like WebDriver (ChromeDriver / EdgeDriver aso). This might pose some obstacles, it’s unavoidable, but doable.

A question that arises is… Why can’t most of this be stored as inscriptions directly on the chain? Yes, it can and should be a part of the Ordinal Metadata. But exposing functionality or dynamic data beyond that we need an API.

Prerequisites

Advanced: To develop using the library, it is recommended to run a local ORD server. This can either be a fully synced ORD server for the chain you are testing with or a simple ORD server containing only your test inscriptions. In the latter case, you will also need to inscribe the open-ordinal-api.min.js (from the dist folder) and refer to it due to CORS restrictions. The local ORD server need to be updated in the webpack.config.js proxy settings.

Simple: A second choice is to run a local webserver hosting all the files.

Folders

Folders:

  • dist: Contain the minified and packaged version of the library.
  • docs: Contain the generated docs.
  • lib: Contain the build of the library.
  • src: Contain all source code for the library and docs source.
  • test: Contain the testable version used in a HTML-page.

Documentation

Head over to the docs to read more about this tiny beast.

Commands

  • npm install: Get all the libraries that is needed for development and running this library.
  • npm run all: Run the build and docs in sequence.
  • npm run build: Builds the src to the lib folder and then minimize it to the dist folder.
  • npm run test: The the same as npm build and starts a dev-server hosted on port 9999.
  • npm run docs: Builds the docs.

Inscriptions

All Open Ordinal API inscriptions.

Strcture

Parents Strcture

| Type | Name | Inscription Id | | ------------ | :----------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | Organization | Open Ordinal | 0bc778d1744d87a782e165c582979f9c64e15a90cc8e77db25b16f4a740b41d4i0 | | Collection | Libraries | e4431e01cce9d641e6e1380c1401c1cf0aeb242b5c5f5383aa17c813a7347df3i0 |

Libraries

| Type | Name | Version | Sat | Inscription Id | | ------ | :--------------- | :------ | :---------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | Module | Open Ordinal API | 0.9.1 | 156280470160431 | 5822753706244b473956befee6e1189a9f60e000eb088e62bb26db50bfc90883i0 | | Module | Open Ordinal API | 0.9.0 | 156280470160431 | f9de65c51843738497a07cf3dab5fb13b83c4b135b577ea8c384535c33bae1bci0 |