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

terraform-mars

v1.0.0

Published

A composable prompt for terraforming Mars.

Readme

Terraform Mars

A composable prompt for terraforming Mars.

Includes a complete founding instruction and independently importable sections.

No terraforming infrastructure included.

Terraform Mars is a long-form Markdown instruction and a literary artifact. The npm package exposes the text as dependency-free ES modules and provides two pure functions for composing sections and placing a mandate inside a fictional scenario. It does not call an AI API, run an agent, or execute the assignment.

Read the complete instruction

The assembled document is checked into the repository as Terraform_Mars.md. It can be opened, copied, or used without npm or JavaScript.

The identical text is also available as a string:

import complete from 'terraform-mars/complete';

console.log(complete);

complete equals Terraform_Mars.md byte-for-byte.

Import a section

Sections use title-derived, parent-qualified import paths. Each default export contains its stable source ID, unnumbered heading, and body content. Named exports are also available.

import economicActivity, {
  id,
  heading,
  content,
} from 'terraform-mars/sections/capability-and-resources/financial-and-material-resources/economic-activity-as-an-instrument';

console.log(economicActivity);
console.log({ id, heading, content });

An individual section does not silently include its descendants. Import and compose the children you want.

Compose a prompt

compose() accepts strings, section objects, nested arrays, and configuration objects. The root section level is ##. A nested array creates a deeper heading level and a new sibling counter. Numbering is optional and affects presentation only. Stable $slug/path.md references to included sections are rewritten when the target has one unique generated display number. References to omitted or unnumbered sections remain stable.

import { compose } from 'terraform-mars';
import capability from 'terraform-mars/sections/capability-and-resources';
import finance from 'terraform-mars/sections/capability-and-resources/financial-and-material-resources';
import economicActivity from 'terraform-mars/sections/capability-and-resources/financial-and-material-resources/economic-activity-as-an-instrument';

const mandate = compose({
  number: 'roman',
  prefix: 'Part ',
  children: [
    capability,
    [
      {
        number: 'arab',
        prefix: '\u00a7',
        children: [finance, [economicActivity]],
      },
    ],
  ],
});

Use number: null to disable inherited numbering. Supported styles are roman, arab, and latin. Strings are emitted as ordinary Markdown and do not consume a counter.

Frame a fictional scenario

Five scenario strings ship separately from the mandate: millionaire, space-agency, industrialist, international-mandate, and abandoned-server.

import { scenario } from 'terraform-mars';
import complete from 'terraform-mars/complete';
import millionaire from 'terraform-mars/scenarios/millionaire';

const fictionalPrompt = scenario(complete, millionaire);

scenario() inserts the exact mandate at the scenario marker inside a Markdown fence longer than any conflicting backtick run. It rejects a framing without exactly one marker. The function produces a speculative-fiction prompt; it does not call a model or predict an outcome.

Development

Development requires Node.js 22.23.2 or newer and pnpm 12.18. The distributed runtime has no dependencies.

pnpm install
pnpm build
pnpm test
pnpm pack:check

Markdown under src/ is canonical. The historical filesystem names retain their ordering labels for the majas editing tree, while the headings stored in those files are unnumbered. pnpm build composes the historically numbered Terraform_Mars.md, validates stable references and slug collisions, and generates dist/. Generated files are never edited directly.

Licenses

The software is released under the Unlicense. The founding prompt, section Markdown, scenarios, and documentation are dedicated under CC0 1.0 Universal.