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

@ordino.ai/ordino-pw-services-core

v1.0.7

Published

ordino.ai internal services expose global generic-services and behaviors for Playwright

Readme

OrdinoAPI - API Testing Framework

A powerful and flexible API testing framework built with Playwright, designed for easy API testing and automation.

Features

  • HTTP Methods Support (GET, POST, PUT, DELETE, PATCH)
  • Header Management
  • Global Headers
  • Header Presets
  • Query Parameter Support
  • Value Storage
  • Timeout Configuration
  • Clean and Simple API

Installation

npm install @playwright/test

Usage

Basic Example

import { OrdinoAPI } from './src/OrdinoAPI';

// Initialize
await OrdinoAPI.init();

// Configure base URL
OrdinoAPI.setBaseUrl('https://api.example.com');

// Make requests
OrdinoAPI.setUrl('users');
const response = await OrdinoAPI.requestGet();
const users = await response.json();

// Cleanup
await OrdinoAPI.dispose();

Header Management

// Set single header
OrdinoAPI.setHeader('Authorization', 'Bearer token123');

// Set multiple headers
OrdinoAPI.setHeaders({
  'X-Custom': 'value',
  'X-Version': '1.0'
});

// Set global headers (applied to all requests)
OrdinoAPI.setGlobalHeader('Global-Header', 'value');

// Use header presets
OrdinoAPI.saveHeaderPreset('auth', {
  'Authorization': 'Bearer token123'
});
OrdinoAPI.loadHeaderPreset('auth');

Making Requests

// POST request
const newUser = { name: 'John Doe' };
const response = await OrdinoAPI.requestPost(newUser);

// GET request with query parameters
const response = await OrdinoAPI.requestGetWithQuery({ status: 'active' });

// PUT request
const updatedUser = { id: 1, name: 'Jane Doe' };
const response = await OrdinoAPI.requestPut(updatedUser);

// DELETE request
const response = await OrdinoAPI.requestDelete();

Value Storage

// Store values
OrdinoAPI.setValue('userId', 123);

// Retrieve values
const userId = OrdinoAPI.getValue('userId');

// Clear values
OrdinoAPI.clearValue('userId');

Testing

The framework includes comprehensive tests covering all features. Run tests using:

npx playwright test tests/ordinoapi.spec.ts

Test coverage includes:

  • Core Features
    • URL Configuration
    • Header Management
    • Value Storage
    • Timeout Configuration
  • HTTP Methods
    • POST
    • GET
    • PUT
    • DELETE
    • PATCH
    • Query Parameters

Best Practices

  1. Always initialize OrdinoAPI before use:
await OrdinoAPI.init();
  1. Clean up resources after use:
await OrdinoAPI.dispose();
  1. Use header presets for reusable header configurations:
OrdinoAPI.saveHeaderPreset('auth', authHeaders);
// Later...
OrdinoAPI.loadHeaderPreset('auth');
  1. Set appropriate timeouts for long-running requests:
OrdinoAPI.setTimeout(30000); // 30 seconds

License

MIT