open-index/open-npm huggingface dataset:
npm package: @stract/core
Description: ⚡️ Fast node server
Latest version: 4.1.4

## Stract

⚡️ Fast node server

# Install

```bash
  npm install @stract/core
```

or

```bash
  yarn add @stract/core
```

# Minimal setup

```js
import { Stract } from '@stract/core';

const app = new Stract();

app.get('/', async () => ({ foo: 'bar' }));

async function start() {
  try {
    await app.ready();
    const { url } = await app.listen(9001);
    console.log(`Server ready on http://${url}`);
  } catch (error) {
    console.error(error);
  }
}

start();
```