
Security News
OpenCode User Hit with Hostile Backlash After Reporting Free AI Loophole
An OpenCode user faced harassment after reporting a free AI usage loophole, drawing a bitter backlash in a GitHub thread that has since been deleted.
tables:
<name_table>:
<name_field>:
<properties>
example
tables :
# Create table author
author:
id:
type: serial
notNull: true
primaryKey: true
name:
type: varchar(100)
notNull: true
email:
type: varchar(150)
notNull: true
created:
type: timestamptz
You can include table resource from other tarsius manifest
tables :
# Create table posts
author: ../author/tarsius.yml
post:
id:
type: serial
notNull: true
primaryKey: true
title:
type: varchar(100)
notNull: true
content:
type: text
authorid:
type: author.id # Set set authorid as a FK author table
notNull: true
isCascade: true
created:
type: timestamptz
| Type | Description |
|---|---|
| bool | A Boolean data type can hold one of three possible values: true, false or null. |
| varchar | VARCHAR(n) is the variable-length character string. |
| int | Integer is a numeric types |
| timestamp | TIMESTAMP stores both date and time values. |
| timestamptz | TIMESTAMPTZ is a timezone-aware timestamp data type. It is the abbreviation for timestamp with time zone. |
| properties | description | value |
|---|---|---|
| type | Type data of field | String |
| notNull | set field as a NOT NULL type | Bool |
| primaryKey | set field as a primary key | Bool |
| isCascade | set field as ON DELETE CASCADE and ON UPDATE CASCADE | Bool |
| isUnique | set field as UNIQUE data | Bool |
$ mkdir project-test
$ cd project-test
tarsius.yml for data modelingtables :
# Create table author
author:
id:
type: serial
notNull: true
primaryKey: true
name:
type: varchar(100)
notNull: true
email:
type: varchar(150)
notNull: true
created:
type: timestamptz
# Create table post
post:
id:
type: serial
notNull: true
primaryKey: true
title:
type: varchar(100)
notNull: true
content:
type: text
authorid:
type: author.id
notNull: true
created:
type: timestamptz
use anchor
tables :
# Create table author
author:
id: &idAnchor
type: serial
notNull: true
primaryKey: true
name: &nameAnchor
type: varchar(100)
notNull: true
email:
<<: *nameAnchor
created: &dateAnchor
type: timestamptz
# Create table post
post:
id:
<<: *idAnchor
title:
<<: *nameAnchor
content:
type: text
authorid:
# Set joining to `authors` table
type: author.id
notNull: true
created:
<<: *dateAnchor
$ tarsius sql config
$ tarsius sql create
$ tarsius init
or
$ tarsius init -s go -p ../project-directory
The generated code accepts env vars as well. They are :
TS_DB_HOSTTS_DB_PORTTS_DB_NAMETS_DB_USERTS_DB_PASSTS_CORS_ORIGINTS_CORS_METHODSTS_CORS_HEADERSTS_CORS_ORIGIN will also automaticaly sets basic CORS methods and headers. You can override them with TS_CORS_METHODS and TS_CORS_HEADERS.
$ tarsius run
Access it on http://localhost:8000
Query to get the all authors
query {
authors {
id
name
email
created
}
}
Query to get a specific author
query {
author(id: 1) {
id
name
email
}
}
Query with pagination
query{
authors(page:1,pageSize:4){
id
name
email
}
}
Create new author using mutation
mutation {
createAuthor(name: "Ibnu Yahya", email: "ibnu@tarsius.id") {
id
name
email
}
}
Update an author using mutation
mutation {
updateAuthor(id: 2, name: "ibnu Yahya", email: "ibnu@tarsius.id") {
id
name
email
}
}
Delete an author using mutation
mutation {
deleteAuthor(id: 2) {
id
}
}
Query to get the posts with its relation author
query {
posts {
id
title
content
author {
id
name
email
}
}
}
FAQs
Tarsius CLI Development Tools
The npm package tarsius receives a total of 0 weekly downloads. As such, tarsius popularity was classified as not popular.
We found that tarsius demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.

Security News
An OpenCode user faced harassment after reporting a free AI usage loophole, drawing a bitter backlash in a GitHub thread that has since been deleted.

Threat Research
/Security News
319 browser extensions installed by 13.4 million users hijack searches, capture queries, and collect referral payments from Yahoo and Bing.

Threat Research
Malicious Firefox extensions mimic Phantom, Jupiter, and Bitget wallets to steal recovery phrases and private keys, with one fetching its payload remotely.