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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@terbiumos/tfs

v1.0.19

Published

The drop in Filer replacement you have been waiting for. Completely Typed and Built with TypeScript

Readme

TFS

The drop in Filer replacement you’ve been waiting for. Completely Typed and Built with TypeScript

Usage

Initializing TFS is slightly different than Filer. Below are the instructions on how to get TFS running.

First, either get the static files from the github releases or you can download TFS via the npm package at @terbiumos/tfs.

If your working with Vite, Express, etc to host the files you can import the web compiled files for TFS via the tfsPath import

import { tfsPath } from "@terbiumos/tfs";
// tfsPath is the path of the web folder of the TFS files

Aditionally, All of the classes are also typed and can be imported as such if needed:

import { FSType } from "@terbiumos/tfs";
// Types for tfs.fs

If you do not wish to host the files and use it directly in your code you can import the TFS class directly however you MUST use @terbiumos/tfs/browser for this import:

import { TFS } from "@terbiumos/tfs/browser";

const { fs } = await tfs.init();

The TFS Object consists of: FS, Path, Shell, and Buffer. The Buffer utility is actually the same as Filer and is powered by the Ferros Buffer Library with the same exact syntax as node:buffer and Filer.Buffer

To load TFS conviently, simply run:

const tfs = await tfs.init()

If you need a specific module from TFS, you can desctructure the object for the one that you need

const { fs } = await tfs.init()

If your working in a non asyncronous workspace or a service worker, you can use tfs.initSw() to initialize the TFS object on window (or in service worker contexts, self) automatically:

Or if you do not wish to use one of the following methods to initialize TFS, you can also use the constructor as normal;

const handle = await navigator.storage.getDirectory();
const tfs = new tfs(handle);

The TFS Shell works slightly different than the Filer Shell, it is already instantiated so you do not need to create a new instance of the Shell and you can directly call it as:

const shell = tfs.shell
const shell = tfs.fs.shell

however, if your lazy or are using some kind of compatability layer and still want the 1 to 1 support, TFS provides tfs.sh as a uninitialized shell however this isnt recommended.

As for the actual FS Usage, it remains the same as Filer which targets a node:fs like syntax

Contributing

Contributions are always welcome! Feel free to make a PR to help advance this project even further as its not just intended for Terbium use but also for use in projects that already rely on Filer for storage

If you find a security vulnerability, please contact [email protected] and DO NOT report it in the github issues space.

Also, Please make sure that the CI passes before you create your PR as it makes life easier for everyone/

Credits

Libraries Used

Made with ❤️ By the Terbium Development Team

© Copyright 2025 TerbiumOS Development

Licensed Under the Apache 2.0 License