neon-object-storage
Fungsinya
Layanan ini memungkinkan Anda menyimpan file (seperti gambar atau dokumen) dengan cara yang tetap tersinkronisasi dengan database project Neon Anda. Setiap 'branch' project Anda akan memiliki ruang penyimpanan terisolasi sendiri.
Kapan dipakai
- βSaat Anda sudah menggunakan Neon untuk database dan ingin satu tempat untuk data dan file.
- βSaat file dan data database harus selalu up-to-date bersama di berbagai versi project Anda.
- βSaat ingin menguji perubahan pada file tanpa membahayakan data penting.
Link skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/neon-object-storage/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βBagaimana cara mengatur penyimpanan file agar mengikuti branch database Neon saya?β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Anda mendefinisikan storage 'bucket' yang diinginkan di file konfigurasi project Neon Anda (`neon.ts`). Setelah itu, satu perintah sederhana akan membuatnya, dan Neon menangani sinkronisasi semuanya dengan branch database Anda.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Neon Object Storage
This is a preview feature and only available in us-east-2. Neon Object Storage is S3-compatible object storage that branches with your projects: every branch gets its own isolated storage state, so files and database rows stay in sync across dev, preview, staging, and production.
Use this skill to help the user store and serve files that branch alongside their database. Deliver a working bucket and upload/download flow, a branch-aware S3 client wired to the injected env vars, or a precise answer from the official Neon docs.
When to Use
Reach for Neon Object Storage when the user needs to store files (images, uploads, generated assets, documents, backups) and any of the following are true:
- They already use Neon Postgres and don't want a second provider. One backend, one bill, one CLI, one set of branches β instead of standing up and wiring a separate AWS S3 / R2 / Supabase Storage account. The same Neon credential that backs the database backs storage.
- Files must stay in sync with the database across environments. Storage branches together with your Postgres data. Fork a branch and the child instantly inherits the parent's buckets and objects at that point in time β copy-on-write, so no data is duplicated. This is what makes agent, dev, preview, and test environments seamless: a preview branch gets a consistent snapshot of both the rows and the files they reference, and writes on the child never touch the parent.
- They want safe, throwaway environments. Upload, overwrite, and delete files in a preview/CI branch without any risk to production data, then drop the branch.
- They want standard S3 tooling. It's built on S3 semantics and speaks the S3 API, so the AWS SDKs,
boto3, the AWS CLI, and presigned URLs all work β reliable and familiar, with no proprietary client.
If the user has no Neon project, isn't on Postgres, and just needs a standalone CDN-backed asset store, a dedicated object store may fit better β but the moment branch-consistent files + rows matter, this is the reason to use it.
What It Does
- S3-compatible β Works with existing S3 SDKs,
boto3, the AWS CLI, and presigned URLs. Path-style addressing and SigV4 only. - Branches with your database β Every Neon branch gets its own isolated, copy-on-write storage state. Forking copies no data.
- Two access modes β
privatebuckets require a credential for every operation;public_readbuckets allow anonymous reads with authenticated writes. - One credential system β The same Neon credential system used by Functions and the AI Gateway.
Setup
Object storage is part of the neon.ts infrastructure-as-code config (see the neon skill for the branch-first workflow, link/checkout, and neon.ts basics). Declare buckets under preview.buckets, keyed by bucket name:
// neon.ts
import { defineConfig } from "@neon/config/v1";
export default defineConfig({
preview: {
buckets: {
images: {}, // private by default
"public-assets": { access: "public_read" },
},
},
});
Provision the declared buckets on the linked branch:
neon deploy # alias for `neon config apply`
Neon Infrastructure as Code (neon.ts)
The preview.buckets block above is part of neon.ts, Neon's infrastructure-as-code file β one TypeScript file declares your buckets alongside every other service the branch should have (see the neon skill for the full reference). Reconcile the declaration against a branch the Terraform way:
neon config status # print the branch's live config (which buckets exist)
neon config plan # dry-run diff of what apply would change
neon config apply # create the declared buckets (neon deploy is an alias)
Buckets are branch-scoped: when a neon.ts is present, neon checkout applies the policy as it creates a branch, so a fresh preview/CI branch comes up with its buckets already provisioned (and copy-on-write objects inherited from the parent). Checking out an existing branch doesn't reconcile it β run neon deploy to apply changes. Provisioning (config apply / deploy), link, and checkout also pull the branch's S3 credentials into your local .env.local, so the same env pull step shown below happens for you on those commands.
β¦
Pertanyaan umum
Apa arti 'S3-compatible'?
Artinya layanan ini menggunakan standar komunikasi (API) yang sangat umum untuk penyimpanan file, sama dengan yang digunakan layanan seperti Amazon S3. Dengan begitu, Anda bisa memakai tool dan library yang sudah familiar untuk berinteraksi dengannya.
Apa itu 'branch' dalam konteks ini?
Branch seperti salinan project Anda yang bisa dipakai untuk menguji fitur baru atau membuat perubahan tanpa memengaruhi versi utama. Layanan ini memastikan setiap branch memiliki file sendiri, yang tersinkronisasi dengan data branch tersebut.
Bisakah saya membuat file publik atau privat?
Bisa, Anda dapat mengonfigurasi bucket penyimpanan agar bersifat privat (perlu login untuk mengakses) atau publik untuk dibaca (siapa pun bisa melihat, tetapi hanya Anda yang bisa menambah atau mengubah).
Detail
Deskripsi asli dari pembuat
S3-compatible object storage that branches with your Neon project, so files and the database stay in sync across every branch.
Popularitas
- Bintang GitHub
- 48k
- Peringkat
- #5283
- Lisensi
- MIT
- Diperbarui
- 15/10/2026
Komentar
- β¦
Skill lain dari repositori ini
00-andruia-consultant
48kMembantu agent Anda memulai atau meningkatkan proyek AI. Agent menganalisis kode, menyarankan tools, dan membuat rencana aksi dalam bahasa Spanyol.
007
48kMemungkinkan agent Anda melakukan audit keamanan dan threat modeling. Berguna untuk melindungi proyek dari serangan dan celah keamanan.
10-andruia-skill-smith
48kMembantu agent Anda membuat atau meningkatkan tools AI. Agent mendefinisikan cara kerja tools, menulis dokumentasi, dan memvalidasi strukturnya.
20-andruia-niche-intelligence
48kMemungkinkan agent Anda membuat ringkasan industri tertentu. Berguna untuk memahami konteks, aturan, pola penggunaan, dan risiko proyek dengan sumber terpercaya.
Skill serupa
discrawl
394kMemungkinkan agent Anda mencari dan merangkum arsip pesan Discord lokal yang tersimpan, memeriksa seberapa baru arsipnya, dan membaca pesan langsung.
clickhouse-io
280kMembantu agent Anda mengoptimalkan query dan skema di database ClickHouse dengan praktik terbaik analitik berperforma tinggi. Gunakan saat query analitik terlalu lambat.
scientific-db-pubmed-database
280kMembantu agent Anda mencari artikel ilmiah di bidang biomedis. Berguna untuk riset yang membutuhkan informasi medis spesifik.