npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@cocreate/amazon-redshift

v1.5.0

Published

Lightweight, real-time Amazon Redshift CRUD wrapper and multi-tenant state routing client for the collaborative CoCreate ecosystem.

Readme

CoCreate-amazon-redshift

A highly efficient, enterprise-grade Amazon Redshift database CRUD wrapper and state-routing backend client for the collaborative CoCreate ecosystem. This wrapper maps Redshift's powerful cloud data-warehousing capabilities into CoCreate's unified JSON interface.

Documentation

For a complete guide and working integration examples, refer to the CoCreate Redshift Documentation.


Table of Contents


The Power of the CoCreate Unified Ecosystem

This is not just another database driver. By wrapping Amazon Redshift into the CoCreate state-routing pipeline, you unlock the full power of a multi-cloud, multi-model data orchestration mesh:

  • Unified JSON Interface (MongoDB-like Syntax): You don't need to write raw SQL dialect queries or manage database-specific connection wrappers. CoCreate translates standard NoSQL JSON CRUD operations (such as object.create or object.read) transparently into optimized Redshift SQL under the hood.
  • Parallel Multi-Database Writing: Write to many target databases simultaneously with a single API call. You can stream transactional data to MongoDB (for instant operational state), vectorize it into Qdrant (for real-time semantic search), and warehouse it in Amazon Redshift (for analytical business intelligence processing) in perfect parallel harmony:

$$\text{Write Command} \xrightarrow{\text{Parallel Mesh}} \begin{cases} \text{MongoDB} & \text{(ACID Transaction Store)} \ \text{Qdrant} & \text{(Semantic Vector Search)} \ \text{Amazon Redshift} & \text{(Columnar Data Warehouse)} \end{cases}$$

  • Dynamic State-Routing: Isolate multi-tenant environments effortlessly. The routing mesh automatically injects tenant metadata and organization boundaries, ensuring isolated analytics processing within your shared Redshift infrastructure.

Why Amazon Redshift?

Amazon Redshift is a fast, fully managed, petabyte-scale cloud data warehouse. Unlike traditional transactional document stores (like MongoDB) or relational databases (like PostgreSQL), Redshift uses columnar storage and massive parallel processing (MPP) to execute complex analytical queries across massive, structured and semi-structured datasets.

By routing logs, user activity, and reporting pipelines straight to Redshift via this wrapper, you preserve loopback database speeds on your transactional databases while offloading heavy analytics to the warehouse.


Installation

NPM Installation

npm i @cocreate/amazon-redshift

Yarn Installation

yarn add @cocreate/amazon-redshift

Unified JSON Payload Examples

Here are the complete, real-world JSON objects representing raw payloads routed through the CoCreate system to Amazon Redshift.

1. Writing a Full Transaction Object (object.create)

When this analytical payload is sent, CoCreate registers it, processes the nested JSON fields, and automatically warehouses it as structured columnar blocks in Redshift.

{
  "method": "object.create",
  "storage": ["redshift", "mongodb", "qdrant"], // Array of storages to store in parallel!
  "database": "sales_analytics",
  "array": "order_events",
  "object": {
    "_id": "order_77c8f2a9_3b01",
    "customer": {
      "id": "cust_88301",
      "email": "[email protected]",
      "region": "North America",
      "acquisition_channel": "Google Search"
    },
    "transaction": {
      "payment_method": "Credit Card",
      "currency": "USD",
      "subtotal": 249.99,
      "discount": 15.00,
      "tax": 18.80,
      "total": 253.79
    },
    "items": [
      {
        "product_id": "prod_head_009",
        "name": "Wireless Noise-Cancelling Headphones",
        "category": "Electronics",
        "quantity": 1,
        "unit_price": 199.99
      },
      {
        "product_id": "prod_stand_012",
        "name": "Aluminum Headphone Stand",
        "category": "Accessories",
        "quantity": 2,
        "unit_price": 25.00
      }
    ],
    "shipping": {
      "carrier": "FedEx",
      "service": "2-Day Air",
      "estimated_delivery": "2026-07-20T12:00:00.000Z"
    }
  },
  "organization_id": "org_enterprise_99x",
  "user_id": "usr_sales_runner_402",
  "timeStamp": "2026-07-18T18:40:43.000Z"
}

2. Reading and Filtering Warehoused Data (object.read)

Querying Redshift uses the exact same MongoDB-style filter syntax. The query below retrieves high-value orders handled by a specific shipping carrier, sorting them by total sale volume.

{
  "method": "object.read",
  "storage": "redshift",
  "database": "sales_analytics",
  "array": "order_events",
  "$filter": {
    "query": {
      "transaction.total": { "$gte": 100.00 },
      "shipping.carrier": "FedEx"
    },
    "sort": [
      { "key": "transaction.total", "direction": "desc" }
    ],
    "limit": 50,
    "index": 0
  },
  "organization_id": "org_enterprise_99x"
}

Announcements

All updates to this library are documented in our CHANGELOG and releases. You may also subscribe to email for releases and breaking changes.


Roadmap

If you are interested in the future direction of this project, please take a look at our open issues and pull requests. We would love to hear your feedback.


How to Contribute

We encourage contribution to our libraries (you might even score some nifty swag), please see our CONTRIBUTING guide for details.

We want this library to be community-driven, and CoCreate led. We need your help to realize this goal. To help make sure we are building the right things in the right order, we ask that you create issues and pull requests or merely upvote or comment on existing issues or pull requests.

We appreciate your continued support, thank you!


About

CoCreate-amazon-redshift is guided and supported by the CoCreate Developer Experience Team.

Please Email the Developer Experience Team here in case of any queries.

CoCreate-amazon-redshift is maintained and funded by CoCreate. The names and logos for CoCreate are trademarks of CoCreate, LLC.