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

freebox

v3.0.0

Published

Simple authentification and secure requests to your Freebox OS server

Downloads

50

Readme

Freebox for Node.js

Simple authentication and secure requests to your Freebox OS server

  • Node.js 24+ (ESM-first)
  • Native fetch for HTTP (no Axios dependency)
  • Written in TypeScript with generated typings
  • Bundled with tsdown (ESM + CJS + .d.ts)

Official Freebox OS API documentation: https://dev.freebox.fr/sdk/os

Install

pnpm add freebox
# or npm install freebox

Quick start

Register your app (local network only)

You must be on the Freebox local network to register an app. Visit https://mafreebox.freebox.fr to confirm.

import {FreeboxRegister} from 'freebox';

const freeboxRegister = new FreeboxRegister({
	app_id: 'fbx.my_amazing_app',
	app_name: 'My Amazing App',
	app_version: '1.0.0',
	device_name: 'My cool PC',
});

// Obtaining an app_token & everything you need
// following the guide at https://dev.freebox.fr/sdk/os/login/
const access = await freeboxRegister.register();
console.log(access);

Login & request your Freebox server

import {Freebox} from 'freebox';

const freebox = new Freebox({
	app_token: 'etCEF2aytGPLWm1KZM0vIW/ziZOU58v/0qv9jUiJcedjadjaRZ/bflWSKy6HODORGUo6',
	app_id: 'fbx.my_amazing_app',
	api_domain: 'r42bhm9p.fbxos.fr',
	https_port: 35023,
	api_base_url: '/api/',
	api_version: '6.0',
});

// Open a session
await freebox.login();

// Get the current Wi-Fi global configuration
const response = await freebox.request({
	method: 'GET',
	url: 'wifi/config',
});

console.log(response.data);

// Close the current session
await freebox.logout();

API (overview)

  • new FreeboxRegister(appIdentity?)
    • .register(options?) → returns { app_token, app_id, api_domain, https_port, api_base_url, api_version }
    • .discovery() → reads API info from the Freebox
    • .requestAuthorization() / .getAuthorizationStatus(trackId) / .trackAuthorizationProgress(trackId)
  • new Freebox(appRegistered)
    • .login(challenge?) → resolves { session_token, permissions }
    • .logout()
    • .request(requestConfig) → thin wrapper over native fetch with Axios-like response shape

All public APIs are fully typed. Hover in your editor or read the generated dist/index.d.ts for details.

Development

pnpm build    # tsdown build (ESM + CJS + types)
pnpm test     # vitest
pnpm lint     # oxlint (voidzero)
pnpm format   # oxfmt (voidzero)

License

MIT License Copyright (c) 2019-2025 Mathieu Schimmerling.