
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@24hr/content-next
Advanced tools
[](https://gitlab.24hr.se/rawb/services/content-next/commits/master) [ in sync with the source and live is only in sync with draft when someone wants to publish something the public site.
A consumer is typically an API or a web site. It fetches the data from the Content Service and renders it as it needs. A consumer will normally never access the data directly form the source. It will always get the data from the Content Service.
The Content Service follows these ideas:
resource as one row in the DB, and fetches that resource based on its key or externalId. It has a couple of helper functions, but not much.THIS IS NOT TRUE YET: In its current state, the Content Service can be only be used as a NPM module. No docker image exists.
Get it from docker hub at:
24hrservice/rawb-content-service-next:latest
npm install @24hr/rawb-content-service —save
draft and one for live.draft and live as hardcoded targets).Every entry that is pushed to the Content Service is called a resource. It consist of the following parameters:
key (required), mostly used for the slug, so that a site quickly can fetch the data for a page.externalId (required), referencing to the id of the resource, so that a change in the key can be done to a resource.parentId (optional), reference to an externalId so we can create hierarchy.type (required) used to categorize contentdate (optional) used to sort by date. Its value is dictated by whatever the source sees as the correct date to be used.host (optional) to save where the data comes from (used in rare cases to access the data from the source)userInfo (required), to audit logscontent (required) then content itself, the main body. This is the content of the page, everything else is meta-data.To begin development, do the following:
cd ./dev
docker-compose up
This will start a database (mariadb), a redis instance (for event emitting) and a nodejs project that runs them NPM module.
These are some of the features we plan to do:
Content service will no longer auto-create database tables.
This is to prevent malicious requests from creating tables in the database.
To enable it again in local development, add the following environment variable:
ALLOW_CREATE=true
DO NOT ENABLE THIS IN PRODUCTION!
DO $$
DECLARE
tbl_name text;
BEGIN
FOR tbl_name IN
SELECT table_name
FROM information_schema.tables
WHERE table_schema = 'public' -- Adjust schema if needed
AND table_name != 'contexts' -- Exclude the "contexts" table
LOOP
EXECUTE format('ALTER TABLE %I ADD COLUMN IF NOT EXISTS meta jsonb;', tbl_name);
END LOOP;
END $$;
FAQs
[](https://gitlab.24hr.se/rawb/services/content-next/commits/master) [
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.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.