cloudflare-planetscale-hono-boilerplate

A boilerplate for building production-ready RESTful APIs using Cloudflare, Hono and Planetscale

apioauthboilerplatejwtoauth2typescriptrest-apirate-limitingstarteremail-sendercloudflarerate-limiter
FreeRepo

Preview

cloudflare-planetscale-hono-boilerplate preview

Overview

This boilerplate provides a starter template for building RESTful APIs on Cloudflare Workers using Hono framework, PlanetScale database and Kysely for type-safe queries. It includes built-in features for authentication with JWT and OAuth, request validation with Zod, email sending via Amazon SES, role-based authorization, rate limiting using sliding window algorithm, centralized error handling and testing with Vitest.

Features

rest-apijwt-authenticationoauth-supportrate-limitingemail-sendingerror-handlingrequest-validationrole-based-authorizationgit-hookslintingcode-formatting

Feature Flags

authenticationblogemailsauthorizationloggingErrorTrackingjobsQueuerateLimitingformsValidationerrorTracking

Recommended Use Cases

production-ready-apisrest-api-developmentcloudflare-workers-deployment

Frontend

None

Backend

honocloudflare-workersdurable-objects

Auth Providers

discordgithubspotifygoogleapplefacebook

Deployment Targets

awscloudflarecloudflare-workers

Payment Providers

None

Quick Facts

โญ Stars
232
๐Ÿด Forks
26
๐Ÿงพ License
mit
๐Ÿ”„ Active
Unknown
๐Ÿ•’ Last Commit
2024-09-10T13:00:41.000Z

Stack

Framework
hono
Language
typescript
Database
planetscale
Auth
jwt, oauth2
ORM
kysely
Testing
vitest
Monitoring
sentry
CI
husky

Data Layer

Databases
mysql, planetscale
ORM
kysely

UI Stack

Developer Experience

Docker
No
Tests
Yes
Quickstart
Yes
env.example
No
CI
husky

Pricing

Classification
free
Selected
โ€”
Notes
Open source boilerplate with MIT license
Get Started with this Boilerplate