Abi.js is a fast, type-safe and easy-to-use web framework for building robust web applications in no time without any hassle.
-
Using
npm
:npm install abi.js
-
Using
Yarn
:yarn add abi.js
-
Using
PNPM
:pnpm add abi.js
-
Using
Bun
:bun install abi.js
-
Using
Deno
:deno add npm:abi.js
Abi
works the same way under Bun
, Deno
and Node
like this:
- Create a file, example
app.js
and copy/paste this code:
import abi from 'abi.js';
abi.get('', 'Welcome to Abi!');
abi.get(':user', (name) => `Hello ${name}!`);
abi.start();
- Run your file with:
-
Node:
node app.js
-
Deno:
deno run app.js
-
Bun:
bun run app.js
Under Bun
and Deno
, you just need to use a default export.
You can also use a TypeScript app.ts
file instead of app.js
like this:
import abi from 'abi.js';
abi.get('', 'Welcome to Abi!');
abi.get(':user', (name: string) => `Hello ${name}!`);
export default abi;
Then run your script with deno serve app.ts
(with Deno)
or bun run app.ts
(with Bun).
Find more examples and in-depth use cases by visiting the documentation.
This project is licensed under the MIT License - see the LICENSE.md file for details.
Made with ❤︎ by @siguici.