
Security News
Risky Biz Podcast: Making Reachability Analysis Work in Real-World Codebases
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
@tigrisdata/astro
Advanced tools
An Astro integration that enables accessing a Tigris NoSQL database
If you are first-time user of Tigris, read the Getting Started guide to cover the basics.
Install @tigrisdata/astro
:
npm install @tigrisdata/astro
# yarn add @tigrisdata/astro
Add the following code to astro.config.mjs
and replace the YOUR_TIGRIS_PROJECT_NAME
, YOUR_TIGRIS_CLIENT_ID
, and YOUR_TIGRIS_CLIENT_SECRET
with the values from your Tigris project.
import { defineConfig } from "astro/config";
import tigris from "@tigrisdata/astro";
export default defineConfig({
integrations: [
tigris({
branch: "main",
projectName: "YOUR_TIGRIS_PROJECT_NAME",
clientId: "YOUR_TIGRIS_CLIENT_ID",
clientSecret: "YOUR_TIGRIS_CLIENT_SECRET",
}),
],
});
When you initialize the integration, you can pass all @tigrisdata/core options.
Tigris collections are available with the useTigrisCollection
hook:
import { useTigrisCollection } from "@tigrisdata/astro";
You can fetch (and filter) all documents from a collection using the findMany
method:
---
import { useTigrisCollection } from "@tigrisdata/astro";
import { User } from "./types/User";
const userCollection = await useTigrisCollection<User>("users");
const usersCursor = await userCollection.findMany({});
const users = await usersCursor.toArray();
---
{users.map(user =>
<div>{user.name}</div>
)}
You can fetch one document from a collection using the findOne
method:
---
import { useTigrisCollection } from "@tigrisdata/astro";
import { User } from "./types/User";
const userCollection = await useTigrisCollection<User>("users");
const user = await userCollection.findOne({
filter: {
id: "1234"
}
});
---
<div>{user.name}</div>
Feel free to check our documentation or jump into our Discord server.
FAQs
An Astro integration that enables accessing a Tigris NoSQL database
The npm package @tigrisdata/astro receives a total of 3 weekly downloads. As such, @tigrisdata/astro popularity was classified as not popular.
We found that @tigrisdata/astro demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 9 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.