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

amiria-shell

v1.0.7

Published

A custom Unix-like shell written in C

Downloads

646

Readme

Amiria Shell

⚠️ This is a CLI tool. Install globally.

🚀 Usage

Run instantly (no installation):

npx amiria-shell

Or install globally:

npm install -g amiria-shell

Amiria is a lightweight custom Unix-like shell built in C, designed to explore core systems programming concepts such as process creation, command parsing, memory management, and shell behavior.

It provides a simplified but powerful environment with support for built-in commands, command execution, and a custom alias system that enhances usability.

🚀 Features

• 🔹 Command parsing and execution (execvp) • 🔹 Built-in command support (cd, exit, etc.) • 🔹 Custom alias system (e.g., list → ls) • 🔹 Background process execution (&) • 🔹 Input/output redirection (>, <, >>) • 🔹 Pipe support (|) • 🔹 Signal handling (SIGINT, SIGCHLD) • 🔹 Memory-safe command lifecycle (manual allocation & cleanup)

🧠 How It Works

Amiria follows a clean execution pipeline:

Input → Tokenization → Alias Expansion → Built-in Check → Execution

  1. Tokenization – User input is parsed into command + arguments
  2. Alias Expansion – Custom commands are mapped to real shell commands
  3. Built-in Execution – Internal commands handled without spawning processes
  4. External Execution – Commands executed via fork() + execvp()

📦 Installation & Build

Requirements

• GCC • Unix-like system (Linux/macOS)

Build

gcc main.c shell.c helper_functions.c custom_commands.c -lreadline -o shell

Run

./shell

💡 Custom Commands (Aliases)

Amiria provides a set of user-friendly aliases for common terminal commands.

| Custom command | Equivalence | Description | |----------------|-------------|-----------------------------------| | home | cd ~ | Go to home directory | | back | cd .. | Move one directory up | | prev | cd - | Go to previous directory | | list | ls | List files | | listall | ls -a | List all files (including hidden) | | longlist | ls -l | Detailed file listing | | tree | ls -R | Recursive listing | | createfile | touch | Create a file | | createdir | mkdir | Create a directory | | remove | rm | Remove a file | | removefile | rm -f | Force remove file | | removedir | rm -r | Remove directory recursively | | copy | cp | Copy files | | move | mv | Move/rename files | | show | cat | Display file contents | | head | head | Show beginning of file | | tail | tail | Show end of file | | view | less | View file interactively | | clear | clear | Clear terminal | | where | pwd | Print working directory | | whoami | whoami | Show current user | | time | date | Display current date/time | | findfile | find | Search for files | | search | grep | Search text patterns |

⚙️ Built-in Commands

| Command | Description | |---------|--------------------------| | cd | Change directory | | exit | Exit the shell | | docs | Show all custom commands |

Example Usage

list listall home createfile test.txt show test.txt

Future Improvements

• User-defined aliases (alias command) • Persistent config file (.amirarc) • Command history • Tab completion • Improved error handling and logging

Author

Derrick Muturi

Machine Learning Engineer & Systems Developer Built as part of deepening understanding of low-level systems and shell design.