Skip to main content
The Deno 2 Release Candidate is here
Learn more
Feathers logo

A framework for real-time applications and REST APIs with Deno

This folder contains the Deno build of Feathers.

Use with Deno

// app.ts
import { feathers } from 'https://deno.land/x/feathers@v5.0.0-pre.3/mod.ts';

type Message {
  message: string;
}

class MyService {
  async create (data: Message) {
    return data;
  }
}

type ServiceTypes {
  myservice: MyService
}

const app = feathers<ServiceTypes>();

app.use('myservice', new MyService());

app.service('myservice').on('created', (data: Message) => {
  console.log('Created', data);
});

await app.service('myservice').create({
  message: 'Hello from Deno'
});