Skip to main content

Orion: A New Horizon in Server and API Creation

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
94%
Published
11 months ago (0.1.1)

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.

#server

import Orion from "@orion/orion";

function hello_world(name: string) {
  console.log("Hello " + name + " I am Handler Function");
  return Response.json({ name: "Riasat" });
}

const app = new Orion();
app.handlers = { hello_world };

app.start(3000);

#client

import OrionServer from "@orion/client";

const server = new OrionServer("http://localhost:3000");
const app = server.getApp();

const response = await app.hello_world("Riasat");
console.log(await response);

Add Package

deno add jsr:@orion/orion

Import symbol

import * as orion from "@orion/orion";

---- OR ----

Import directly with a jsr specifier

import * as orion from "jsr:@orion/orion";

Add Package

npx jsr add @orion/orion

Import symbol

import * as orion from "@orion/orion";

Add Package

yarn dlx jsr add @orion/orion

Import symbol

import * as orion from "@orion/orion";

Add Package

pnpm dlx jsr add @orion/orion

Import symbol

import * as orion from "@orion/orion";

Add Package

bunx jsr add @orion/orion

Import symbol

import * as orion from "@orion/orion";