Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/andras-adam/comet

☄️ A powerful DX-first routing library for Cloudflare Workers.
https://github.com/andras-adam/comet

cloudflare cloudflare-workers comet dx router routing workers

Last synced: about 2 months ago
JSON representation

☄️ A powerful DX-first routing library for Cloudflare Workers.

Awesome Lists containing this project

README

        

![logo](.github/assets/comet_logo.png)


☄️ A powerful DX-first routing library for Cloudflare Workers.


NPM Version
NPM Install Size
NPM Downloads

-----

## Getting started

```ts
import { GET, server } from '@neoaren/comet'

const comet = server()

comet.route({ pathname: '/api/test/:id', method: GET }, async ({ event }) => {
// Business logic
return event.reply.ok({ id: event.params.id })
})

export default {
fetch: comet.handler
}
```

## Documentation
A proper documentation for Comet is work in progress.

## Contribution guide
Use commit names with the following prefixes to indicate their purpose

| Emoji | Prefix | Description |
|--------------------------|----------------------------|------------------------------------------------------------|
| :zap: :zap: | `:zap: :zap:` | for implementing breaking functionality (semver major) |
| :zap: | `:zap:` | for implementing non-breaking functionality (semver minor) |
| :hammer: | `:hammer:` | for bug fixes and non-breaking improvements (semver patch) |
| :wrench: | `:wrench:` | for configurations |
| :vertical_traffic_light: | `:vertical_traffic_light:` | for tests |
| :memo: | `:memo:` | for documentations |
| :mag: | `:mag:` | for lint fixes |
| :recycle: | `:recycle:` | for non-breaking refactoring |
| :paperclip: | `:paperclip:` | for dependencies |
| :octocat: | `:octocat:` | for workflows |
| :construction: | `:construction:` | for experimental or temporary changes |