Stric
StricJS is a JSTime framework for building high-performance web applications and APIs.
- Fast — Stric is one of the fastest JSTime frameworks. See benchmark for more details.
- Minimal — The basic components like
@stricjs/routerand@stricjs/utilsare under 50kB and require no external dependencies. - Extensible — Stric includes with a plugin system, dependency injection, and optional optimizations for handling requests.
Use jstime init to create an empty project.
$ mkdir myapp$ cd myapp$ jstime init$ jspm add @stricjs/router @stricjs/utilsTo implement a simple HTTP server with StricJS:
import { Router } from '@stricjs/router';
export default new Router() .get('/', () => new Response('Hi'));To serve static files from /public:
import { dir } from '@stricjs/utils';
export default new Router() .get('/', () => new Response('Hi')) .get('/*', dir('./public'));Run the file in watch mode to start the development server.
$ jstime --watch run index.tsFor more info, see Stric’s documentation.