• This repository has been archived on 11/Jan/2024
  • Stars
    star
    112
  • Rank 312,240 (Top 7 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created about 3 years ago
  • Updated about 1 year ago

Reviews

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

Repository Details

A template for creating custom Blocks.

GitHub Blocks Template

Use this repository as a starter template for building your own Blocks.

Quickstart

🛑 Currently, you must be flagged into the GitHub Blocks Technical Preview in order to develop blocks. There is no "offline" development mode at this time.

Fork this repo using the Use this template button above:

"Use this template" button

Then, clone your repo (not this one!) and get ready for action:

yarn # install dependencies
yarn start # start the dev server
# Or use npm, pnpm, you know the drill

When you visit localhost:4000 in your browser, you'll be redirected to the Blocks app, but your locally-developed blocks will appear in the block picker:

Block picker

(if you're using Safari (or another browser that doesn't permit calling http URLs from an https page), run yarn start-https and visit https://localhost:4000 instead.)

This template includes one example File Block and one Folder Block. The dev server supports hot reloading, so make some changes, and see what they do!

Under the hood

Currently, Blocks are React components. They have a well-defined contract with their surroundings, and receive a fixed set of props when they are instantiated. They are developed in TypeScript, and bundled with Vite.

More Info

Visit githubnext/blocks for a full tutorial, documentation, and examples.

You should also join us in our discord! There's a #blocks channel where you can connect with us and other folks who are building Blocks:

👋 https://discord.gg/githubnext

License

MIT

✌️ ❤️ GitHub Next

More Repositories

1

monaspace

An innovative superfamily of fonts for code
TypeScript
13,775
star
2

testpilot

Test generation using large language models
TypeScript
495
star
3

copilot-workspace-user-manual

📖 The user manual for GitHub Copilot Workspace
368
star
4

blocks

A set of files to use as input for Blocks.
333
star
5

gpt4-with-calc

GPT-4 Equipped with Numeric Calculation
TypeScript
171
star
6

vitale

TypeScript notebook for developers
TypeScript
163
star
7

githubnext

A public point of contact for GitHub Next
155
star
8

blocks-examples

A set of example custom Blocks.
TypeScript
92
star
9

amalfi-artifact

Artifact accompanying our ICSE '22 paper "Practical Automated Detection of Malicious npm Packages"
Python
35
star
10

blocks-dev

TypeScript
18
star
11

universe-blocks-demo

JavaScript
14
star
12

spectrum

TypeScript
13
star
13

blocks-template-svelte

make GitHub Blocks with Svelte!
JavaScript
9
star
14

vscode-react-webviews

A sample/starter template for developing VS Code extensions with webviews
TypeScript
7
star
15

UpgrAIder

Upgrade deprecated/outdated code using LLMs and release notes
Python
7
star
16

llmorpheus

LLM-based mutation testing
TypeScript
5
star
17

tiny-svelte-fsm

A minimalistic finite state machine library for Svelte 5
TypeScript
4
star
18

blocks-template-react

make GitHub Blocks with React!
JavaScript
3
star
19

preview-block

TypeScript
2
star
20

universe-blocks-demo-blocks

CSS
2
star
21

followup-attention

Accompanying artifacts for the TSE paper "Follow-up Attention: An Empirical Study of Developer and Neural Model Code Exploration"
Jupyter Notebook
2
star
22

blocks-template-vue

make GitHub Blocks with Vue!
JavaScript
1
star
23

array-toolbox

This is going to get a thousand stars
JavaScript
1
star
24

blocks-howie-spike-busted

TypeScript
1
star
25

.github

1
star
26

emoji-block

TypeScript
1
star
27

blocks-runtime

runtime support for Blocks
TypeScript
1
star
28

azuresvelte

JavaScript
1
star
29

hello-world

Sample repository
TypeScript
1
star
30

azureswacookies

TypeScript
1
star
31

history-blocks

TypeScript
1
star