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

@financial-times/o-private-foundation

v1.9.0

Published

Foundation components for use in Origami components only.

Readme

o-private-foundation

:warning: NOTE: this package should ONLY be used in Origami components. If you are not developing a component that is part of Origami, please do not use this package.

A collection of Origami components for use in other Origami components.

Instructions for the component. We've broken this down by Markup, JavaScript, Sass, etc. You may add more sections as needed.

Usage

Check out how to include Origami components in your project to get started with o-private-foundation.

Behaviour

o-private-foundation Behaviour description.

Markup

Markup documentation for the component. Including css classes, data attributes, and tags for variations of the component. Demo markup is also shown in the registry. For complex markup it can be useful to describe the markup and link to the registry demos for a full example. Remember to start your codeblocks with three backticks and "html" so your markup is syntax highlighted correctly.

<div data-o-component="o-private-foundation" class='o-private-foundation'>
</div>

Sass

Sass documentation. With instructions to include styles with a primary mixin, what options are available, brand support where applicable. For complex components it may be helpful to document apis with SassDoc and link to the components SassDoc in the Origami Registry. Remember to start your codeblocks with three backticks and "scss" so your markup is syntax highlighted correctly.

Use @include oPrivateFoundation() to include styles for all o-private-foundation features.

@import "@financial-times/o-private-foundation";

@include oPrivateFoundation();

JavaScript

JavaScript documentation. Including how to initialise the component, available options, and common usecases. For complex components it may be helpful to document apis with JSDoc and link to the components JSDocs in the Origami Registry. Remember to start your codeblocks with three backticks and "js" so your js is syntax highlighted correctly.

JavaScript is initialised automatically for Origami Build Service users. If your project is using a manual build process, initialise o-private-foundation manually.

For example call the init method to initialise all o-private-foundation instances in the document:

import oPrivateFoundation from 'o-private-foundation';
oPrivateFoundation.init();

Or pass an element to initialise a specific o-private-foundation instance:

import oPrivateFoundation from 'o-private-foundation';
const oPrivateFoundationElement = document.getElementById('#my-o-private-foundation-element');
oPrivateFoundation.init(oPrivateFoundationElement);

Troubleshooting

Answers to questions or problems that come up repeatedly. It's likely you can delete this section for now. Remember to remove it from the table of contents.

Contributing

Contributing documentation for non typical components. It's likely you can delete this section if your component conforms with other components. Remember to update the table of contents is you remove this section.

Migration

Guides to upgrade from one major version of a component to another. This section includes a table of major versions with links to MIGRATION.md. MIGRATION.md would provide upgrade instructions, but since this is a new component there is no MIGRATION.md. Delete this section, including from the table of contents, until there is a second major version of this component.

State | Major Version | Last Minor Release | Migration guide | :---: | :---: | :---: | :---: ✨ active | 3 | N/A | migrate to v3 | ⚠ maintained | 2 | 2.0 | migrate to v2 | ╳ deprecated | 1 | 1.0 | N/A |

Contact

If you have any questions or comments about this component, or need help using it, please either raise an issue, visit #origami-support or email [email protected].

Licence

This software is published by the Financial Times under the MIT licence. `; };