Skip to main content
Home

@dyno/core@0.4.35
Built and signed on GitHub Actions

Dyno is a web framework for productivity.

This package works with DenoIt is unknown whether this package works with Cloudflare Workers, Node.js, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
88%
Published
9 months ago (0.4.35)

Dyno

An experimental web framework for Deno.

Getting Started

npx degit https://github.com/dynojs/template my-app
cd my-app
deno task start

Directory Structure

Dyno requires the following directory structure:

my-app/
├── main.ts
├── controllers/
│   └── HelloController.ts

Controllers

In Dyno, controllers are used to define the routes and handle HTTP requests. Here is an example of a simple controller:

import {
  Controller,
  GET,
  inject,
  JsonResponder,
  Log,
  Request,
} from "@dyno/core";

@Controller("/hello")
export class HelloController {
  constructor(
    private log = inject(Log),
    private json = inject(JsonResponder),
  ) {}

  @GET("/")
  greet(req: Request) {
    this.log.info("greeting the user");
    return this.json.ok({ hello: "world" });
  }
}

Contribute

Make a pull request.

Built and signed on
GitHub Actions

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@dyno/core

Import symbol

import * as core from "@dyno/core";
or

Import directly with a jsr specifier

import * as core from "jsr:@dyno/core";

Add Package

pnpm i jsr:@dyno/core
or (using pnpm 10.8 or older)
pnpm dlx jsr add @dyno/core

Import symbol

import * as core from "@dyno/core";

Add Package

yarn add jsr:@dyno/core
or (using Yarn 4.8 or older)
yarn dlx jsr add @dyno/core

Import symbol

import * as core from "@dyno/core";

Add Package

vlt install jsr:@dyno/core

Import symbol

import * as core from "@dyno/core";

Add Package

npx jsr add @dyno/core

Import symbol

import * as core from "@dyno/core";

Add Package

bunx jsr add @dyno/core

Import symbol

import * as core from "@dyno/core";