static - Static file server middleware

  •        6

Koa static file serving middleware, wrapper for koa-send.

https://github.com/koajs/static

Dependencies:

debug : ^3.1.0
koa-send : ^5.0.0

Tags
Implementation
License
Platform

   




Related Projects

send - Transfer static files

  •    Javascript

Static file serving middleware. Note that root is required, defaults to '' and will be resolved, removing the leading / to make the path relative and this path must not contain "..", protecting developers from concatenating user input. If you plan on serving files based on user input supply a root directory from which to serve from.

serve-static - Serve static files

  •    Javascript

Create a new middleware function to serve files from within a given root directory. The file to serve will be determined by combining req.url with the provided root directory. When a file is not found, instead of sending a 404 response, this module will instead call next() to move on to the next middleware, allowing for stacking and fall-backs. Enable or disable accepting ranged requests, defaults to true. Disabling this will not send Accept-Ranges and ignore the contents of the Range request header.

node-static - rfc 2616 compliant HTTP static-file server module, with built-in caching.

  •    Javascript

node-static understands and supports conditional GET and HEAD requests. node-static was inspired by some of the other static-file serving modules out there, such as node-paperboy and antinode. This will set the Cache-Control header, telling clients to cache the file for an hour. This is the default setting.

logger - Development style logging middleware

  •    Javascript

Development style logger middleware for koa. Notice: koa-logger@2 supports koa@2; if you want to use this module with koa@1, please use koa-logger@1.


staticsitegenerators-list - A comprehensive, partially automatically generated comparison of static site generators

  •    Javascript

Currently, this listing is only for projects that relate to Flat File Content Management Systems and/or Static Site Generators, but not for projects which relate only to Dynamic Servers (such as WordPress and Ghost).Entries are stored within the list.json file.

pushstate-server - Static file server that works with HTML5 Pushstate.

  •    Javascript

Static file server that works with HTML5 Pushstate. For example, the route /some/pushstate/route will return the index.html file. But, /some/static/path/logo.png will return the logo.png static file.

route - Simple route middleware

  •    Javascript

Uber simple route middleware for koa. If you need a full-featured solution check out koa-router, a Koa clone of express-resource.

session - Simple session middleware for koa

  •    Javascript

Simple session middleware for Koa. Defaults to cookie-based sessions and supports external stores. The cookie name is controlled by the key option, which defaults to "koa:sess". All other options are passed to ctx.cookies.get() and ctx.cookies.set() allowing you to control security, domain, path, and signing among other settings.

Koa - Expressive HTTP middleware framework for node.js

  •    Javascript

Koa is a new web framework designed by the team behind Express, which aims to be a smaller, more expressive, and more robust foundation for web applications and APIs. Through leveraging generators Koa allows you to ditch callbacks and greatly increase error-handling. Koa does not bundle any middleware within core, and provides an elegant suite of methods that make writing servers fast and enjoyable.

koa-graphql - Create a GraphQL HTTP server with Koa.

  •    Javascript

Create a GraphQL HTTP server with Koa. NOTE: Below is a copy from express-graphql's README. In this time I implemented almost same api, but it may be changed as time goes on.

mount - Mount other Koa applications or middleware to a given pathname

  •    Javascript

Mount other Koa applications as middleware. The path passed to mount() is stripped from the URL temporarily until the stack unwinds. This is useful for creating entire apps or middleware that will function correctly regardless of which path segment(s) they should operate on. View the ./examples directory for working examples.

generic-session - koa session store with memory, redis or others.

  •    Javascript

Notice: koa-session support external store now, please migrate to koa-session. Generic session middleware for koa, easy use with custom stores such as redis or mongo, supports defer session getter.

connect-assetmanager - Middleware for Connect (node.js) for handling your static assets.

  •    Javascript

Middleware for Connect (node.js) for handling your static assets. The path to the folder containing the files.

up - Deploy infinitely scalable serverless apps, apis, and sites in seconds.

  •    Go

Up deploys infinitely scalable serverless apps, APIs, and static websites in seconds, so you can get back to working on what makes your product unique.Up focuses on deploying "vanilla" HTTP servers so there's nothing new to learn, just develop with your favorite existing frameworks such as Express, Koa, Django, Golang net/http or others.

ream - 🚀 Framework for building universal web app and static website in Vue.js (beta)

  •    Javascript

And that's it, run ream dev and have fun playing with your app at http://localhost:4000. ream © egoist, Released under the MIT License. Authored and maintained by egoist with help from contributors (list).

harp - Static Site Server/Generator with built-in preprocessing

  •    Javascript

Harp is a static web server that also serves Jade, Markdown, EJS, Less, Stylus, Sass, and CoffeeScript as HTML, CSS, and JavaScript without any configuration. It supports the beloved layout/partial paradigm and it has flexible metadata and global objects for traversing the file system and injecting custom data into templates. Optionally, Harp can also compile your project down to static assets for hosting behind any valid HTTP server. Pre-compilers are becoming extremely powerful and shipping front-ends as static assets has many upsides. It's simple, it's easy to maintain, it's low risk, easy to scale, and requires low cognitive overhead. I wanted a lightweight web server that was powerful enough for me to abandon web frameworks for dead simple front-end publishing.