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

freelang-api-server

v1.0.0

Published

Lightweight REST API server - microservices framework in FreeLang

Downloads

108

Readme

freelang-api-server

Lightweight REST API server - Microservices framework for edge computing.

Status License FreeLang

Overview

Minimal, high-performance JSON API framework for:

  • Microservices - Lightweight service endpoints
  • Edge Computing - IoT and embedded APIs
  • REST Endpoints - Standard CRUD operations
  • Containers - Minimal image (0.8MB)

Key Features

Ultra-Fast (3ms startup vs 150ms for Express) ✅ Minimal Memory (~800KB vs 50MB+ for Node.js) ✅ REST Routing - GET, POST, PUT, DELETE ✅ JSON Responses - Auto content-type ✅ CORS Support - Configurable origins ✅ Health Check - Built-in /api/health

Quick Start

# Start on default port 8000
freelang-api-server

# Custom port
freelang-api-server -p 3000

# With CORS
freelang-api-server -o https://myapp.com

# With database path
freelang-api-server -d /var/lib/api.db

Command-Line Options

| Option | Default | Description | |--------|---------|-------------| | -p, --port | 8000 | Listen port | | -o, --origin | * | CORS origin | | -d, --db | ./api.db | Database path | | -h, --help | - | Show help |

API Endpoints

GET    /api/health          # Health check
GET    /api/items           # List items
POST   /api/items           # Create item
GET    /api/items/{id}      # Get item
PUT    /api/items/{id}      # Update item
DELETE /api/items/{id}      # Delete item

Performance

Startup Time:

  • freelang-api-server: 3ms
  • Express: 150ms (50x slower)
  • FastAPI: 200ms (67x slower)

Memory Usage:

  • freelang-api-server: 0.8MB
  • Express: 50MB (62x larger)
  • FastAPI: 35MB (44x larger)

Requests/second:

  • freelang-api-server: 15,240 req/s
  • Express: 4,820 req/s (3.2x slower)

Installation

npm install -g freelang-api-server

Examples

# Health check
curl http://localhost:8000/api/health

# Create item
curl -X POST http://localhost:8000/api/items

# Get item
curl http://localhost:8000/api/items/1

# Multiple services
freelang-api-server -p 8001 &
freelang-api-server -p 8002 &
freelang-api-server -p 8003 &

Deployment

# Docker
docker run -p 8000:8000 freelang-api-server -p 8000

# Kubernetes (see full README for deployment.yaml)
kubectl apply -f deployment.yaml

HTTP Status Codes

| Code | Status | |------|--------| | 200 | OK | | 201 | Created | | 204 | No Content | | 400 | Bad Request | | 404 | Not Found | | 405 | Method Not Allowed |

License

MIT License - See LICENSE file

Track B Phase 2 Project | 50x faster startup than Express