@zephyr-js/core
TypeScript icon, indicating that this package has built-in type declarations

0.3.1 • Public • Published

Zephyr.js logo

Zephyr.js

Build Typesafe Node API in minutes

Zephyr.js CI workflow CodeFactor

Description

Zephyr is a Typescript server-side meta framework that is inspired by Next.js for its file-based routing. It is built on top of Express.js and uses Zod in request / response validation as well as providing typesafe API.

Zephyr places a high value on FP (Functional Programming). Instead of using classes as API controllers, declare and export API routes with functions.

Philosophy

The established server-side web frameworks for Node.js at the moment are Nest.js and Adonis.js, both of which are fantastic and rely on controllers and decorators in OOP. However, some programmers prefer functional programming to object-oriented programming (OOP). As a result, Zephyr seeks to let programmers to define API routes with functions and provides file-based routing out of the box.

Getting started

Kindly visit our documentation on zephyrjs.com

TODO

  • [x] Complete create-zephyr-app
  • [x] Publish @zephyr-js/core, @zephyr-js/common and create-zephyr-app to NPM
  • [x] Create unit tests
  • [ ] Supports middleware
  • [ ] Supports dependency injection
  • [ ] Create zephyr cli

Package Sidebar

Install

npm i @zephyr-js/core

Weekly Downloads

1

Version

0.3.1

License

MIT

Unpacked Size

71.2 kB

Total Files

17

Last publish

Collaborators

  • kakengloh