Skip to main content

aim_deno 0.4.0 copy "aim_deno: ^0.4.0" to clipboard
aim_deno: ^0.4.0 copied to clipboard

Platformweb

Deno adapter for Aim: runs an Aim app on Supabase Edge Functions and other Deno runtimes.

example/main.dart

import 'package:aim_deno/aim_deno.dart';

void main() {
  final app = Aim();

  app.get('/', (c) async => c.text('Hello from Dart on Deno'));

  app.get('/users/:id', (c) async => c.json({'id': c.param('id')}));

  app.get(
    '/greeting',
    (c) async => c.text(c.env?.string('GREETING') ?? '(unset)'),
  );

  // Supabase serves this function under /<function-name> and passes that
  // segment through; Deno Deploy and Netlify Edge do not.
  app.serveDeno(basePath: 'my_api');
}
0
likes
160
points
360
downloads

Documentation

API reference

Publisher

verified publisherdart-forge.dev

Weekly Downloads

Deno adapter for Aim: runs an Aim app on Supabase Edge Functions and other Deno runtimes.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

aim_core, aim_edge, web

More

Packages that depend on aim_deno