
Security News
Open Source Maintainers Feeling the Weight of the EU’s Cyber Resilience Act
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
futurebasejs
Advanced tools
The FutureBaseJS
SDK provides a simple interface to interact with the FutureBase API for managing collections and documents.
Install the package using npm:
npm install futurebasejs
Import and initialize the FutureBase
class with your credentials:
import FutureBase from "futurebasejs";
const futureBase = new FutureBase({
username: "your-username",
password: "your-password",
projectId: "your-project-id",
});
allCollections()
Fetch all collections for the authenticated user.
const response = await futureBase.allCollections();
console.log(response);
allDocuments(collectionId: string)
Fetch all documents from a specific collection.
const response = await futureBase.allDocuments("collection-id");
console.log(response);
insertDocument(collectionId: string, data: object)
Insert a new document into a collection.
const response = await futureBase.insertDocument("collection-id", { key: "value" });
console.log(response);
updateDocument(collectionId: string, data: object)
Update an existing document in a collection.
const response = await futureBase.updateDocument("collection-id", { key: "new-value" });
console.log(response);
deleteDocument(collectionId: string, filter: object)
Delete a document from a collection based on a filter.
const response = await futureBase.deleteDocument("collection-id", { key: "value" });
console.log(response);
All methods return a FutureResponse
object:
interface FutureResponse {
status: "success" | "error";
message: string;
data?: any;
error?: string;
}
This project is licensed under the MIT License.
FAQs
A custom React hook for interacting with Futurebase
The npm package futurebasejs receives a total of 2 weekly downloads. As such, futurebasejs popularity was classified as not popular.
We found that futurebasejs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.