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

titanpl-sdk

v0.1.7

Published

Development SDK for Titan Planet. Provides TypeScript type definitions for the global 't' runtime object and a 'lite' test-harness runtime for building and verifying extensions.

Downloads

907

Readme

npm version License: ISC


🌌 Overview

Titan SDK is NOT the runtime engine itself. It is a development-only toolkit designed to bridge the gap between your local coding environment and the native Titan Planet binary.

It provides the necessary Type Definitions to make your IDE understand the global t object and a Lite Test Harness to verify your extensions before they ever touch a production binary.

Note: The actual implementation of t.log, t.fetch, and other APIs are embedded directly into the Titan Planet Binary. This SDK simply provides the "blueprints" (types) and a "sandbox" (test runner).


✨ Features

  • 💎 Blueprint Types (IntelliSense): Provides the full TypeScript index.d.ts for the global t object so you get autocomplete in VS Code and other editors.
  • 🛡️ Static Validation: Catch parameter mismatches and typos in t.log, t.fetch, t.db, etc., during development.
  • 🔌 Extension Test Harness: A "lite" version of the Titan runtime that simulates the native environment to test extensions in isolation.
  • 🚀 Zero Production Trace: This is a devDependencies package. It never ships with your binary, keeping your production footprint at literal zero.

🚀 The Test Harness (Lite Runtime)

The SDK includes a specialized Test Runner (titan-sdk). This is a "lite" version of the Titan ecosystem that acts as a bridge for developers.

How it works:

When you run the SDK in an extension folder, it:

  1. Scaffolds a Virtual Project: Creates a temporary, minimal Titan environment in .titan_test_run.
  2. Native Compilation: Automatically builds your native Rust code (native/) if it exists.
  3. Hot-Linking: Junctions your local extension into the virtual project's node_modules.
  4. Verification: Generates a test suite that attempts to call your extension's methods via the real t object inside the sandbox.

Usage:

# Inside your extension directory
npx titan-sdk

⌨️ Enabling IntelliSense

Since the t object is injected globally by the Titan engine at runtime, your IDE won't recognize it by default. The SDK fixes this.

  1. Install the SDK:

    npm install --save-dev titan-sdk
  2. Configure Types: Create or update jsconfig.json (or tsconfig.json) in your project root:

    {
      "compilerOptions": {
        "types": ["titan-sdk"]
      }
    }

Now your editor will treat t as a first-class citizen:

export function myAction(req) {
  t.log.info("Request received", req.path); // Autocomplete works!
  return { status: "ok" };
}

🧱 What's Included? (Types Only)

The SDK provides types for the native APIs provided by the Titan Planet engine:

  • t.log: Standardized logging that appears in the Titan binary console.
  • t.fetch: Types for the high-performance Rust-native network stack.
  • t.db: Interface for the native PostgreSQL driver.
  • t.read: Definitions for optimized filesystem reads.
  • t.jwt / t.password: Security helper types.

🌍 Community & Documentation