Aller au contenu
Skillpedia
Bases de données48k · #5283

neon-object-storage

Ce qu’il fait

Ce service vous permet de stocker des fichiers (comme des images ou des documents) de manière synchronisée avec la base de données de votre projet Neon. Chaque « branche » de votre projet disposera de son propre espace de stockage isolé.

Quand l’utiliser

  • ✓Lorsque vous utilisez déjà Neon pour votre base de données et souhaitez un seul endroit pour les données et les fichiers.
  • ✓Lorsqu'il est essentiel que les fichiers et les données de la base restent toujours à jour ensemble, quelle que soit la version du projet.
  • ✓Lorsque vous voulez tester des modifications portant sur des fichiers sans risquer vos données importantes.

Lien du skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/neon-object-storage/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/neon-object-storage/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Comment mettre en place un stockage de fichiers qui suit les branches de ma base de données Neon ?”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

Vous définissez les espaces de stockage (« buckets ») souhaités dans le fichier de configuration de votre projet Neon (`neon.ts`). Ensuite, une commande simple les crée, et Neon se charge de garder tout synchronisé avec les branches de votre base de données.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis 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 — private buckets require a credential for every operation; public_read buckets 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.

…

Questions fréquentes

Que signifie « compatible S3 » ?

Cela signifie que le service utilise un standard de communication (API) très répandu pour le stockage de fichiers, le même que celui de services comme Amazon S3. Vous pouvez ainsi utiliser les outils et bibliothèques que vous connaissez déjà pour interagir avec lui.

Que sont les « branches » dans ce contexte ?

Ce sont des copies de votre projet que vous pouvez utiliser pour tester de nouvelles fonctionnalités ou faire des modifications sans affecter la version principale. Ce service garantit que chaque branche possède ses propres fichiers, synchronisés avec les données de cette branche précise.

Puis-je rendre mes fichiers publics ou privés ?

Oui, vous pouvez configurer vos espaces de stockage (« buckets ») en privé (connexion requise pour y accéder) ou en lecture publique (tout le monde peut voir les fichiers, mais seul vous pouvez en ajouter ou les modifier).

Détails

Description originale de l’auteur

S3-compatible object storage that branches with your Neon project, so files and the database stay in sync across every branch.

repo: sickn33/agentic-awesome-skills

Popularité

Étoiles GitHub
48k
Position au classement
#5283
Licence
MIT
Mis à jour
15/10/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires