• Stars
    star
    241
  • Rank 167,643 (Top 4 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created almost 5 years ago
  • Updated almost 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The Preact Framework for Deno

dext.ts

logo

The Preact Framework for Deno. Dext.ts is heavily inspired by Next.js.

  • Zero config
  • Pre-render pages at build time (SSG)
  • Tiny (example is only 5.75KB of JS)
  • Client hydration
  • Built-in routing
  • Zero config TypeScript support
  • File-system routing
  • Code-splitting, bundling, and tree shaking built in

Installing

To install, run the following command. This will make the dext CLI available in your path.

deno install --allow-read --allow-write --allow-env --allow-net --allow-run --unstable -f -n dext https://deno.land/x/[email protected]/cli.ts

Getting started

To create a new project run dext create myproject. This will scaffold a new dext project in the myproject folder. This folder contains a few files:

  • deps.ts contains all of your projects dependencies.
  • pages/index.tsx is the source for the / of your project.
  • pages/user/[name].tsx is the source for all routes at /user/[name] (e.g. /user/luca and /user/bartek).
  • tsconfig.json is the TypeScript configuration that the project uses.
  • .gitignore tells git to ignore the .dext folder that is created by dext dev and dext build.

Now that you have a project set up, you can start the development server using dext dev. After a few seconds you can view your built page at http://127.0.0.1:3000. When you change any of the files in the pages directory, your project will be rebuilt automatically, and the page will be automatically reloaded in the browser.

When you are ready to deploy to production, run dext build. This will generate a production optimized build. You can start a production webserver to serve this build with dext start.

Example

For an example, see the /example folder. You can create a production build it by running dext build, and then serve it by running dext start. You can also run dext dev to start watching, building, and serving.

You can also see a deployed version of this example on at https://dext.fly.dev.

More Repositories

1

deno-puppeteer

A port of puppeteer running on Deno
TypeScript
445
star
2

now-deno

Deno builder for Vercel - run Deno on Vercel. 🦕 + λ = ❤️
TypeScript
264
star
3

esbuild_deno_loader

Deno module resolution for `esbuild`
TypeScript
171
star
4

armadajs

A custom JavaScript runtime for the ArmadaJS conference
Rust
87
star
5

fresh-with-signals

Using @preact/signals in Fresh
TypeScript
82
star
6

deno_s3

Amazon S3 for Deno
TypeScript
54
star
7

deploy_chat

A live chat app running on Deno Deploy
TypeScript
40
star
8

proposal-binary-encoding

A proposal to add modern, easy to use binary encoders to the web platform.
JavaScript
40
star
9

deno_httpcache

HTTP Caching for Deno - in memory and redis storage support. Inspired by the Service Worker Cache API.
TypeScript
25
star
10

freshworkshop

TypeScript
21
star
11

workerkit

A library to make writing Cloudflare Workers way nicer
TypeScript
21
star
12

ammonia-wasm

WASM bindings for the Ammonia HTML sanitizer
TypeScript
20
star
13

wrap

wrap is an abstraction layer on top of mongodb 🍃 to make it feel like sorta like firestore 🔥
Go
19
star
14

deno_googleapis

TypeScript
19
star
15

comrak-wasm

WASM bindings for the comrak markdown renderer
TypeScript
17
star
16

mqtt

A nice MQTT client library that wraps paho.mqtt.golang
Go
17
star
17

puppeteer_on_deploy

Running puppeteer on Deno Deploy!
TypeScript
16
star
18

deno_local_file_fetch

This polyfills file:// support for `fetch`
TypeScript
12
star
19

deno-fetchevent

FetchEvent based server compatible with browser.
TypeScript
11
star
20

deno_aws_sign_v4

Generate AWS Signature V4 for AWS low-level REST APIs.
TypeScript
10
star
21

messageformat.dev

TypeScript
10
star
22

denopaste

TypeScript
9
star
23

fetchevent_examples

Examples that make use of web standard FetchEvent
JavaScript
9
star
24

floatplaneapi

An unofficial API to interface with floatplane.com from own systems. This is not in any way affiliated with floatplane.com.
TypeScript
8
star
25

cases

TypeScript
7
star
26

rethinkdb-deno

A RethinkDB driver for deno.
TypeScript
6
star
27

deno_sqs

Amazon SQS for Deno
TypeScript
6
star
28

proposal-semaphore

6
star
29

deno_xhr

XMLHttpRequest polyfill for Deno
6
star
30

x.lcas.dev

A CDN that serves X-TypeScript-Types headers.
JavaScript
6
star
31

deno_ssm

Amazon SSM sdk from Deno
TypeScript
5
star
32

rethinkdb-kubernetes

RethinkDB on Kubernetes
Shell
4
star
33

flag

TypeScript
4
star
34

stream-utils

TypeScript
4
star
35

antictf

A CTF platform that uses Google Cloud for infinite scalability.
TypeScript
4
star
36

runtime-detector

TypeScript
4
star
37

greeter

TypeScript
3
star
38

branch-protection-test

3
star
39

lspower

Rust library for the Language Server Protocol (LSP)
Rust
3
star
40

luca

TypeScript
3
star
41

deno_doc_discord

A discord integration for deno doc
TypeScript
3
star
42

deno_metrics

Runtime metrics for Deno
TypeScript
3
star
43

wgpu_cts_runner

A minimal JS runtime built on Deno (deno_core / extensions) that can be used to test WebGPU CTS outside of full Deno.
Rust
3
star
44

reqwest_connection_pooling_bug

Reproduction for reqwest connection pooling bug
Rust
3
star
45

base64_streams

TypeScript
2
star
46

deno_webidl

A toolbox for WebIDL, written for Deno.
TypeScript
2
star
47

gojs

JS running in Go using v8worker2 🤯
Go
2
star
48

deno_aws

AWS SDK for Deno
2
star
49

deno_analyzer

The analyzer used to score deno.land/x modules
TypeScript
2
star
50

frontmatter

handle frontmatter in files
Go
1
star
51

module-harmony-usecases

JavaScript
1
star
52

Go_Websocket

This is a go websocket api!
Go
1
star
53

stream-utils-demo

TypeScript
1
star
54

demooidc

TypeScript
1
star
55

test

1
star
56

date_extensions

Extensions to the default dart DateTime class
Dart
1
star
57

deploy_examples

JavaScript
1
star
58

dash-todo

A server rendered TODO application
TypeScript
1
star
59

modernfrontends2022-bench

JavaScript
1
star
60

tcq2

TypeScript
1
star
61

PayEnabledOrderSystem

PEOS is the standard for insecure transactions using Google Sheets
HTML
1
star
62

mf2-tools

This repo contains a language server for the Message Format 2 message localization system from Unicode.
Rust
1
star