GithubHelp home page GithubHelp logo

andras-adam / comet Goto Github PK

View Code? Open in Web Editor NEW
10.0 3.0 2.0 690 KB

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

Home Page: https://npmjs.com/package/@neoaren/comet

License: MIT License

TypeScript 100.00%
cloudflare-workers workers router cloudflare comet routing dx

comet's Introduction

logo

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

NPM Version NPM Install Size NPM Downloads


Getting started

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 <ExportedHandler>{
  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: for implementing breaking functionality (semver major)
:zap: for implementing non-breaking functionality (semver minor)
🔨 :hammer: for bug fixes and non-breaking improvements (semver patch)
🔧 :wrench: for configurations
🚦 :vertical_traffic_light: for tests
📝 :memo: for documentations
🔍 :mag: for lint fixes
♻️ :recycle: for non-breaking refactoring
📎 :paperclip: for dependencies
:octocat: :octocat: for workflows
🚧 :construction: for experimental or temporary changes

comet's People

Contributors

andras-adam avatar danifoldi avatar adamtomi avatar vas-dav avatar

Stargazers

Quan Nguyen avatar Cyb3r Jak3 avatar  avatar Miles Zimmerman avatar Rafal Ciechanski avatar Narcis-Ionuț B. avatar Robert avatar Daniel Roe avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

vas-dav danifoldi

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.