• Stars
    star
    191
  • Rank 202,877 (Top 4 %)
  • Language
    JavaScript
  • Created over 3 years ago
  • Updated 20 days ago

Reviews

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

Repository Details

Official docs and website for Neon.

Neon Next.js

Table of Contents

Getting Started

  1. Clone this repository
git clone [email protected]:neondatabase/website.git
  1. Install dependencies
npm install
  1. Fill environment variables
cp .env.example .env

Usage

Run the website

npm run dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying src/app/page.jsx. The page auto-updates as you edit the file.

Build the website

npm run build

Run the built website

npm run start

Checks broken links

npm run check:broken-links -- https://neon.tech

The command may take time, be patient. You can also specify which part of the website you want to check by passing a specific URL, for example https://neon.tech/docs for checking the Docs

N.B. The automatic check is done every Monday at midnight by GitHub CI. You can find the reports on the "Actions" tab

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

Project Structure

├── content — Documentation sources in `mdbook` format, see [Documentation](#docs) section
├── public
├── src
│   ├── app
│   ├── components
│   │  ├── pages — React components that are being used specifically on a certain page
│   │  └── shared — React components that are being used across the whole website
│   ├── hooks
│   ├── icons
│   ├── images
│   ├── lib
│   ├── scripts
│   ├── styles
│   ├── utils
├── next.config.js — Main configuration file for a Next.js site. Read more about it [here](https://nextjs.org/docs/api-reference/next.config.js/introduction)
├── postcss.config.js — Main configuration file of PostCSS. [Read more about it here](https://tailwindcss.com/docs/configuration#generating-a-post-css-configuration-file)
└── tailwind.config.js — Main configuration file for Tailwind CSS [Read more about it here](https://tailwindcss.com/docs/configuration)

Component Folder Structure

Each component includes

  1. Main JavaScript File
  2. Index File

Each component optionally may include

  1. Folder with images and icons
  2. Folder with data

Also, each component may include another component that follows all above listed rules.

Example structure

component
├── nested-component
│  ├── data
│  │  └── nested-component-lottie-data.json
│  ├── images
│  │  ├── nested-component-image.jpg
│  │  ├── nested-component-inline-svg.inline.svg
│  │  └── nested-component-url-svg.url.svg
│  ├── nested-component.js
│  └── index.js
├── data
│  └── component-lottie-data.json
├── images
│  ├── component-image.jpg
│  ├── component-inline-svg.inline.svg
│  └── component-url-svg.url.svg
├── component.js
└── index.js

Code Style

ESLint

ESLint helps find and fix code style issues and force developers to follow same rules. Current configuration is based on Airbnb style guide.

Additional commands:

npm run lint

Run it to check the current status of eslint issues across project.

npm run lint:fix

Run it to fix all possible issues.

Prettier

Prettier helps to format code based on defined rules. Difference between Prettier and ESLint.

Additional commands:

npm run format

Run it to format all files across the project.

VS Code

Following extensions required to simplify the process of keeping the same code style across the project:

After installation enable "ESLint on save" by adding to your VS Code settings.json the following line:

"editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
}

You can navigate to settings.json by using Command Pallete (CMD+Shift+P) and then type "Open settings.json".

To enable Prettier go to Preferences -> Settings -> type "Format". Then check that you have esbenp.prettier-vscode as default formatter, and also enable "Format On Save".

Reload VS Code and auto-format will work for you.

Docs

Documentation for docs is described in content/docs/README.md

More Repositories

1

neon

Neon: Serverless Postgres. We separated storage and compute to offer autoscaling, code-like database branching, and scale to zero.
Rust
13,985
star
2

pg_embedding

Hierarchical Navigable Small World (HNSW) algorithm for vector similarity search in PostgreSQL
C
557
star
3

serverless

Connect to Neon PostgreSQL from serverless/worker/edge functions
TypeScript
324
star
4

autoscaling

Postgres vertical autoscaling in k8s
Go
149
star
5

yc-idea-matcher

Submit your idea and get a list of similar ideas that YCombinator has invested in in the past.
TypeScript
145
star
6

wsproxy

Go
115
star
7

ask-neon

Chatbot: Search your own knowledge base by semantic similarity
TypeScript
54
star
8

neonctl

Neon CLI tool. The Neon CLI is a command-line interface that lets you manage Neon Serverless Postgres directly from the terminal.
TypeScript
49
star
9

drizzle-overview

Demo Drizzle ORM, Hono & Neon API
TypeScript
49
star
10

postgres-ai-playground

TypeScript
33
star
11

cloudflare-drizzle-neon

Example API using Cloudflare Workers, Drizzle ORM and Neon
TypeScript
33
star
12

helm-charts

neondatabase helm charts
Smarty
32
star
13

psql-describe

psql's \d (describe) family of commands ported to JavaScript
JavaScript
31
star
14

create-branch-action

GitHub Action to create a new Neon branch
30
star
15

preview-branches-with-vercel

Example project that shows how you can create a branch for every preview deployment on Vercel using GitHub actions
TypeScript
27
star
16

serverless-cfworker-demo

Demo app for @neondatabase/serverless — details at https://blog.cloudflare.com/neon-postgres-database-from-workers/
HTML
23
star
17

postgres

PostgreSQL in Neon
C
21
star
18

examples

Examples and code snippets demonstrating common ways of integrating Neon with various frameworks and languages.
TypeScript
19
star
19

postgres-sample-dbs

A collection of sample Postgres databases for learning, testing, and development.
PLpgSQL
18
star
20

naturesnap

TypeScript
18
star
21

neonvm

NeonVM: QEMU-based virtualization API and controller for Kubernetes
Go
17
star
22

preview-branches-with-fly

A Neon branch for every Fly Preview app
TypeScript
16
star
23

ping-thing

Ping a Neon Serverless Postgres database using a Vercel Edge Function to see the journey your request makes.
JavaScript
15
star
24

neon-vercel-kysely

Example use of Neon serverless driver on Vercel Edge Functions with Kysely and kysely-codegen
TypeScript
12
star
25

neon-api-python

a Python client for the Neon API
Python
12
star
26

tokio-epoll-uring

Use io_uring from vanilla tokio.
Rust
9
star
27

semicolons

Take a string with multiple Postgres SQL statements, separated by semicolons, and split it into its constituent statements
TypeScript
8
star
28

delete-branch-action

7
star
29

instant-postgres

TypeScript
7
star
30

neon-postgresql-expert

Input for an OpenAI GPT that can answer questions about Neon database and Postgres
Python
5
star
31

github-automations

Scripts that we use to track issues in github's (beta) projects
TypeScript
5
star
32

pg-import

A CLI tool for importing data from one PostgreSQL database to another.
JavaScript
5
star
33

fastapi-apprunner-neon

Create a serverless API using FastAPI, deployed on AWS App Runner and powered by Neon Postgres
Python
5
star
34

delete-branch-by-name-action

Delete Neon database branch by name
4
star
35

rfcs

4
star
36

neon-branches-visualizer

Visualize your Neon Postgres branches
TypeScript
4
star
37

zenith.tech

JavaScript
3
star
38

neon-vercel-rawsql

Example use of Neon serverless driver on Vercel Edge Functions with raw SQL
TypeScript
3
star
39

aws-cost-reporter

Create and share AWS Cost and Usage reports in Slack.
Go
3
star
40

pg_session_jwt

Postgres Extension for JWT Sessions
Rust
3
star
41

neon-vector-search-openai-notebooks

Jupyter Notebook for Vector Search with Neon and OpenAI
Jupyter Notebook
3
star
42

kube-previews-application

Example project that shows how to create a Neon branch for preview environments deployed on Kubernetes using Argo CD
TypeScript
3
star
43

postgresql_anonymizer

Neon fork of https://gitlab.com/dalibo/postgresql_anonymizer
PLpgSQL
3
star
44

neon_twitter

TypeScript
2
star
45

aversion

Rust
2
star
46

keycloak-example

TypeScript
2
star
47

neon-hyperdrive

Example use of Neon with Hyperdrive on Cloudflare Workers
TypeScript
2
star
48

meeting-notes

2
star
49

mastodon-fly

Dockerfile
2
star
50

regional-latency

A tool that tracks latencies between popular application hosting platforms and nearby Neon Postgres regions.
TypeScript
2
star
51

prisma-vercel-load-test

An app that tests prisma on vercel with vercel postgres
CSS
2
star
52

lambda-cdk-neon

This is an example API built using AWS Lambda, API Gateway, Secrets Manager and Neon
TypeScript
2
star
53

neon-vercel-http

Example use of Neon serverless driver's experimental HTTP feature on Vercel Edge Functions
TypeScript
1
star
54

neon-vercel-knex

Example use of Neon serverless driver on Vercel Edge Functions with Knex.js
JavaScript
1
star
55

dev-actions

JavaScript
1
star
56

vm-monitor

Rust
1
star
57

restore-neon-branch

Script to restore a Neon branch to a previous state while preserving the same endpoint
TypeScript
1
star
58

neon-google-colab-notebooks

Neon Google Colab Notebooks
Jupyter Notebook
1
star
59

guide-neon-prisma

Example application for Neon Prisma Guide
JavaScript
1
star
60

guide-neon-drizzle

Example application for Neon with Drizzle
TypeScript
1
star
61

s3-scrubber

Rust
1
star
62

zenith-coverage-data

1
star
63

.github

Public organization profile
1
star
64

latency-dashboard

TypeScript
1
star
65

neon-vercel-zapatos

Example use of Neon serverless driver on Vercel Edge Functions with Zapatos
TypeScript
1
star
66

rust_wal.experimental

Wrap a database frontend in rust based consensus
Rust
1
star
67

neon-ecto-getting-started-app

Neon Ecto Getting Started
Elixir
1
star
68

kube-previews-manifests

Example manifests used to create preview environments deployed on Kubernetes using Argo CD
Shell
1
star
69

rustls-split

Rust
1
star
70

pgvector

C
1
star
71

devdays2

Neon Developer Days Side Project
JavaScript
1
star
72

docker-images

Docker images that helps build and test Neon product
Dockerfile
1
star
73

branching-demo

Copy your database in milliseconds with Neon
TypeScript
1
star
74

zenith-perf-data

Simple collection of zenith performance test runs
HTML
1
star
75

reset-branch-action

1
star
76

proxy-bench

Benchmarking tools for Neon's Postgres Proxy
Rust
1
star
77

qovery-lifecycle-job

Shell
1
star
78

pg_neon_ai

Rust
1
star
79

guide-neon-next-clerk

How to use Clerk with Neon
TypeScript
1
star
80

guide-neon-next-auth0

How to use Auth0 with Noeon
TypeScript
1
star