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

@faisal50x/flash

v0.6.0

Published

Flash is a nodejs framework that helps you quickly write simple yet powerful web applications and APIs

Readme

Flash NPM Version

Fast, unopinionated, minimalist web framework for node. NPM Version NPM Downloads

Folder Structure

.
├── App							#Source file alternative(src, lib) directory
|	├── Config
|	|	├── config.js				#Application config file (database, secrete key, rule etc.)
|	|	└── web.js				#define route
|	├── Controllers
|	|	├── FlashController.js			#Default Controller
|	├── Middleware
|	├── Models
|	└── Views
├── Public						#Static file directory 
├── Run                     
|	└── main.js					#Executed Main file
├── boot.js						#Boot file (initialize all code)
├── package.json                   
├── LICENSE
└── README.md

Example snippet

Create server.js in your project root folder and copy this code and past into your server.js file then open your terminal goto your project root run this command in your terminal node server.js Awesome you just create your first flash server checkout your server work on not open your browser type localhost:3000 in browser addressbar and hit enter.

global.__basedir = __dirname;				//it's required
const flash = require("@faisal50x/flash");
const app = flash();
const Router = flash.router(app);
app.get("/", function(req, res) {
	res.send("Welcome to Flash world");
});

Router.group("/", function() {
	Router.get("/welcome", function(req, res) {
		res.send("Welcome group route");
	});
	Router.post("/welcome", function(req, res) {
		res.send(`Welcome to ${req.path} Method ${req.method}`);
	});
});

//Laravel Style Callback
Router.group("/auth", function() {
	Router.post("/login", "FlashController@login");
});
//Middleware setup in group route
Router.group("/api/v1", ["Authentication", "Role"], function() {
	Router.get("/user/:id/profile", "UserController@profile");
});
app.listen(3000);

Installation

This is a Node.js module available through the npm registry.

Before installing, download and install Node.js. Node.js 8 or higher is required.

Installation is done using the npm install command:

$ npm install @faisal50x/flash
            or
$ npm i @faisal50x/flash

Follow our installing guide for more information.

Features

  • Robust routing
  • Focus on high performance
  • Super-high test coverage
  • HTTP helpers (redirection, caching, etc)
  • View system supporting 14+ template engines
  • Content negotiation
  • Executable for generating applications quickly
  • Group routing supported (Inspired by laravel)
  • Middleware supported (Inspired by laravel)
  • Pre added database supported (Inspired by laravel) [mongodb, mysql, postgresql,sqlite,mssql]
  • ORM Database supported (Inspired by laravel)

Docs & Community

Security Issues

If you discover a security vulnerability in Flash, please see Security Policies and Procedures [Coming Soon].

Quick Start

The quickest way to get started with flash is to utilize the executable flash(1) to generate an application as shown below:

Install the executable. The executable's major version will match Flash's:

$ npm install -g @faisal50x/flashcli

Create the app:

$ flash new demo-app

Ready to go your project root:

$ cd demo-app

Start the server:

$ npm start

Philosophy

The Flash philosophy is to provide small, robust tooling for HTTP servers, making it a great solution for single page applications, web sites, hybrids, or public HTTP APIs.

Flash have build in ORM or template engine. With support for over 14 template engines via Consolidate.js, you can quickly craft your perfect framework.

People

The original author of Flash is Faisal Ahmed

List of all contributors

License

MIT