Skip to content

front-of-house/presta

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
October 28, 2022 23:34
October 24, 2022 20:35
October 28, 2022 23:34
October 25, 2022 09:33
October 22, 2022 11:35
December 30, 2021 12:43
October 22, 2022 15:12
October 22, 2022 15:12
July 7, 2021 07:44
August 11, 2021 16:16
October 24, 2022 14:27
July 7, 2021 07:44
October 25, 2022 09:33

Presta

npm version

Minimalist serverless framework.

Features

  • flexible — APIs, server-rendered apps, static sites, etc
  • unopinionated — build whatever you want
  • no runtime — use any frontend framework
  • thin — not many features
  • small — easy to contribute to
  • extensible — simple plugin API
  • future-proof — TypeScript + deploy anywhere

Quick Start

Presta is just thin wrapper around AWS-flavored serverless functions + a simple local dev server. Here's a simple Presta file, which you can run right now with npx presta dev index.ts:

// index.ts
import { Handler } from 'presta'

export const route: string = '*'

export const getStaticPaths: string[] = () => {
  return ['/']
}

export const handler: Handler = (ev, ctx) => {
  return {
    statusCode: 200,
    body: `You're looking at path ${ev.path}`,
  }
}

Documentation

Docs can be found here in the repo. For the rest of the ecosystem, see the following READMEs:

Contributing

We'd love your help getting Presta to v1.0.0. Have a look at the contributing doc or say hello in a new Issue. Also please review our code of conduct.

License

MIT License © Front of House