• Stars
    star
    131
  • Rank 275,867 (Top 6 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 7 years ago
  • Updated almost 2 years ago

Reviews

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

Repository Details

An introductory project to the relatively new streaming APIs available in modern browsers.

Basically, Streams 🌊

So something (relatively) new and fun in browsers, are these two APIs: ReadableStream and WritableStream. 😮

What they allow you to do, is basically send and receive chunks of things progressively (that then combine into the final large thing), as opposed to moving around entire things from server -> browser -> user.

This is really cool.

Streams have some fancy bells and whistles that we'll get to talk about in this project. I'll list them below, but I'd highly recommend starting with the root-level project (index.html, index.js, index.css), and moving into the examples from there.

Why this project?

The answer to this question is basically the same answer to all the things in my "Basically" series: this project aims to explain streams to any level of developer: beginner, intermediate or advanced, focused primarly on the beginners.

The hope is that the concept of streams within a browser would not be scary, causing developers to shy away from it; but rather, that this concept would be dispalyed for how simple it really is, enabling developers to embrace it and run with it, allowing the creation beautiful, streamy things.

Examples

In the next few hours, I am to push examples of cool stream features, such as:

  • (Really) Progressive Web Apps (Demo | Code)
  • AJAX Requests with Streams (and progress bars) (Demo | Code)
  • Piping Streams (Demo | Code)
  • Backpressure (Demo | Code)
  • Teeing (Forked streams) (Demo | Code)

If you'd like to contribute your use case or examples, pull requests are welcome! Wooo!

More Repositories

1

add-gitignore

An interactive CLI tool that adds a .gitignore to your projects.
JavaScript
636
star
2

basically-fullstack-graphql

Code that aims to explain the client and the server side of using GraphQL in apps.
JavaScript
201
star
3

gen-subs

Generate subtitles for your videos with secure, on-device machine learning models.
TypeScript
160
star
4

danGPT

An AI of Dan Abramov using RAG and GenAI.
TypeScript
80
star
5

tejaskumar.com

my website nbd
TypeScript
38
star
6

babel-plugin-glamorous-to-emotion

A codemod to migrate existing React or Preact codebases from glamorous to emotion.
JavaScript
34
star
7

react-hook-intersection-observer

A simple React hook that works with the Intersection Observer API.
JavaScript
33
star
8

bookoid

An open source library management solution.
TypeScript
29
star
9

basically-react-suspense

An attempt to explain React Suspense to myself.
JavaScript
28
star
10

get-all-css-properties

An npm script that gets all the CSS properties, listed alphabetically.
TypeScript
27
star
11

basically-continuous-deployment

A simple project that aims to explain the process of continuous deployment.
JavaScript
25
star
12

praise

Do stuff with your voice in the browser.
TypeScript
13
star
13

react-server-components-from-scratch

This is from a YouTube video: https://youtu.be/F83wMYl9GWM
TypeScript
12
star
14

basically-web-workers

An introduction to Web Workers in basic terms.
JavaScript
11
star
15

event-sourcing-for-the-rest-of-us

Basically Kafka and Next.js
TypeScript
8
star
16

klar

A tool to infer and generate static type definitions based on resources returned by backend APIs.
JavaScript
8
star
17

favorite-javascript-flavors

My favorite styles in which to write JavaScript.
7
star
18

idli

Your AI command-line copilot
TypeScript
6
star
19

makeshift-next.js

A barebones Next.js from my YouTube video: https://www.youtube.com/watch?v=3RzhNYhjVAw
TypeScript
5
star
20

terraform-nodejs-screenshooter

A thing I made for a talk to teach people about Terraform and Infrastructure as Code.
HCL
5
star
21

restful-react-demo

Thing that talks to Giphy from ReactConf.
HTML
5
star
22

tejjer-next13

TypeScript
5
star
23

serverless-workshop

TypeScript
5
star
24

react-praise

A React binding for Praise.
TypeScript
4
star
25

tejjer-qwik

JavaScript
4
star
26

anna-artemov.now.sh

A basic website for my girlfriend's mom.
JavaScript
4
star
27

on-awesome

A little package to respond to people typing the word 'awesome' in web apps.
TypeScript
4
star
28

typescript-workshop-2019

Some exercises from my TypeScript workshop
TypeScript
4
star
29

jsconf-eu-2018-slides

My slides for JSconf EU 2018.
JavaScript
2
star
30

tejjer-solid

JavaScript
2
star
31

cli

A CLI of my name because yolo
JavaScript
2
star
32

typescript-trivia

Created with CodeSandbox
TypeScript
2
star
33

infusion-journal

A journal of my medical infusions
TypeScript
2
star
34

xss

A tutorial repo highlighting the basics of cross-site scripting.
TypeScript
2
star
35

react-suspense-pokedex

A bunch of things about streaming React for faster UIs.
JavaScript
2
star
36

react-fetch-with-roll-your-own-suspender

A demo of ad-hoc data fetching with React suspense that I made during a talk.
TypeScript
2
star
37

serverless-wedding

A simple demo of a serverless app with full CRUD functionality.
JavaScript
2
star
38

keel-todo

2
star
39

serverless-ssr-experiment

An experiment to learn how various UI frameworks behave when server rendered, serverless style.
JavaScript
1
star
40

saddleback-berlin-welcome

An app to serve newcomers to Saddleback Church in Berlin.
JavaScript
1
star
41

keel-thing

TypeScript
1
star
42

wasm-pack--303

A repo for an issue I opened.
Rust
1
star
43

devjokes

TypeScript
1
star
44

limelightcollective.de

The website for the Limelight Collective
TypeScript
1
star
45

drawing-app

TypeScript
1
star
46

broken-counter

TypeScript
1
star
47

reddit-bug-fix-2

JavaScript
1
star
48

stuff-ive-learned-that-might-be-helpful-for-you--

Slides from my talk about best practices for development teams.
HTML
1
star
49

tejjer-next

TypeScript
1
star
50

tejjer-mitosis

TypeScript
1
star
51

better-gmail

I'm trying to make a better mail client
1
star
52

qwikvercelbugrepro

TypeScript
1
star
53

g2i-gql-ts-thing

JavaScript
1
star
54

csp

A basic introduction to content security policies.
TypeScript
1
star
55

cli-preview

TypeScript
1
star
56

gen-ui

The demo from my tlak.
TypeScript
1
star