• Stars
    star
    228
  • Rank 175,267 (Top 4 %)
  • Language
    TypeScript
  • Created over 8 years ago
  • Updated over 3 years ago

Reviews

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

Repository Details

⚡⚛ AMP HTML, Next.js, React, styled-components, GraphQL, and TypeScript — The most trendy website boilerplate possible.

ampreact

⚡⚛ AMP HTML, Next.js, React, styled-components, GraphQL, and TypeScript — The most trendy website boilerplate possible.

About

The core of ampreact is built on Next.js, used for all the routing and serving of pages. For styling, styled-components makes it easy—with just a small modification to the rendering of the <style /> tags generated, it works nicely with AMP HTML. Finally, react-amphtml is used for rendering all of the AMP HTML built-ins, extensions, and the <script /> tags needed to use them.

The pages generated should all by properly validated by AMP HTML 💯

Usage

All the usage and benefits of Next.js are available to ampreact.

  • Installation:

    npm install
  • Development:

    npm run dev
  • Production:

    npm run build
    npm run start

Example & Validation

An example of ampreact can be seen here: https://ampreact.dfrankland.now.sh/

For proof of validation, either:

  1. Append #development=1 to the URL and check the console for errors

  2. Paste the page HTML into https://validator.ampproject.org/#url=https%3A%2F%2Fampreact.dfrankland.now.sh%2F

Deployment

Because ampreact is built on top of Next.js it is simple to deploy to Now or any other cloud infrastructure providers.

Deploy to now

More Repositories

1

pokemonsay

👾 Pokemon version of cowsay with CLI and API.
JavaScript
401
star
2

react-amphtml

⚡️ Use amphtml components inside your React apps easily!
TypeScript
143
star
3

hyper-sync-settings

🔃 Sync Hyper.app settings with Github.
TypeScript
123
star
4

bluster

A Rust crate for implementing BLE (Bluetooth Low Energy) peripherals
Rust
110
star
5

hyper-tab-icons

💅 Icons in the header tabs for the current running process in Hyper.app.
JavaScript
92
star
6

sous-vide

🍲 Node.js API to control Anova water circulators.
JavaScript
69
star
7

wasm-brotli

🗜 WebAssembly compiled Brotli library
TypeScript
66
star
8

hyper-transparent-bg

🌫 An emulated transparent background for HyperTerm!
JavaScript
36
star
9

threejs-water

Three.js implementation of water with real-time caustics.
JavaScript
30
star
10

xpc-connection-rs

XPC connection bindings for Rust
Rust
29
star
11

lastpass-node

🔐 Lastpass client for Node.js
JavaScript
26
star
12

font-family-merger

Merge font variations together to make a big, happy, font family!
Python
21
star
13

nixos-rpi-sd-image

A convenient way to create custom Raspberry Pi NixOS SD images.
Nix
21
star
14

wasm-zopfli

🗜 WebAssembly compiled Zopfli library
JavaScript
16
star
15

awesome-rust-keyboard-firmware

A list of keyboard firmwares written in Rust and related resources.
13
star
16

hyperterm-lastpass

⚫️ Lastpass plugin for autofilling passwords in HyperTerm.
JavaScript
13
star
17

bitwise-rotation

🔄 Rotate values with a bitwise rotation.
JavaScript
10
star
18

rollup-webpack-loader

🍭 Add rollup to your webpack.
JavaScript
9
star
19

node-fonttools

🖋 Native bindings to `fonttools` to decompile and compile fonts.
C++
8
star
20

keycode

A Rust crate for translating keycodes based on Chrome's mapping of keys.
Rust
8
star
21

grav-plugin-dropbox

A highly alpha, yet working Dropbox plugin for Grav.
PHP
8
star
22

eyeliner

👁 A CSS inliner for making emails.
Rust
8
star
23

proton-c

Board Support Crate for the Proton C.
Rust
6
star
24

docker-preprocessors

📬Easy way to preprocess resources and assets with Docker.
JavaScript
5
star
25

node-eyeliner

Native bindings for eyeliner, a CSS inliner for making emails.
Rust
4
star
26

pm2-loggly

PM2 Remote Logging to Loggly
JavaScript
4
star
27

bleboard

Simple app to make any keyboard bluetooth enabled
Rust
4
star
28

pixelmatch-rs

Pixel-level image comparison
Rust
4
star
29

