Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/front-of-house/presta
Minimalist serverless framework for SSR, SSG, serverless APIs and more.
https://github.com/front-of-house/presta
blog-engine javascript serverless ssg ssr static-site static-site-generator website
Last synced: 12 days ago
JSON representation
Minimalist serverless framework for SSR, SSG, serverless APIs and more.
- Host: GitHub
- URL: https://github.com/front-of-house/presta
- Owner: front-of-house
- License: mit
- Created: 2020-08-08T19:02:05.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-10-28T23:48:49.000Z (about 2 years ago)
- Last Synced: 2024-05-12T10:42:47.879Z (6 months ago)
- Topics: blog-engine, javascript, serverless, ssg, ssr, static-site, static-site-generator, website
- Language: TypeScript
- Homepage: https://presta.run
- Size: 17.4 MB
- Stars: 96
- Watchers: 3
- Forks: 6
- Open Issues: 32
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Presta
[![npm version](https://img.shields.io/npm/v/presta?style=flat&colorA=4488FF&colorB=4488FF)](https://www.npmjs.com/package/presta)
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`:```typescript
// 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](docs). For the rest of the
ecosystem, see the following READMEs:- [@presta/adapter-netlify](https://github.com/front-of-house/presta/tree/main/packages/adapter-netlify) — builds Presta for deployment to Netlify
- [@presta/adapter-vercel](https://github.com/front-of-house/presta/tree/main/packages/adapter-vercel) — builds Presta for deployment to Vercel
- [@presta/adapter-node](https://github.com/front-of-house/presta/tree/main/packages/adapter-node) — builds Presta for deployment to a custom node server## Contributing
We'd love your help getting Presta to `v1.0.0`. Have a look at the [contributing](https://github.com/sure-thing/presta/blob/master/CONTRIBUTING.md) doc or say hello in a [new Issue](https://github.com/sure-thing/presta/issues). Also please review our [code of conduct](https://github.com/sure-thing/presta/blob/master/CODE_OF_CONDUCT.md).
## License
MIT License © [Front of House](https://github.com/front-of-house)