zopfli-rs

Bindings to `zopfli` for deflate, gzip, and zlib compression.
Rust
4
star
30

bitrate

Extension traits that add convenience methods for working with bitrates and frequencies.
Rust
4
star
31

jsxn-rs

Put JSX in your JSON and JSON in your JSX!
Rust
4
star
32

docker-intranet

Easy way to get started with a small intranet.
PHP
4
star
33

hyper-custom-plugins

🛠 Create Hyper.app plugins from Hyper.app's configuration file.
JavaScript
4
star
34

linter-american

🇺🇸 Make American spelling great again.
JavaScript
3
star
35

mk20d7-hal

Rust embedded-hal implementation crate for the MK20D7 processor
Rust
3
star
36

tokei-aas

Tokei as a Service
Rust
3
star
37

nur-packages

My personal NUR repository
Nix
2
star
38

karl-the-fog

🌫 Creates a "stylized fog" using an HTML5 canvas.
JavaScript
2
star
39

moment.rs

Rust
2
star
40

wasm-module-preprocessors

💎 Easy way to preprocess WebAssembly (wasm) modules.
JavaScript
2
star
41

rust-apigpio

C
2
star
42

zerocater-slack

Simple personal foray into slack slash commands using my newly created ZeroCater client.
JavaScript
2
star
43

inro

🌸 Probably the easiest way to create a responsive UI.
JavaScript
2
star
44

amphtml-validator-rules

🔏Get all the rules that `amphtml-validator` uses.
JavaScript
2
star
45

MagentoOrderCancelEmailNotification

When an order is cancelled a notification of this even will be emailed to magento's support email.
PHP
2
star
46

zerocater-node

🍱 Node.js client for ZeroCater.
JavaScript
2
star
47

image-xterm-loader

🖥 Load images with Webpack as XTerm 256-color compatible strings.
JavaScript
2
star
48

grav-plugin-redirects2

Grav plugin to redirect on a per page basis.
PHP
1
star
49

git-changelog

Quick Node.js script to output a CSV changelog of git commits
JavaScript
1
star
50

node-jsxn

Put JSX in your JSON and JSON in your JSX!
Rust
1
star
51

rust-lib-bin-crate-example

Shows that a Rust module can be both a `lib` and a `bin`.
Rust
1
star
52

jira-absolute-dates

⌛ Chrome extension that shows JIRA absolute dates.
JavaScript
1
star
53

babel-plugin-ad-lib

🔥 A Babel plugin to make your code lit AF
JavaScript
1
star
54

log-scrollback-ui-template

JavaScript
1
star
55

domshot

Render HTML + CSS to images quickly
Rust
1
star
56

docker-tweets

Container for spinning up an oauth server to retrieve tweets.
1
star
57

crowd-control

⚠️ Control promises in a queue with optional timeouts.
JavaScript
1
star
58

nginx-indicator

🚨 Nginx up-indicator, click to start server
JavaScript
1
star
59

node-find-synology

Use find.synology.com's APIs for finding your local Synology NASs
JavaScript
1
star
60

gdo-server

Integrate Security+ 2.0 garage doors w/ MQTT
Python
1
star
61

git-webfont-service

🖇 Serve fonts from a git repo.
JavaScript
1
star
62

sketch-expander

🆙 Expand Sketch files to make them easy to version control.
JavaScript
1
star
63

mk20d7

Rust device crate generated with svd2rust for MK20D7 processors
Rust
1
star
64

hyper-greeting

🙋 Add a nice greeting to each new session created in Hyper.
JavaScript
1
star
65

raspberry-pi-server-poc

🔑 A quick proof of concept that a server (will be a Raspberry Pi) can be used as an upstream server behind a VPN (OpenVPN in this case) from another server (planning on using DigitalOcean).
Shell
1
star
66

linter-rust-cargo

Rust Cargo linter that's fast.
JavaScript
1
star
67

advent-of-code-2022

Zig
1
star
68

npm-reinstall-global-packages

Simple Node.js script to reinstall all npm global packages (convenient for when you change Node.js versions)
JavaScript
1
star
69

npm-dependency-injection

💉 A very dumb version of dependency injection for npm.
JavaScript
1
star
70

rocky-watchface-tutorial-part1-webpack-example

📖 Example of how to use Webpack with the Pebble smartwatch.
JavaScript
1
star